Playing with animatable render effects. Demo code ...
# compose-desktop
k
Playing with animatable render effects. Demo code starts here.
r
Is that the built-in blur effect? Or your own?
k
That's Skia's
SkImageFilters::Blur
wrapped by Skiko
j
Can it be used on Android?
r
@Kirill Grouchnikov I’m asking because it looks like the blur is not energy preserving, indicating it might be not be applied in linear space
@romainguy - basically whatever Skia does under the hood
r
Yeah I should ask Skia or check their source code
k
SkImageFilters::MatrixConvolution
allows for a bit more control maybe
r
It can probably be done as a custom shader too
k
Well, that's what I'm trying to figure out right now - how to get a custom shader in there. Using
SkImageFilters::Paint
with
SkPaint::setShader
seems to just fill the whole thing with whatever the shader is doing, and I'm still not finding a way to have that shader work on the underlying pixels as input.
https://github.com/JetBrains/skiko/issues/519 to add Skiko bindings to enable that
k
You're all a bunch of very clever people! Great work! 🤩