Created
January 20, 2013 23:39
-
-
Save C4Code/4582607 to your computer and use it in GitHub Desktop.
Simple example using the perspectiveDistance property
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
// | |
// C4WorkSpace.m | |
// | |
// Created by Travis Kirton | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace { | |
C4Image *image; | |
} | |
//the numbers are tweaked for the final state | |
-(void)setup { | |
image = [C4Image imageNamed:@"C4Sky"]; | |
image.center = self.canvas.center; | |
image.animationDuration = 1.0f; | |
image.perspectiveDistance = 500; | |
image.rotationX = QUARTER_PI; | |
[self.canvas addImage:image]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment