Created
May 30, 2012 17:31
-
-
Save aegzorz/2837806 to your computer and use it in GitHub Desktop.
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
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