Skip to content

Instantly share code, notes, and snippets.

Created May 12, 2012
What would you like to do?
how to make a C4Image animate to black and white
#import "C4WorkSpace.h"
C4Image *myImage;
@implementation C4WorkSpace
-(void)setup {
myImage = [C4Image imageNamed:@"C4Sky.png"]; = CGPointMake(384, 512);
[self.canvas addImage:myImage];
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
myImage.animationDuration = 2.0f;
[myImage colorControlSaturation:0 brightness:0 contrast:1];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment