Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
833 lines (626 sloc) 26 KB
//
// UIColor+RBExtras.m
//
// Copyright (c) 2011 Robert Brown
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
//
#import "UIColor+RBExtras.h"
@implementation UIColor (RBExtras)
#pragma mark - Crayon box colors (alphabetical)
+ (UIColor *)aluminumCrayonColor {
return [UIColor colorWithRed:0.6 green:0.6 blue:0.6 alpha:1.0];
}
+ (UIColor *)aquaCrayonColor {
return [UIColor colorWithRed:0.0 green:0.5 blue:1.0 alpha:1.0];
}
+ (UIColor *)asparagusCrayonColor {
return [UIColor colorWithRed:0.5 green:0.5 blue:0.0 alpha:1.0];
}
+ (UIColor *)bananaCrayonColor {
return [UIColor colorWithRed:1.0 green:1.0 blue:0.4 alpha:1.0];
}
+ (UIColor *)blueberryCrayonColor {
return [UIColor colorWithRed:0.0 green:0.0 blue:1.0 alpha:1.0];
}
+ (UIColor *)bubblegumCrayonColor {
return [UIColor colorWithRed:1.0 green:0.4 blue:1.0 alpha:1.0];
}
+ (UIColor *)carnationCrayonColor {
return [UIColor colorWithRed:1.0 green:111/255.0f blue:207/255.0f alpha:1.0];
}
+ (UIColor *)cantalopeCrayonColor {
return [UIColor colorWithRed:1.0 green:0.8 blue:0.4 alpha:1.0];
}
+ (UIColor *)cayenneCrayonColor {
return [UIColor colorWithRed:0.5 green:0.0 blue:0.0 alpha:1.0];
}
+ (UIColor *)cloverCrayonColor {
return [UIColor colorWithRed:0.0 green:0.5 blue:0.0 alpha:1.0];
}
+ (UIColor *)eggplantCrayonColor {
return [UIColor colorWithRed:0.25 green:0.0 blue:0.5 alpha:1.0];
}
+ (UIColor *)fernCrayonColor {
return [UIColor colorWithRed:0.25 green:0.5 blue:0.0 alpha:1.0];
}
+ (UIColor *)floraCrayonColor {
return [UIColor colorWithRed:0.4 green:1.0 blue:0.4 alpha:1.0];
}
+ (UIColor *)grapeCrayonColor {
return [UIColor colorWithRed:0.5 green:0.0 blue:1.0 alpha:1.0];
}
+ (UIColor *)honeydewCrayonColor {
return [UIColor colorWithRed:0.8 green:1.0 blue:0.4 alpha:1.0];
}
+ (UIColor *)iceCrayonColor {
return [UIColor colorWithRed:0.4 green:1.0 blue:1.0 alpha:1.0];
}
+ (UIColor *)ironCrayonColor {
return [UIColor colorWithRed:0.3 green:0.3 blue:0.3 alpha:1.0];
}
+ (UIColor *)lavenderCrayonColor {
return [UIColor colorWithRed:0.8 green:0.4 blue:1.0 alpha:1.0];
}
+ (UIColor *)leadCrayonColor {
return [UIColor colorWithRed:0.1 green:0.1 blue:0.1 alpha:1.0];
}
+ (UIColor *)lemonCrayonColor {
return [UIColor colorWithRed:1.0 green:1.0 blue:0.0 alpha:1.0];
}
+ (UIColor *)licoriceCrayonColor {
return [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
}
+ (UIColor *)limeCrayonColor {
return [UIColor colorWithRed:0.5 green:1.0 blue:0.0 alpha:1.0];
}
+ (UIColor *)magentaCrayonColor {
return [UIColor colorWithRed:1.0 green:0.0 blue:1.0 alpha:1.0];
}
+ (UIColor *)magnesiumCrayonColor {
return [UIColor colorWithRed:0.7 green:0.7 blue:0.7 alpha:1.0];
}
+ (UIColor *)maraschinoCrayonColor {
return [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.0];
}
+ (UIColor *)maroonCrayonColor {
return [UIColor colorWithRed:0.5 green:0.0 blue:0.25 alpha:1.0];
}
+ (UIColor *)mercuryCrayonColor {
return [UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1.0];
}
+ (UIColor *)midnightCrayonColor {
return [UIColor colorWithRed:0.0 green:0.0 blue:0.5 alpha:1.0];
}
+ (UIColor *)mochaCrayonColor {
return [UIColor colorWithRed:0.5 green:0.25 blue:0.0 alpha:1.0];
}
+ (UIColor *)mossCrayonColor {
return [UIColor colorWithRed:0.0 green:0.5 blue:0.25 alpha:1.0];
}
+ (UIColor *)nickelCrayonColor {
return [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1.0];
}
+ (UIColor *)oceanCrayonColor {
return [UIColor colorWithRed:0.0 green:0.25 blue:0.5 alpha:1.0];
}
+ (UIColor *)orchidCrayonColor {
return [UIColor colorWithRed:0.4 green:0.4 blue:1.0 alpha:1.0];
}
+ (UIColor *)plumCrayonColor {
return [UIColor colorWithRed:0.5 green:0.0 blue:0.5 alpha:1.0];
}
+ (UIColor *)salmonCrayonColor {
return [UIColor colorWithRed:1.0 green:0.4 blue:0.4 alpha:1.0];
}
+ (UIColor *)seafoamCrayonColor {
return [UIColor colorWithRed:0.0 green:1.0 blue:0.5 alpha:1.0];
}
+ (UIColor *)silverCrayonColor {
return [UIColor colorWithRed:0.8 green:0.8 blue:0.8 alpha:1.0];
}
+ (UIColor *)skyCrayonColor {
return [UIColor colorWithRed:0.4 green:0.8 blue:1.0 alpha:1.0];
}
+ (UIColor *)snowCrayonColor {
return [UIColor colorWithRed:1.0 green:1.0 blue:1.0 alpha:1.0];
}
+ (UIColor *)spindriftCrayonColor {
return [UIColor colorWithRed:0.4 green:1.0 blue:0.8 alpha:1.0];
}
+ (UIColor *)springCrayonColor {
return [UIColor colorWithRed:0.0 green:1.0 blue:0.0 alpha:1.0];
}
+ (UIColor *)steelCrayonColor {
return [UIColor colorWithRed:0.4 green:0.4 blue:0.4 alpha:1.0];
}
+ (UIColor *)strawberryCrayonColor {
return [UIColor colorWithRed:1.0 green:0.0 blue:0.5 alpha:1.0];
}
+ (UIColor *)tangerineCrayonColor {
return [UIColor colorWithRed:1.0 green:0.5 blue:0.0 alpha:1.0];
}
+ (UIColor *)tealCrayonColor {
return [UIColor colorWithRed:0.0 green:0.5 blue:0.5 alpha:1.0];
}
+ (UIColor *)tinCrayonColor {
return [UIColor colorWithRed:0.5 green:0.5 blue:0.5 alpha:1.0];
}
+ (UIColor *)tungstenCrayonColor {
return [UIColor colorWithRed:0.2 green:0.2 blue:0.2 alpha:1.0];
}
+ (UIColor *)turquoiseCrayonColor {
return [UIColor colorWithRed:0.0 green:1.0 blue:1.0 alpha:1.0];
}
#pragma mark - Standard HTML colors (alphabetical)
+ (UIColor *)aliceBlueHTMLColor {
return [UIColor colorWithRed:0xF0/255.0f green:0xF8/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)antiqueWhiteHTMLColor {
return [UIColor colorWithRed:0xFA/255.0f green:0xEB/255.0f blue:0xD7/255.0f alpha:1.0];
}
+ (UIColor *)aquaHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:255.0f /255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)aquamarineHTMLColor {
return [UIColor colorWithRed:0x7F/255.0f green:255.0f /255.0f blue:0xD4/255.0f alpha:1.0];
}
+ (UIColor *)azureHTMLColor {
return [UIColor colorWithRed:0xF0/255.0f green:255.0f /255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)beigeHTMLColor {
return [UIColor colorWithRed:0xF5/255.0f green:0xF5/255.0f blue:0xDC/255.0f alpha:1.0];
}
+ (UIColor *)bisqueHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xE4/255.0f blue:0xC4/255.0f alpha:1.0];
}
+ (UIColor *)blackHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x00/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)blanchedAlmondHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xEB/255.0f blue:0xCD/255.0f alpha:1.0];
}
+ (UIColor *)blueHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x00/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)blueVioletHTMLColor {
return [UIColor colorWithRed:0x8A/255.0f green:0x2B/255.0f blue:0xE2/255.0f alpha:1.0];
}
+ (UIColor *)brownHTMLColor {
return [UIColor colorWithRed:0xA5/255.0f green:0x2A/255.0f blue:0x2A/255.0f alpha:1.0];
}
+ (UIColor *)burlyWoodHTMLColor {
return [UIColor colorWithRed:0xDE/255.0f green:0xB8/255.0f blue:0x87/255.0f alpha:1.0];
}
+ (UIColor *)cadetBlueHTMLColor {
return [UIColor colorWithRed:0x5F/255.0f green:0x9E/255.0f blue:0xA0/255.0f alpha:1.0];
}
+ (UIColor *)chartreuseHTMLColor {
return [UIColor colorWithRed:0x7F/255.0f green:255.0f /255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)chocolateHTMLColor {
return [UIColor colorWithRed:0xD2/255.0f green:0x69/255.0f blue:0x1E/255.0f alpha:1.0];
}
+ (UIColor *)coralHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x7F/255.0f blue:0x50/255.0f alpha:1.0];
}
+ (UIColor *)cornflowerBlueHTMLColor {
return [UIColor colorWithRed:0x64/255.0f green:0x95/255.0f blue:0xED/255.0f alpha:1.0];
}
+ (UIColor *)cornsilkHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xF8/255.0f blue:0xDC/255.0f alpha:1.0];
}
+ (UIColor *)crimsonHTMLColor {
return [UIColor colorWithRed:0xDC/255.0f green:0x14/255.0f blue:0x3C/255.0f alpha:1.0];
}
+ (UIColor *)cyanHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:255.0f /255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)darkBlueHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x00/255.0f blue:0x8B/255.0f alpha:1.0];
}
+ (UIColor *)darkCyanHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x8B/255.0f blue:0x8B/255.0f alpha:1.0];
}
+ (UIColor *)darkGoldenRodHTMLColor {
return [UIColor colorWithRed:0xB8/255.0f green:0x86/255.0f blue:0x0B/255.0f alpha:1.0];
}
+ (UIColor *)darkGrayHTMLColor {
return [UIColor colorWithRed:0xA9/255.0f green:0xA9/255.0f blue:0xA9/255.0f alpha:1.0];
}
+ (UIColor *)darkGreyHTMLColor {
return [UIColor colorWithRed:0xA9/255.0f green:0xA9/255.0f blue:0xA9/255.0f alpha:1.0];
}
+ (UIColor *)darkGreenHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x64/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)darkKhakiHTMLColor {
return [UIColor colorWithRed:0xBD/255.0f green:0xB7/255.0f blue:0x6B/255.0f alpha:1.0];
}
+ (UIColor *)darkMagentaHTMLColor {
return [UIColor colorWithRed:0x8B/255.0f green:0x00/255.0f blue:0x8B/255.0f alpha:1.0];
}
+ (UIColor *)darkOliveGreenHTMLColor {
return [UIColor colorWithRed:0x55/255.0f green:0x6B/255.0f blue:0x2F/255.0f alpha:1.0];
}
+ (UIColor *)darkorangeHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x8C/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)darkOrchidHTMLColor {
return [UIColor colorWithRed:0x99/255.0f green:0x32/255.0f blue:0xCC/255.0f alpha:1.0];
}
+ (UIColor *)darkRedHTMLColor {
return [UIColor colorWithRed:0x8B/255.0f green:0x00/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)darkSalmonHTMLColor {
return [UIColor colorWithRed:0xE9/255.0f green:0x96/255.0f blue:0x7A/255.0f alpha:1.0];
}
+ (UIColor *)darkSeaGreenHTMLColor {
return [UIColor colorWithRed:0x8F/255.0f green:0xBC/255.0f blue:0x8F/255.0f alpha:1.0];
}
+ (UIColor *)darkSlateBlueHTMLColor {
return [UIColor colorWithRed:0x48/255.0f green:0x3D/255.0f blue:0x8B/255.0f alpha:1.0];
}
+ (UIColor *)darkSlateGrayHTMLColor {
return [UIColor colorWithRed:0x2F/255.0f green:0x4F/255.0f blue:0x4F/255.0f alpha:1.0];
}
+ (UIColor *)darkSlateGreyHTMLColor {
return [UIColor colorWithRed:0x2F/255.0f green:0x4F/255.0f blue:0x4F/255.0f alpha:1.0];
}
+ (UIColor *)darkTurquoiseHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0xCE/255.0f blue:0xD1/255.0f alpha:1.0];
}
+ (UIColor *)darkVioletHTMLColor {
return [UIColor colorWithRed:0x94/255.0f green:0x00/255.0f blue:0xD3/255.0f alpha:1.0];
}
+ (UIColor *)deepPinkHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x14/255.0f blue:0x93/255.0f alpha:1.0];
}
+ (UIColor *)deepSkyBlueHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0xBF/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)dimGrayHTMLColor {
return [UIColor colorWithRed:0x69/255.0f green:0x69/255.0f blue:0x69/255.0f alpha:1.0];
}
+ (UIColor *)dimGreyHTMLColor {
return [UIColor colorWithRed:0x69/255.0f green:0x69/255.0f blue:0x69/255.0f alpha:1.0];
}
+ (UIColor *)dodgerBlueHTMLColor {
return [UIColor colorWithRed:0x1E/255.0f green:0x90/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)fireBrickHTMLColor {
return [UIColor colorWithRed:0xB2/255.0f green:0x22/255.0f blue:0x22/255.0f alpha:1.0];
}
+ (UIColor *)floralWhiteHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xFA/255.0f blue:0xF0/255.0f alpha:1.0];
}
+ (UIColor *)forestGreenHTMLColor {
return [UIColor colorWithRed:0x22/255.0f green:0x8B/255.0f blue:0x22/255.0f alpha:1.0];
}
+ (UIColor *)fuchsiaHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x00/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)gainsboroHTMLColor {
return [UIColor colorWithRed:0xDC/255.0f green:0xDC/255.0f blue:0xDC/255.0f alpha:1.0];
}
+ (UIColor *)ghostWhiteHTMLColor {
return [UIColor colorWithRed:0xF8/255.0f green:0xF8/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)goldHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xD7/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)goldenRodHTMLColor {
return [UIColor colorWithRed:0xDA/255.0f green:0xA5/255.0f blue:0x20/255.0f alpha:1.0];
}
+ (UIColor *)grayHTMLColor {
return [UIColor colorWithRed:0x80/255.0f green:0x80/255.0f blue:0x80/255.0f alpha:1.0];
}
+ (UIColor *)greyHTMLColor {
return [UIColor colorWithRed:0x80/255.0f green:0x80/255.0f blue:0x80/255.0f alpha:1.0];
}
+ (UIColor *)greenHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x80/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)greenYellowHTMLColor {
return [UIColor colorWithRed:0xAD/255.0f green:255.0f /255.0f blue:0x2F/255.0f alpha:1.0];
}
+ (UIColor *)honeyDewHTMLColor {
return [UIColor colorWithRed:0xF0/255.0f green:255.0f /255.0f blue:0xF0/255.0f alpha:1.0];
}
+ (UIColor *)hotPinkHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x69/255.0f blue:0xB4/255.0f alpha:1.0];
}
+ (UIColor *)indianRedHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xD5/255.0f blue:0xC5C/255.0f alpha:1.0];
}
+ (UIColor *)indigoHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xB0/255.0f blue:0x082/255.0f alpha:1.0];
}
+ (UIColor *)ivoryHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:255.0f /255.0f blue:0xF0/255.0f alpha:1.0];
}
+ (UIColor *)khakiHTMLColor {
return [UIColor colorWithRed:0xF0/255.0f green:0xE6/255.0f blue:0x8C/255.0f alpha:1.0];
}
+ (UIColor *)lavenderHTMLColor {
return [UIColor colorWithRed:0xE6/255.0f green:0xE6/255.0f blue:0xFA/255.0f alpha:1.0];
}
+ (UIColor *)lavenderBlushHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xF0/255.0f blue:0xF5/255.0f alpha:1.0];
}
+ (UIColor *)lawnGreenHTMLColor {
return [UIColor colorWithRed:0x7C/255.0f green:0xFC/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)lemonChiffonHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xFA/255.0f blue:0xCD/255.0f alpha:1.0];
}
+ (UIColor *)lightBlueHTMLColor {
return [UIColor colorWithRed:0xAD/255.0f green:0xD8/255.0f blue:0xE6/255.0f alpha:1.0];
}
+ (UIColor *)lightCoralHTMLColor {
return [UIColor colorWithRed:0xF0/255.0f green:0x80/255.0f blue:0x80/255.0f alpha:1.0];
}
+ (UIColor *)lightCyanHTMLColor {
return [UIColor colorWithRed:0xE0/255.0f green:255.0f /255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)lightGoldenRodYellowHTMLColor {
return [UIColor colorWithRed:0xFA/255.0f green:0xFA/255.0f blue:0xD2/255.0f alpha:1.0];
}
+ (UIColor *)lightGrayHTMLColor {
return [UIColor colorWithRed:0xD3/255.0f green:0xD3/255.0f blue:0xD3/255.0f alpha:1.0];
}
+ (UIColor *)lightGreyHTMLColor {
return [UIColor colorWithRed:0xD3/255.0f green:0xD3/255.0f blue:0xD3/255.0f alpha:1.0];
}
+ (UIColor *)lightGreenHTMLColor {
return [UIColor colorWithRed:0x90/255.0f green:0xEE/255.0f blue:0x90/255.0f alpha:1.0];
}
+ (UIColor *)lightPinkHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xB6/255.0f blue:0xC1/255.0f alpha:1.0];
}
+ (UIColor *)lightSalmonHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xA0/255.0f blue:0x7A/255.0f alpha:1.0];
}
+ (UIColor *)lightSeaGreenHTMLColor {
return [UIColor colorWithRed:0x20/255.0f green:0xB2/255.0f blue:0xAA/255.0f alpha:1.0];
}
+ (UIColor *)lightSkyBlueHTMLColor {
return [UIColor colorWithRed:0x87/255.0f green:0xCE/255.0f blue:0xFA/255.0f alpha:1.0];
}
+ (UIColor *)lightSlateGrayHTMLColor {
return [UIColor colorWithRed:0x77/255.0f green:0x88/255.0f blue:0x99/255.0f alpha:1.0];
}
+ (UIColor *)lightSlateGreyHTMLColor {
return [UIColor colorWithRed:0x77/255.0f green:0x88/255.0f blue:0x99/255.0f alpha:1.0];
}
+ (UIColor *)lightSteelBlueHTMLColor {
return [UIColor colorWithRed:0xB0/255.0f green:0xC4/255.0f blue:0xDE/255.0f alpha:1.0];
}
+ (UIColor *)lightYellowHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:255.0f /255.0f blue:0xE0/255.0f alpha:1.0];
}
+ (UIColor *)limeHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:255.0f /255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)limeGreenHTMLColor {
return [UIColor colorWithRed:0x32/255.0f green:0xCD/255.0f blue:0x32/255.0f alpha:1.0];
}
+ (UIColor *)linenHTMLColor {
return [UIColor colorWithRed:0xFA/255.0f green:0xF0/255.0f blue:0xE6/255.0f alpha:1.0];
}
+ (UIColor *)magentaHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x00/255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)maroonHTMLColor {
return [UIColor colorWithRed:0x80/255.0f green:0x00/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)mediumAquaMarineHTMLColor {
return [UIColor colorWithRed:0x66/255.0f green:0xCD/255.0f blue:0xAA/255.0f alpha:1.0];
}
+ (UIColor *)mediumBlueHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x00/255.0f blue:0xCD/255.0f alpha:1.0];
}
+ (UIColor *)mediumOrchidHTMLColor {
return [UIColor colorWithRed:0xBA/255.0f green:0x55/255.0f blue:0xD3/255.0f alpha:1.0];
}
+ (UIColor *)mediumPurpleHTMLColor {
return [UIColor colorWithRed:0x93/255.0f green:0x70/255.0f blue:0xD8/255.0f alpha:1.0];
}
+ (UIColor *)mediumSeaGreenHTMLColor {
return [UIColor colorWithRed:0x3C/255.0f green:0xB3/255.0f blue:0x71/255.0f alpha:1.0];
}
+ (UIColor *)mediumSlateBlueHTMLColor {
return [UIColor colorWithRed:0x7B/255.0f green:0x68/255.0f blue:0xEE/255.0f alpha:1.0];
}
+ (UIColor *)mediumSpringGreenHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0xFA/255.0f blue:0x9A/255.0f alpha:1.0];
}
+ (UIColor *)mediumTurquoiseHTMLColor {
return [UIColor colorWithRed:0x48/255.0f green:0xD1/255.0f blue:0xCC/255.0f alpha:1.0];
}
+ (UIColor *)mediumVioletRedHTMLColor {
return [UIColor colorWithRed:0xC7/255.0f green:0x15/255.0f blue:0x85/255.0f alpha:1.0];
}
+ (UIColor *)midnightBlueHTMLColor {
return [UIColor colorWithRed:0x19/255.0f green:0x19/255.0f blue:0x70/255.0f alpha:1.0];
}
+ (UIColor *)mintCreamHTMLColor {
return [UIColor colorWithRed:0xF5/255.0f green:255.0f /255.0f blue:0xFA/255.0f alpha:1.0];
}
+ (UIColor *)mistyRoseHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xE4/255.0f blue:0xE1/255.0f alpha:1.0];
}
+ (UIColor *)moccasinHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xE4/255.0f blue:0xB5/255.0f alpha:1.0];
}
+ (UIColor *)navajoWhiteHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xDE/255.0f blue:0xAD/255.0f alpha:1.0];
}
+ (UIColor *)navyHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x00/255.0f blue:0x80/255.0f alpha:1.0];
}
+ (UIColor *)oldLaceHTMLColor {
return [UIColor colorWithRed:0xFD/255.0f green:0xF5/255.0f blue:0xE6/255.0f alpha:1.0];
}
+ (UIColor *)oliveHTMLColor {
return [UIColor colorWithRed:0x80/255.0f green:0x80/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)oliveDrabHTMLColor {
return [UIColor colorWithRed:0x6B/255.0f green:0x8E/255.0f blue:0x23/255.0f alpha:1.0];
}
+ (UIColor *)orangeHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xA5/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)orangeRedHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x45/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)orchidHTMLColor {
return [UIColor colorWithRed:0xDA/255.0f green:0x70/255.0f blue:0xD6/255.0f alpha:1.0];
}
+ (UIColor *)paleGoldenRodHTMLColor {
return [UIColor colorWithRed:0xEE/255.0f green:0xE8/255.0f blue:0xAA/255.0f alpha:1.0];
}
+ (UIColor *)paleGreenHTMLColor {
return [UIColor colorWithRed:0x98/255.0f green:0xFB/255.0f blue:0x98/255.0f alpha:1.0];
}
+ (UIColor *)paleTurquoiseHTMLColor {
return [UIColor colorWithRed:0xAF/255.0f green:0xEE/255.0f blue:0xEE/255.0f alpha:1.0];
}
+ (UIColor *)paleVioletRedHTMLColor {
return [UIColor colorWithRed:0xD8/255.0f green:0x70/255.0f blue:0x93/255.0f alpha:1.0];
}
+ (UIColor *)papayaWhipHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xEF/255.0f blue:0xD5/255.0f alpha:1.0];
}
+ (UIColor *)peachPuffHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xDA/255.0f blue:0xB9/255.0f alpha:1.0];
}
+ (UIColor *)peruHTMLColor {
return [UIColor colorWithRed:0xCD/255.0f green:0x85/255.0f blue:0x3F/255.0f alpha:1.0];
}
+ (UIColor *)pinkHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xC0/255.0f blue:0xCB/255.0f alpha:1.0];
}
+ (UIColor *)plumHTMLColor {
return [UIColor colorWithRed:0xDD/255.0f green:0xA0/255.0f blue:0xDD/255.0f alpha:1.0];
}
+ (UIColor *)powderBlueHTMLColor {
return [UIColor colorWithRed:0xB0/255.0f green:0xE0/255.0f blue:0xE6/255.0f alpha:1.0];
}
+ (UIColor *)purpleHTMLColor {
return [UIColor colorWithRed:0x80/255.0f green:0x00/255.0f blue:0x80/255.0f alpha:1.0];
}
+ (UIColor *)redHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x00/255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)rosyBrownHTMLColor {
return [UIColor colorWithRed:0xBC/255.0f green:0x8F/255.0f blue:0x8F/255.0f alpha:1.0];
}
+ (UIColor *)royalBlueHTMLColor {
return [UIColor colorWithRed:0x41/255.0f green:0x69/255.0f blue:0xE1/255.0f alpha:1.0];
}
+ (UIColor *)saddleBrownHTMLColor {
return [UIColor colorWithRed:0x8B/255.0f green:0x45/255.0f blue:0x13/255.0f alpha:1.0];
}
+ (UIColor *)salmonHTMLColor {
return [UIColor colorWithRed:0xFA/255.0f green:0x80/255.0f blue:0x72/255.0f alpha:1.0];
}
+ (UIColor *)sandyBrownHTMLColor {
return [UIColor colorWithRed:0xF4/255.0f green:0xA4/255.0f blue:0x60/255.0f alpha:1.0];
}
+ (UIColor *)seaGreenHTMLColor {
return [UIColor colorWithRed:0x2E/255.0f green:0x8B/255.0f blue:0x57/255.0f alpha:1.0];
}
+ (UIColor *)seaShellHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xF5/255.0f blue:0xEE/255.0f alpha:1.0];
}
+ (UIColor *)siennaHTMLColor {
return [UIColor colorWithRed:0xA0/255.0f green:0x52/255.0f blue:0x2D/255.0f alpha:1.0];
}
+ (UIColor *)silverHTMLColor {
return [UIColor colorWithRed:0xC0/255.0f green:0xC0/255.0f blue:0xC0/255.0f alpha:1.0];
}
+ (UIColor *)skyBlueHTMLColor {
return [UIColor colorWithRed:0x87/255.0f green:0xCE/255.0f blue:0xEB/255.0f alpha:1.0];
}
+ (UIColor *)slateBlueHTMLColor {
return [UIColor colorWithRed:0x6A/255.0f green:0x5A/255.0f blue:0xCD/255.0f alpha:1.0];
}
+ (UIColor *)slateGrayHTMLColor {
return [UIColor colorWithRed:0x70/255.0f green:0x80/255.0f blue:0x90/255.0f alpha:1.0];
}
+ (UIColor *)slateGreyHTMLColor {
return [UIColor colorWithRed:0x70/255.0f green:0x80/255.0f blue:0x90/255.0f alpha:1.0];
}
+ (UIColor *)snowHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0xFA/255.0f blue:0xFA/255.0f alpha:1.0];
}
+ (UIColor *)springGreenHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:255.0f /255.0f blue:0x7F/255.0f alpha:1.0];
}
+ (UIColor *)steelBlueHTMLColor {
return [UIColor colorWithRed:0x46/255.0f green:0x82/255.0f blue:0xB4/255.0f alpha:1.0];
}
+ (UIColor *)tanHTMLColor {
return [UIColor colorWithRed:0xD2/255.0f green:0xB4/255.0f blue:0x8C/255.0f alpha:1.0];
}
+ (UIColor *)tealHTMLColor {
return [UIColor colorWithRed:0x00/255.0f green:0x80/255.0f blue:0x80/255.0f alpha:1.0];
}
+ (UIColor *)thistleHTMLColor {
return [UIColor colorWithRed:0xD8/255.0f green:0xBF/255.0f blue:0xD8/255.0f alpha:1.0];
}
+ (UIColor *)tomatoHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:0x63/255.0f blue:0x47/255.0f alpha:1.0];
}
+ (UIColor *)turquoiseHTMLColor {
return [UIColor colorWithRed:0x40/255.0f green:0xE0/255.0f blue:0xD0/255.0f alpha:1.0];
}
+ (UIColor *)violetHTMLColor {
return [UIColor colorWithRed:0xEE/255.0f green:0x82/255.0f blue:0xEE/255.0f alpha:1.0];
}
+ (UIColor *)wheatHTMLColor {
return [UIColor colorWithRed:0xF5/255.0f green:0xDE/255.0f blue:0xB3/255.0f alpha:1.0];
}
+ (UIColor *)whiteHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:255.0f /255.0f blue:255.0f /255.0f alpha:1.0];
}
+ (UIColor *)whiteSmokeHTMLColor {
return [UIColor colorWithRed:0xF5/255.0f green:0xF5/255.0f blue:0xF5/255.0f alpha:1.0];
}
+ (UIColor *)yellowHTMLColor {
return [UIColor colorWithRed:255.0f /255.0f green:255.0f /255.0f blue:0x00/255.0f alpha:1.0];
}
+ (UIColor *)yellowGreenHTMLColor {
return [UIColor colorWithRed:0x9A/255.0f green:0xCD/255.0f blue:0x32 alpha:1.0];
}
#pragma mark - Miscellaneous colors
+ (UIColor *)randomColor {
return [UIColor colorWithRed:(CGFloat)((arc4random() % 1000) / 1000.0f)
green:(CGFloat)((arc4random() % 1000) / 1000.0f)
blue:(CGFloat)((arc4random() % 1000) / 1000.0f)
alpha:1.0f];
}
+ (UIColor *)randomColorAndAlpha {
return [UIColor colorWithRed:(CGFloat)((arc4random() % 1000) / 1000.0f)
green:(CGFloat)((arc4random() % 1000) / 1000.0f)
blue:(CGFloat)((arc4random() % 1000) / 1000.0f)
alpha:(CGFloat)((arc4random() % 1000) / 1000.0f)];
}
@end