I would like to animate the color of a shape object to turn from one color to another color and then back again. I tried to set the color of my object with one method and then set it back to the original color with another method, but this seems rather cumbersome to me. Is there a better way to do this using C4?
1
There are 1 best solutions below
Related Questions in IOS5
- How to change elements positioning in landscape mode?
- How to set BarChartDataEntry labels (String not Double) not xaxis labels
- how to add variations to different phone sizes with the same size class
- can i get sim serial number from ios mobile for my ios app using ios programming?
- splash screen error with xcode 9.2
- How to open file:///private/var/mobile/Containers/Shared/AppGroup/ folder on Mac?
- Thread 1:EXC_BAD_ACCESS(code=1,address=0x20004018) How to solve this?
- Migrating 32bit iOS app to 64bit
- How to enable/disable a button while validating a button?
- in switch case i want to print nslog as per my requirement?
- how to add namearr array to my dictionary
- SearchBar method deprecated issue
- Apns notifications is not Working with Developement Certificate
- Swift Parse Race Conditions
- first page open response like classplbuildpublish error
Related Questions in C4
- How to get a CAEmitterLayer from Canvas
- Drawing a sphere or other 3D shapes in C4?
- Remove Object Instances in Objective C (C4iOs)
- saving user defaults [iOS]
- How are gestures handled in C4Shape objects?
- Animated Masks in C4
- Animating multiple colors in C4
- Not able to install cmd version of c4 from github
- main.go not able to find the package
- Documenting the aggregates & relations between microservices
- SAP SuccessFactors: [COE0020]You do not have permission to view this template
- How do I disable/toggle gestures in C4ios?
- Error When Compiling c4iOS app in XCODE
- Is the Pinch gesture supported in C4?
- multiple delegates give warning
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You're right, the approach you're taking is cumbersome.
To animate forward and immediately back again, you can use the following line of code:
To do this forever:
... furthermore, you can use these animation options for ALL animated properties of any visible object in C4. So, you can autoreverse / repeat origin changes, center points, changing shapes, changing images, etc...