Skip to content

Instantly share code, notes, and snippets.

@ebaker355
Created October 8, 2012 15:06
Show Gist options
  • Save ebaker355/3853008 to your computer and use it in GitHub Desktop.
Save ebaker355/3853008 to your computer and use it in GitHub Desktop.
UIColor+AppleCrayons
#import <UIKit/UIKit.h>
@interface UIColor (AppleCrayons)
+ (UIColor *)cantaloupeColor;
+ (UIColor *)honeydewColor;
+ (UIColor *)spindriftColor;
+ (UIColor *)skyColor;
+ (UIColor *)lavenderColor;
+ (UIColor *)carnationColor;
+ (UIColor *)licoriceColor;
+ (UIColor *)snowColor;
+ (UIColor *)salmonColor;
+ (UIColor *)bananaColor;
+ (UIColor *)floraColor;
+ (UIColor *)iceColor;
+ (UIColor *)orchidColor;
+ (UIColor *)bubblegumColor;
+ (UIColor *)leadColor;
+ (UIColor *)mercuryColor;
+ (UIColor *)tangerineColor;
+ (UIColor *)limeColor;
+ (UIColor *)seaFoamColor;
+ (UIColor *)aquaColor;
+ (UIColor *)grapeColor;
+ (UIColor *)strawberryColor;
+ (UIColor *)tungstenColor;
+ (UIColor *)silverColor;
+ (UIColor *)maraschinoColor;
+ (UIColor *)lemonColor;
+ (UIColor *)springColor;
+ (UIColor *)turquoiseColor;
+ (UIColor *)blueberryColor;
+ (UIColor *)ironColor;
+ (UIColor *)magnesiumColor;
+ (UIColor *)mochaColor;
+ (UIColor *)fernColor;
+ (UIColor *)mossColor;
+ (UIColor *)oceanColor;
+ (UIColor *)eggplantColor;
+ (UIColor *)maroonColor;
+ (UIColor *)steelColor;
+ (UIColor *)aluminumColor;
+ (UIColor *)cayenneColor;
+ (UIColor *)asparagusColor;
+ (UIColor *)cloverColor;
+ (UIColor *)tealColor;
+ (UIColor *)midnightColor;
+ (UIColor *)plumColor;
+ (UIColor *)tinColor;
+ (UIColor *)nickelColor;
@end
#import "UIColor+AppleCrayons.h"
@implementation UIColor (AppleCrayons)
// #ffd664
+ (UIColor *)cantaloupeColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0xd6/0xff
blue:(CGFloat)0x64/0xff
alpha:1.0];
}
// #d4fb78
+ (UIColor *)honeydewColor {
return [UIColor colorWithRed:(CGFloat)0xd4/0xff
green:(CGFloat)0xfb/0xff
blue:(CGFloat)0x78/0xff
alpha:1.0];
}
// #72fcd5
+ (UIColor *)spindriftColor {
return [UIColor colorWithRed:(CGFloat)0x72/0xff
green:(CGFloat)0xfc/0xff
blue:(CGFloat)0xd5/0xff
alpha:1.0];
}
// #75d5ff
+ (UIColor *)skyColor {
return [UIColor colorWithRed:(CGFloat)0x75/0xff
green:(CGFloat)0xd5/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #d783ff
+ (UIColor *)lavenderColor {
return [UIColor colorWithRed:(CGFloat)0xd7/0xff
green:(CGFloat)0x83/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #ff89d8
+ (UIColor *)carnationColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0x89/0xff
blue:(CGFloat)0xd8/0xff
alpha:1.0];
}
// #000000
+ (UIColor *)licoriceColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0x00/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #feffff
+ (UIColor *)snowColor {
return [UIColor colorWithRed:(CGFloat)0xfe/0xff
green:(CGFloat)0xff/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #ff7d78
+ (UIColor *)salmonColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0x7d/0xff
blue:(CGFloat)0x78/0xff
alpha:1.0];
}
// #fefc78
+ (UIColor *)bananaColor {
return [UIColor colorWithRed:(CGFloat)0xfe/0xff
green:(CGFloat)0xfc/0xff
blue:(CGFloat)0x78/0xff
alpha:1.0];
}
// #72fa78
+ (UIColor *)floraColor {
return [UIColor colorWithRed:(CGFloat)0x72/0xff
green:(CGFloat)0xfa/0xff
blue:(CGFloat)0x78/0xff
alpha:1.0];
}
// #73fdff
+ (UIColor *)iceColor {
return [UIColor colorWithRed:(CGFloat)0x73/0xff
green:(CGFloat)0xfd/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #7980ff
+ (UIColor *)orchidColor {
return [UIColor colorWithRed:(CGFloat)0x79/0xff
green:(CGFloat)0x80/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #ff84ff
+ (UIColor *)bubblegumColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0x84/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #212121
+ (UIColor *)leadColor {
return [UIColor colorWithRed:(CGFloat)0x21/0xff
green:(CGFloat)0x21/0xff
blue:(CGFloat)0x21/0xff
alpha:1.0];
}
// #eaeaea
+ (UIColor *)mercuryColor {
return [UIColor colorWithRed:(CGFloat)0xea/0xff
green:(CGFloat)0xea/0xff
blue:(CGFloat)0xea/0xff
alpha:1.0];
}
// #ff9300
+ (UIColor *)tangerineColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0x93/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #8df900
+ (UIColor *)limeColor {
return [UIColor colorWithRed:(CGFloat)0x8d/0xff
green:(CGFloat)0xf9/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #00fa92
+ (UIColor *)seaFoamColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0xfa/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #0096ff
+ (UIColor *)aquaColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0x96/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #9437ff
+ (UIColor *)grapeColor {
return [UIColor colorWithRed:(CGFloat)0x94/0xff
green:(CGFloat)0x37/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #ff2f92
+ (UIColor *)strawberryColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0x2f/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #424242
+ (UIColor *)tungstenColor {
return [UIColor colorWithRed:(CGFloat)0x42/0xff
green:(CGFloat)0x42/0xff
blue:(CGFloat)0x42/0xff
alpha:1.0];
}
// #d5d5d5
+ (UIColor *)silverColor {
return [UIColor colorWithRed:(CGFloat)0xd5/0xff
green:(CGFloat)0xd5/0xff
blue:(CGFloat)0xd5/0xff
alpha:1.0];
}
// #ff2600
+ (UIColor *)maraschinoColor {
return [UIColor colorWithRed:(CGFloat)0xff/0xff
green:(CGFloat)0x26/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #fefb00
+ (UIColor *)lemonColor {
return [UIColor colorWithRed:(CGFloat)0xfe/0xff
green:(CGFloat)0xfb/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #00f900
+ (UIColor *)springColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0xf9/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #00fcff
+ (UIColor *)turquoiseColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0xfc/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #0432ff
+ (UIColor *)blueberryColor {
return [UIColor colorWithRed:(CGFloat)0x04/0xff
green:(CGFloat)0x32/0xff
blue:(CGFloat)0xff/0xff
alpha:1.0];
}
// #5e5e5e
+ (UIColor *)ironColor {
return [UIColor colorWithRed:(CGFloat)0x5e/0xff
green:(CGFloat)0x5e/0xff
blue:(CGFloat)0x5e/0xff
alpha:1.0];
}
// #c0c0c0
+ (UIColor *)magnesiumColor {
return [UIColor colorWithRed:(CGFloat)0xc0/0xff
green:(CGFloat)0xc0/0xff
blue:(CGFloat)0xc0/0xff
alpha:1.0];
}
// #935100
+ (UIColor *)mochaColor {
return [UIColor colorWithRed:(CGFloat)0x93/0xff
green:(CGFloat)0x51/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #4e8f00
+ (UIColor *)fernColor {
return [UIColor colorWithRed:(CGFloat)0x4e/0xff
green:(CGFloat)0x8f/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #008f51
+ (UIColor *)mossColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0x8f/0xff
blue:(CGFloat)0x51/0xff
alpha:1.0];
}
// #005392
+ (UIColor *)oceanColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0x53/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #521b92
+ (UIColor *)eggplantColor {
return [UIColor colorWithRed:(CGFloat)0x52/0xff
green:(CGFloat)0x1b/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #941651
+ (UIColor *)maroonColor {
return [UIColor colorWithRed:(CGFloat)0x94/0xff
green:(CGFloat)0x16/0xff
blue:(CGFloat)0x51/0xff
alpha:1.0];
}
// #797979
+ (UIColor *)steelColor {
return [UIColor colorWithRed:(CGFloat)0x79/0xff
green:(CGFloat)0x79/0xff
blue:(CGFloat)0x79/0xff
alpha:1.0];
}
// #a9a9a9
+ (UIColor *)aluminumColor {
return [UIColor colorWithRed:(CGFloat)0xa9/0xff
green:(CGFloat)0xa9/0xff
blue:(CGFloat)0xa9/0xff
alpha:1.0];
}
// #941100
+ (UIColor *)cayenneColor {
return [UIColor colorWithRed:(CGFloat)0x94/0xff
green:(CGFloat)0x11/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #929000
+ (UIColor *)asparagusColor {
return [UIColor colorWithRed:(CGFloat)0x92/0xff
green:(CGFloat)0x90/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #008e00
+ (UIColor *)cloverColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0x8e/0xff
blue:(CGFloat)0x00/0xff
alpha:1.0];
}
// #009192
+ (UIColor *)tealColor {
return [UIColor colorWithRed:(CGFloat)0x00/0xff
green:(CGFloat)0x91/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #011892
+ (UIColor *)midnightColor {
return [UIColor colorWithRed:(CGFloat)0x01/0xff
green:(CGFloat)0x18/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #942092
+ (UIColor *)plumColor {
return [UIColor colorWithRed:(CGFloat)0x94/0xff
green:(CGFloat)0x20/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
// #919191
+ (UIColor *)tinColor {
return [UIColor colorWithRed:(CGFloat)0x91/0xff
green:(CGFloat)0x91/0xff
blue:(CGFloat)0x91/0xff
alpha:1.0];
}
// #929292
+ (UIColor *)nickelColor {
return [UIColor colorWithRed:(CGFloat)0x92/0xff
green:(CGFloat)0x92/0xff
blue:(CGFloat)0x92/0xff
alpha:1.0];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment