Created
February 21, 2013 22:16
-
-
Save C4Examples/5008854 to your computer and use it in GitHub Desktop.
C4Control shadowPath
This file contains 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 | |
// Examples | |
// | |
// Created by Greg Debicki. | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace { | |
C4Shape *s1, *s2; | |
} | |
-(void)setup { | |
[self setupShapes]; | |
s1.shadowPath = s2.path; | |
} | |
-(void) setupShapes { | |
s1 = [C4Shape ellipse:CGRectMake(0, 0, 200, 200)]; | |
s1.center = self.canvas.center; | |
s1.shadowOpacity = 0.8; | |
s1.shadowOffset = CGSizeMake(50,50); | |
s2 = [C4Shape rect:s1.frame]; | |
[self.canvas addShape:s1]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment