Skip to content

Instantly share code, notes, and snippets.

@alexcurylo
Created April 1, 2015 23:32
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 alexcurylo/e363411537dfe3aeb2ba to your computer and use it in GitHub Desktop.
Save alexcurylo/e363411537dfe3aeb2ba to your computer and use it in GitHub Desktop.
ASCIIImage_sample.m
+ (UIImage *)chevronImageWithColor:(UIColor *)color
{
NSArray *asciiRep =
@[
@"· · · · · · · · · · · ·",
@"· · · 1 2 · · · · · · ·",
@"· · · A # # · · · · · ·",
@"· · · · # # # · · · · ·",
@"· · · · · # # # · · · ·",
@"· · · · · · 9 # 3 · · ·",
@"· · · · · · 8 # 4 · · ·",
@"· · · · · # # # · · · ·",
@"· · · · # # # · · · · ·",
@"· · · 7 # # · · · · · ·",
@"· · · 6 5 · · · · · · ·",
@"· · · · · · · · · · · ·",
];
return [self imageWithASCIIRepresentation:asciiRep
color:[UIColor blackColor]
shouldAntialias:NO];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment