Skip to content

Instantly share code, notes, and snippets.

@aegzorz
Created May 30, 2012 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aegzorz/2837806 to your computer and use it in GitHub Desktop.
Save aegzorz/2837806 to your computer and use it in GitHub Desktop.
UIImageDrawBlock draw = ^( CGContextRef ctx, CGRect rect ) {
[[UIColor redColor] setFill];
[[UIBezierPath bezierPathWithRect:rect] fill];
};
UIImage* texture = [UIImage imageWithSize:CGSizeMake( 100, 100 ) opaque:NO scale:1.0 draw:draw];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment