Animation of multiple colors in C4

I would like to animate the color of the shape object in order to switch from one color to another and then return again. I tried to set the color of my object with one method, and then return it back to the original color in another way, but for me it looks rather cumbersome. Is there a better way to do this with C4?

+3
source share
1 answer

You are right, the approach you take is cumbersome.

To animate forward and immediately backward, you can use the following line of code:

object.animationOptions: AUTOREVERSE;
object.fillColor = [UIColor ...];

To do this forever:

object.animationOptions: AUTOREVERSE | REPEAT;
object.fillColor = [UIColor ...];

... , C4. , / , , , ..

+2

All Articles