Skip to content

Instantly share code, notes, and snippets.

@C4Code
Created January 20, 2013 23:39
Show Gist options
  • Save C4Code/4582607 to your computer and use it in GitHub Desktop.
Save C4Code/4582607 to your computer and use it in GitHub Desktop.
Simple example using the perspectiveDistance property
//
// 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