M
13d ago

Update Colors at runtime

Is it possible to update a color in my animation at runtime? Im using react.

3 replies
M
12d ago

We don't provide an API to update colors at this stage for our runtimes.

Flutter and c++ are the only runtimes that you can delve into the internals to update some components, including the fills - see this issue: https://github.com/rive-app/rive-flutter/issues/287

If you only want to only support a few different colors, you can achieve it through a state machine input and updating the animation.

M
12d ago

Is this on the roadmap for Rive? It seems like a crucial feature.

12d ago

It is something we are looking into. We don't have a release timeline I could provide.