Skip to content

Instantly share code, notes, and snippets.

@garaemon
Created May 1, 2012 16:21
Show Gist options
  • Save garaemon/2569344 to your computer and use it in GitHub Desktop.
Save garaemon/2569344 to your computer and use it in GitHub Desktop.
momoclo UIColor
@interface UIColor (momocloZ)
+ (UIColor*)reni;
+ (UIColor*)kanako;
+ (UIColor*)shiori;
+ (UIColor*)ayaka;
+ (UIColor*)momoka;
@end
#define RGB255(R,G,B) ([UIColor colorWithRed:R/255.0 \
green:G/255.0 \
blue:B/255.0 \
alpha:1.0])
@implementation UIColor(momocloZ)
+ (UIColor*)reni
{
return RGB255(128, 0, 128);
}
+ (UIColor*)kanako
{
return RGB255(255, 0, 0);
}
+ (UIColor*)shiori
{
return RGB255(255, 255, 0);
}
+ (UIColor*)ayaka
{
return RGB255(255, 0, 255);
}
+ (UIColor*)momoka
{
return RGB255(0, 255, 0);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment