Is it possible to animate brushes? Say from a line...
# compose
w
Is it possible to animate brushes? Say from a linear gradient to a radial gradient? I’m thinking of drawing two rect in
drawBehind
and controlling the visibility with an animated alpha. But I’m curious if there’s a better way.
r
There's no way to morph from a type of gradient to another. In your particular case you could use a simple trick: animate the radius of the radial gradient to go from very large to small
👍 1
The edge of a very large circle is effectively a straight line 😀
w
Haha thanks!