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
- Best Way to add a tabbarController in a UIviewController which have a navigation controller?
- self concept ,if i use self in class method not in instance method
- Core data performance on ios 5
- search bar with table view in ios
- Is it possible to create in app purchase for local notifications in ios?
- Perform some action depending upon the text in the inbox of iPhone
- Issue with auto rotation
- Xcode 5 : Different screen sized iPhones Autolayout views resizing issue
- Augmented reality - move object across overlay
- How to move the curstor to a selected UIText Field in IOS Programming?
- UIImageview disappears while roating the device
- return an undefined value with forge.prefs
- Difference in deprecation status for UIImage method stretchableImageWithLeftCapWidth:topCapHeight: in doc and header file
- How to get Facebook Page News Feeds only but Without FaceBook Login in iOS 5?
- using multithreading to log in in iphone?
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...