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
Travis
07/13/2022, 5:36 PM
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
Tgo1014
07/13/2022, 5:38 PM
I was trying to use a gradient which made things harder. In the end I solved using canvas directly to animate the gradient changes