How to set different colors to instances?
I have very simple symbol that is a Solo with two states, and artboard with its multiple instances.
How can I assign different colors to instances? So end result look like 2nd picture:
And how can I do that in Flutter at runtime, setting colors dynamicaly?
I looked all tutorials and closest that I found is "skinning". But skinning is way more complex, like creating new instance in particular color.
Hi
Regarding the color change in runtime, here is an example. https://github.com/HayesGordon/rive_flutter_runtime_color_change_example
Thank you! Of course If you have any examples it would be very helpful!
This is a simple demo. You need to create and animation for each color. Then add them to the state machine using Any State. Create a numerical input and use it as a condition for each transition. Finally, expose the input. In the main artboard add the color/character artboard, duplicate it and you will see that in the state machine you will be able to access the input of each instance and configure the color you want. I hope this helps.