I've a ImageVector that I would like to paint dyna...
# compose
t
I've a ImageVector that I would like to paint dynamically changing colors by the offset, but when the offset changes it's not recomposing it, I imagine it's because I'm using
rememberVectorPainter
but without this I can't use the
Image
composable. Is there a way to achieve this?
t
There's a version of
rememberVectorPainter
which takes a
tintColor: Color
. Perhaps you could use that to recompose when the offset changes, though this does sound slow.
t
I was trying to use a gradient which made things harder. In the end I solved using canvas directly to animate the gradient changes
🙌 1