Skip to content

Instantly share code, notes, and snippets.

@C4Examples
Created July 26, 2012 21:17
Show Gist options
  • Select an option

  • Save C4Examples/3184572 to your computer and use it in GitHub Desktop.

Select an option

Save C4Examples/3184572 to your computer and use it in GitHub Desktop.
Shapes: lineWidth
//
// C4WorkSpace.m
// Examples
//
// Created by Travis Kirton
//
#import "C4WorkSpace.h"
@implementation C4WorkSpace
-(void)setup {
C4Shape *circle;
//create and position the shape with default colors
circle = [C4Shape ellipse:CGRectMake(0, 0, 200, 200)];
circle.center = self.canvas.center;
//change the line width
circle.lineWidth = 100.0f;
//add the shapes to the canvas
[self.canvas addShape:circle];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment