Created
May 12, 2012 16:26
-
-
Save C4Code/2667444 to your computer and use it in GitHub Desktop.
how to make a C4Image animate to black and white
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "C4WorkSpace.h" | |
C4Image *myImage; | |
@implementation C4WorkSpace | |
-(void)setup { | |
myImage = [C4Image imageNamed:@"C4Sky.png"]; | |
myImage.center = 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]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment