Skip to content

Instantly share code, notes, and snippets.

@C4Examples
Created February 21, 2013 22:16
Show Gist options
  • Save C4Examples/5008854 to your computer and use it in GitHub Desktop.
Save C4Examples/5008854 to your computer and use it in GitHub Desktop.
C4Control shadowPath
//
// 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