From d6b8e5524b9661da533b5c11b94f6931bbfb6012 Mon Sep 17 00:00:00 2001 From: Reid Gravelle Date: Thu, 26 Mar 2015 11:21:08 -0400 Subject: [PATCH] Added the X11 colour palette. --- Readme.md | 6 +- UIColor+Rainbow.swift | 108 ++- UIColor+RainbowX11.swift | 1681 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 1781 insertions(+), 14 deletions(-) create mode 100644 UIColor+RainbowX11.swift diff --git a/Readme.md b/Readme.md index bbc5d56..64142d9 100644 --- a/Readme.md +++ b/Readme.md @@ -19,7 +19,8 @@ To use the library download the file you want and import it into your project. * __UIColor+Rainbow.swift__ - The complete palette of colours. If you import this one into your project don't use any others. * __UIColor+RainbowCrayons.swift__ - A subset that only includes colours that are or have been Crayola colours. -* __UIColor+RainbowLight.swift__ - A subset that contains the more common colours. Please let me know if you think a colour should be in here. +* __UIColor+RainbowLight.swift__ - A subset that contains the more common colours. Please let me know if you think a colour should be in here. This palette is one that I am choosing the colours for on my own. +* __UIColor+RainbowX11.swift__ - A palette that contains a subset which are the defined X11 colours. They are also known as the web colours because all of the browsers define them along with the 16 colours defined in the HTML spec. I've created this subset because I figured that it's probably a nice light-weight and balanced palette to make available. If you can't find a colour in the library and you want to use the new color instance creation function add the file __UIColor+Creater.swift__ to your project. Then you can change your code from @@ -41,12 +42,13 @@ In the meantime you can view the colours at Wikipedia where I got the data for a * [List of Colors: G-M](https://en.wikipedia.org/wiki/List_of_colors:_G–M) * [List of Colors: N-Z](https://en.wikipedia.org/wiki/List_of_colors:_N–Z) * [List of Crayola Crayon Colors](https://en.wikipedia.org/wiki/List_of_Crayola_crayon_colors) +* [X11 Color Names](https://en.wikipedia.org/wiki/X11_color_names) I also want to get the library so that it can be used with Mac applications. Right now it is only useful for iOS apps. Since I haven't built any apps for the Mac I don't know what needs to be done for the conversion. Any assistance would be appreciated. ## Contact -If you find a problem, want to suggest a colour, suggest how something that can be done differently, or even say hi you can reach me on [@NrthrnRealities](https://twitter.com/NrthrnRealities) on Twitter. +If you find a problem, want to suggest a colour (or know someone I could approach about asking to use their colour set), suggest how something that can be done differently, or even say hi you can reach me on [@NrthrnRealities](https://twitter.com/NrthrnRealities) on Twitter. ## A Note About Spelling diff --git a/UIColor+Rainbow.swift b/UIColor+Rainbow.swift index 1e88bcb..224438c 100644 --- a/UIColor+Rainbow.swift +++ b/UIColor+Rainbow.swift @@ -5986,27 +5986,27 @@ extension UIColor { /** - Returns a color object representing the color Green-Cyan, whose RBG values are (0, 153, 102), and has the specified opacity. + Returns a color object representing the color Green Yellow, whose RBG values are (173, 255, 47), and has the specified opacity. :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. :returns: The UIColor object */ - class func greenCyanColor ( alpha: CGFloat = 1.0 ) -> UIColor { - return UIColor.init ( red: 0.0/255.0, green: 153.0/255.0, blue: 102.0/255.0, alpha: alpha ) } + class func greenYellowColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 173.0/255.0, green: 255.0/255.0, blue: 47.0/255.0, alpha: alpha ) } /** - Returns a color object representing the color Green-Yellow, whose RBG values are (173, 255, 47), and has the specified opacity. + Returns a color object representing the color Green-Cyan, whose RBG values are (0, 153, 102), and has the specified opacity. :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. :returns: The UIColor object */ - class func greenYellowColor ( alpha: CGFloat = 1.0 ) -> UIColor { - return UIColor.init ( red: 173.0/255.0, green: 255.0/255.0, blue: 47.0/255.0, alpha: alpha ) } + class func greenCyanColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 153.0/255.0, blue: 102.0/255.0, alpha: alpha ) } /** @@ -6813,6 +6813,18 @@ extension UIColor { return UIColor.init ( red: 58.0/255.0, green: 176.0/255.0, blue: 158.0/255.0, alpha: alpha ) } + /** + Returns a color object representing the color Khaki, whose RBG values are (189, 183, 107), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func khakiColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 189.0/255.0, green: 183.0/255.0, blue: 107.0/255.0, alpha: alpha ) } + + /** Returns a color object representing the color Khaki (X11) (Light Khaki), whose RBG values are (240, 230, 140), and has the specified opacity. @@ -8877,6 +8889,18 @@ extension UIColor { return UIColor.init ( red: 0.0/255.0, green: 0.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + /** + Returns a color object representing the color Navy Blue, whose RBG values are (0, 0, 128), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func navyBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 0.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + + /** Returns a color object representing the color Navy Blue (Crayola), whose RBG values are (25, 116, 210), and has the specified opacity. @@ -12369,6 +12393,18 @@ extension UIColor { return UIColor.init ( red: 136.0/255.0, green: 45.0/255.0, blue: 23.0/255.0, alpha: alpha ) } + /** + Returns a color object representing the color Sienna (X11), whose RBG values are (160, 82, 45), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func siennaX11Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 160.0/255.0, green: 82.0/255.0, blue: 45.0/255.0, alpha: alpha ) } + + /** Returns a color object representing the color Silver, whose RBG values are (192, 192, 192), and has the specified opacity. @@ -14541,6 +14577,54 @@ extension UIColor { return UIColor.init ( red: 164.0/255.0, green: 244.0/255.0, blue: 249.0/255.0, alpha: alpha ) } + /** + Returns a color object representing the color Web Gray, whose RBG values are (128, 128, 128), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webGrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 128.0/255.0, green: 128.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Green, whose RBG values are (0, 128, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 128.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Maroon, whose RBG values are (127, 0, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webMaroonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 127.0/255.0, green: 0.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Purple, whose RBG values are (127, 0, 127), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webPurpleColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 127.0/255.0, green: 0.0/255.0, blue: 127.0/255.0, alpha: alpha ) } + + /** Returns a color object representing the color Wenge, whose RBG values are (100, 84, 82), and has the specified opacity. @@ -14842,27 +14926,27 @@ extension UIColor { /** - Returns a color object representing the color Yellow Rose, whose RBG values are (255, 240, 0), and has the specified opacity. + Returns a color object representing the color Yellow Green, whose RBG values are (154, 205, 50), and has the specified opacity. :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. :returns: The UIColor object */ - class func yellowRoseColor ( alpha: CGFloat = 1.0 ) -> UIColor { - return UIColor.init ( red: 255.0/255.0, green: 240.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + class func yellowGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 154.0/255.0, green: 205.0/255.0, blue: 50.0/255.0, alpha: alpha ) } /** - Returns a color object representing the color Yellow-Green, whose RBG values are (154, 205, 50), and has the specified opacity. + Returns a color object representing the color Yellow Rose, whose RBG values are (255, 240, 0), and has the specified opacity. :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. :returns: The UIColor object */ - class func yellowGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { - return UIColor.init ( red: 154.0/255.0, green: 205.0/255.0, blue: 50.0/255.0, alpha: alpha ) } + class func yellowRoseColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 240.0/255.0, blue: 0.0/255.0, alpha: alpha ) } /** diff --git a/UIColor+RainbowX11.swift b/UIColor+RainbowX11.swift new file mode 100644 index 0000000..40c54b5 --- /dev/null +++ b/UIColor+RainbowX11.swift @@ -0,0 +1,1681 @@ +// +// UIColor+RainbowX11.swift +// Rainbow UIColor Extension +// +// Created by Reid Gravelle on 2015-03-26. +// Copyright (c) 2015 Northern Realities Inc. All rights reserved. +// + +import UIKit + +extension UIColor { + /** + Returns a color object representing the color Alice Blue, whose RBG values are (240, 248, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func aliceBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 240.0/255.0, green: 248.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Antique White, whose RBG values are (250, 235, 215), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func antiqueWhiteColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 250.0/255.0, green: 235.0/255.0, blue: 215.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Aqua, whose RBG values are (0, 255, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func aquaColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 255.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Aquamarine, whose RBG values are (127, 255, 212), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func aquamarineColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 127.0/255.0, green: 255.0/255.0, blue: 212.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Azure (Web Color), whose RBG values are (240, 255, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func azureWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 240.0/255.0, green: 255.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Beige, whose RBG values are (245, 245, 220), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func beigeColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 245.0/255.0, green: 245.0/255.0, blue: 220.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Bisque, whose RBG values are (255, 228, 196), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func bisqueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 228.0/255.0, blue: 196.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Blanched Almond, whose RBG values are (255, 235, 205), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func blanchedAlmondColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 235.0/255.0, blue: 205.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Blue-Violet, whose RBG values are (138, 43, 226), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func blueVioletColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 138.0/255.0, green: 43.0/255.0, blue: 226.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Brown (Web), whose RBG values are (165, 42, 42), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func brownWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 165.0/255.0, green: 42.0/255.0, blue: 42.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Burlywood, whose RBG values are (222, 184, 135), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func burlywoodColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 222.0/255.0, green: 184.0/255.0, blue: 135.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Cadet Blue, whose RBG values are (95, 158, 160), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func cadetBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 95.0/255.0, green: 158.0/255.0, blue: 160.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Chartreuse (Web), whose RBG values are (127, 255, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func chartreuseWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 127.0/255.0, green: 255.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Chocolate (Web), whose RBG values are (210, 105, 30), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func chocolateWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 210.0/255.0, green: 105.0/255.0, blue: 30.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Coral, whose RBG values are (255, 127, 80), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func coralColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 127.0/255.0, blue: 80.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Cornflower Blue, whose RBG values are (100, 149, 237), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func cornflowerBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 100.0/255.0, green: 149.0/255.0, blue: 237.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Cornsilk, whose RBG values are (255, 248, 220), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func cornsilkColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 248.0/255.0, blue: 220.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Crimson, whose RBG values are (220, 20, 60), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func crimsonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 220.0/255.0, green: 20.0/255.0, blue: 60.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Blue, whose RBG values are (0, 0, 139), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 0.0/255.0, blue: 139.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Cyan, whose RBG values are (0, 139, 139), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkCyanColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 139.0/255.0, blue: 139.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Goldenrod, whose RBG values are (184, 134, 11), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkGoldenrodColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 184.0/255.0, green: 134.0/255.0, blue: 11.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Gray (X11), whose RBG values are (169, 169, 169), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkGrayX11Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 169.0/255.0, green: 169.0/255.0, blue: 169.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Green (X11), whose RBG values are (0, 100, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkGreenX11Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 100.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Khaki, whose RBG values are (189, 183, 107), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkKhakiColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 189.0/255.0, green: 183.0/255.0, blue: 107.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Magenta, whose RBG values are (139, 0, 139), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkMagentaColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 139.0/255.0, green: 0.0/255.0, blue: 139.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Olive Green, whose RBG values are (85, 107, 47), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkOliveGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 85.0/255.0, green: 107.0/255.0, blue: 47.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Orange, whose RBG values are (255, 140, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkOrangeColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 140.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Orchid, whose RBG values are (153, 50, 204), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkOrchidColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 153.0/255.0, green: 50.0/255.0, blue: 204.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Red, whose RBG values are (139, 0, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkRedColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 139.0/255.0, green: 0.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Salmon, whose RBG values are (233, 150, 122), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkSalmonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 233.0/255.0, green: 150.0/255.0, blue: 122.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Sea Green, whose RBG values are (143, 188, 143), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkSeaGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 143.0/255.0, green: 188.0/255.0, blue: 143.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Slate Blue, whose RBG values are (72, 61, 139), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkSlateBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 72.0/255.0, green: 61.0/255.0, blue: 139.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Slate Gray, whose RBG values are (47, 79, 79), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkSlateGrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 47.0/255.0, green: 79.0/255.0, blue: 79.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Turquoise, whose RBG values are (0, 206, 209), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkTurquoiseColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 206.0/255.0, blue: 209.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dark Violet, whose RBG values are (148, 0, 211), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func darkVioletColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 148.0/255.0, green: 0.0/255.0, blue: 211.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Deep Pink, whose RBG values are (255, 20, 147), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func deepPinkColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 20.0/255.0, blue: 147.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Deep Sky Blue, whose RBG values are (0, 191, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func deepSkyBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 191.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dim Gray, whose RBG values are (105, 105, 105), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func dimGrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 105.0/255.0, green: 105.0/255.0, blue: 105.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Dodger Blue, whose RBG values are (30, 144, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func dodgerBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 30.0/255.0, green: 144.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Firebrick, whose RBG values are (178, 34, 34), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func firebrickColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 178.0/255.0, green: 34.0/255.0, blue: 34.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Floral White, whose RBG values are (255, 250, 240), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func floralWhiteColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 250.0/255.0, blue: 240.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Forest Green (Web), whose RBG values are (34, 139, 34), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func forestGreenWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 34.0/255.0, green: 139.0/255.0, blue: 34.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Fuchsia, whose RBG values are (255, 0, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func fuchsiaColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 0.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Gainsboro, whose RBG values are (220, 220, 220), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func gainsboroColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 220.0/255.0, green: 220.0/255.0, blue: 220.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Ghost White, whose RBG values are (248, 248, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func ghostWhiteColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 248.0/255.0, green: 248.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Gold (Web) (Golden), whose RBG values are (255, 215, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func goldWebGoldenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 215.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Goldenrod, whose RBG values are (218, 165, 32), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func goldenrodColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 218.0/255.0, green: 165.0/255.0, blue: 32.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Gray (X11 Gray), whose RBG values are (190, 190, 190), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func grayX11GrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 190.0/255.0, green: 190.0/255.0, blue: 190.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Green (Color Wheel) (X11 Green), whose RBG values are (0, 255, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func greenColorWheelX11GreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 255.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Green Yellow, whose RBG values are (173, 255, 47), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func greenYellowColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 173.0/255.0, green: 255.0/255.0, blue: 47.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Honeydew, whose RBG values are (240, 255, 240), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func honeydewColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 240.0/255.0, green: 255.0/255.0, blue: 240.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Hot Pink, whose RBG values are (255, 105, 180), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func hotPinkColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 105.0/255.0, blue: 180.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Indian Red, whose RBG values are (205, 92, 92), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func indianRedColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 205.0/255.0, green: 92.0/255.0, blue: 92.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Indigo, whose RBG values are (75, 0, 130), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func indigoColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 75.0/255.0, green: 0.0/255.0, blue: 130.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Ivory, whose RBG values are (255, 255, 240), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func ivoryColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 255.0/255.0, blue: 240.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Khaki, whose RBG values are (189, 183, 107), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func khakiColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 189.0/255.0, green: 183.0/255.0, blue: 107.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Lavender (Web), whose RBG values are (230, 230, 250), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lavenderWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 230.0/255.0, green: 230.0/255.0, blue: 250.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Lavender Blush, whose RBG values are (255, 240, 245), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lavenderBlushColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 240.0/255.0, blue: 245.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Lawn Green, whose RBG values are (124, 252, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lawnGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 124.0/255.0, green: 252.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Lemon Chiffon, whose RBG values are (255, 250, 205), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lemonChiffonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 250.0/255.0, blue: 205.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Blue, whose RBG values are (173, 216, 230), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 173.0/255.0, green: 216.0/255.0, blue: 230.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Coral, whose RBG values are (240, 128, 128), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightCoralColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 240.0/255.0, green: 128.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Cyan, whose RBG values are (224, 255, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightCyanColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 224.0/255.0, green: 255.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Goldenrod Yellow, whose RBG values are (250, 250, 210), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightGoldenrodYellowColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 250.0/255.0, green: 250.0/255.0, blue: 210.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Gray (Alternate), whose RBG values are (211, 211, 211), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightGrayAlternateColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 211.0/255.0, green: 211.0/255.0, blue: 211.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Green, whose RBG values are (144, 238, 144), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 144.0/255.0, green: 238.0/255.0, blue: 144.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Pink, whose RBG values are (255, 182, 193), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightPinkColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 182.0/255.0, blue: 193.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Salmon, whose RBG values are (255, 160, 122), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightSalmonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 160.0/255.0, blue: 122.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Sea Green, whose RBG values are (32, 178, 170), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightSeaGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 32.0/255.0, green: 178.0/255.0, blue: 170.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Sky Blue, whose RBG values are (135, 206, 250), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightSkyBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 135.0/255.0, green: 206.0/255.0, blue: 250.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Slate Gray, whose RBG values are (119, 136, 153), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightSlateGrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 119.0/255.0, green: 136.0/255.0, blue: 153.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Steel Blue, whose RBG values are (176, 196, 222), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightSteelBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 176.0/255.0, green: 196.0/255.0, blue: 222.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Light Yellow, whose RBG values are (255, 255, 224), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func lightYellowColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 255.0/255.0, blue: 224.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Lime (Web) (X11 Green), whose RBG values are (0, 255, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func limeWebX11GreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 255.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Lime Green, whose RBG values are (50, 205, 50), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func limeGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 50.0/255.0, green: 205.0/255.0, blue: 50.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Linen, whose RBG values are (250, 240, 230), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func linenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 250.0/255.0, green: 240.0/255.0, blue: 230.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Magenta, whose RBG values are (255, 0, 255), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func magentaColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 0.0/255.0, blue: 255.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Maroon (X11), whose RBG values are (176, 48, 96), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func maroonX11Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 176.0/255.0, green: 48.0/255.0, blue: 96.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Aquamarine, whose RBG values are (102, 221, 170), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumAquamarineColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 102.0/255.0, green: 221.0/255.0, blue: 170.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Blue, whose RBG values are (0, 0, 205), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 0.0/255.0, blue: 205.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Orchid, whose RBG values are (186, 85, 211), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumOrchidColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 186.0/255.0, green: 85.0/255.0, blue: 211.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Purple, whose RBG values are (147, 112, 219), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumPurpleColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 147.0/255.0, green: 112.0/255.0, blue: 219.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Sea Green, whose RBG values are (60, 179, 113), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumSeaGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 60.0/255.0, green: 179.0/255.0, blue: 113.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Slate Blue, whose RBG values are (123, 104, 238), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumSlateBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 123.0/255.0, green: 104.0/255.0, blue: 238.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Spring Green, whose RBG values are (0, 250, 154), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumSpringGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 250.0/255.0, blue: 154.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Turquoise, whose RBG values are (72, 209, 204), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumTurquoiseColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 72.0/255.0, green: 209.0/255.0, blue: 204.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Medium Violet-Red, whose RBG values are (199, 21, 133), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mediumVioletRedColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 199.0/255.0, green: 21.0/255.0, blue: 133.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Midnight Blue, whose RBG values are (25, 25, 112), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func midnightBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 25.0/255.0, green: 25.0/255.0, blue: 112.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Mint Cream, whose RBG values are (245, 255, 250), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mintCreamColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 245.0/255.0, green: 255.0/255.0, blue: 250.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Misty Rose, whose RBG values are (255, 228, 225), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func mistyRoseColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 228.0/255.0, blue: 225.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Moccasin, whose RBG values are (250, 235, 215), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func moccasinColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 250.0/255.0, green: 235.0/255.0, blue: 215.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Navajo White, whose RBG values are (255, 222, 173), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func navajoWhiteColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 222.0/255.0, blue: 173.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Navy Blue, whose RBG values are (0, 0, 128), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func navyBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 0.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Old Lace, whose RBG values are (253, 245, 230), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func oldLaceColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 253.0/255.0, green: 245.0/255.0, blue: 230.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Olive, whose RBG values are (128, 128, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func oliveColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 128.0/255.0, green: 128.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Olive Drab #3, whose RBG values are (107, 142, 35), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func oliveDrabNumber3Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 107.0/255.0, green: 142.0/255.0, blue: 35.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Orange (Web), whose RBG values are (255, 165, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func orangeWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 165.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Orange-Red, whose RBG values are (255, 69, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func orangeRedColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 69.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Orchid, whose RBG values are (218, 112, 214), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func orchidColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 218.0/255.0, green: 112.0/255.0, blue: 214.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Pale Goldenrod, whose RBG values are (238, 232, 170), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func paleGoldenrodColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 238.0/255.0, green: 232.0/255.0, blue: 170.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Pale Green, whose RBG values are (152, 251, 152), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func paleGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 152.0/255.0, green: 251.0/255.0, blue: 152.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Pale Turquoise, whose RBG values are (175, 238, 238), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func paleTurquoiseColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 175.0/255.0, green: 238.0/255.0, blue: 238.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Pale Violet-Red, whose RBG values are (219, 112, 147), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func paleVioletRedColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 219.0/255.0, green: 112.0/255.0, blue: 147.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Papaya Whip, whose RBG values are (255, 239, 213), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func papayaWhipColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 239.0/255.0, blue: 213.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Peach Puff, whose RBG values are (255, 218, 185), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func peachPuffColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 218.0/255.0, blue: 185.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Peru, whose RBG values are (205, 133, 63), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func peruColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 205.0/255.0, green: 133.0/255.0, blue: 63.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Pink, whose RBG values are (255, 192, 203), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func pinkColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 192.0/255.0, blue: 203.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Plum (Web), whose RBG values are (221, 160, 221), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func plumWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 221.0/255.0, green: 160.0/255.0, blue: 221.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Powder Blue, whose RBG values are (176, 224, 230), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func powderBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 176.0/255.0, green: 224.0/255.0, blue: 230.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Purple (X11), whose RBG values are (160, 32, 240), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func purpleX11Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 160.0/255.0, green: 32.0/255.0, blue: 240.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Rebecca Purple, whose RBG values are (102, 52, 153), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func rebeccaPurpleColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 102.0/255.0, green: 52.0/255.0, blue: 153.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Rosy Brown, whose RBG values are (188, 143, 143), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func rosyBrownColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 188.0/255.0, green: 143.0/255.0, blue: 143.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Royal Blue, whose RBG values are (65, 105, 225), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func royalBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 65.0/255.0, green: 105.0/255.0, blue: 225.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Saddle Brown, whose RBG values are (139, 69, 19), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func saddleBrownColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 139.0/255.0, green: 69.0/255.0, blue: 19.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Salmon, whose RBG values are (250, 128, 114), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func salmonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 250.0/255.0, green: 128.0/255.0, blue: 114.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Sandy Brown, whose RBG values are (244, 164, 96), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func sandyBrownColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 244.0/255.0, green: 164.0/255.0, blue: 96.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Sea Green, whose RBG values are (46, 139, 87), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func seaGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 46.0/255.0, green: 139.0/255.0, blue: 87.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Seashell, whose RBG values are (255, 245, 238), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func seashellColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 245.0/255.0, blue: 238.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Sienna (X11), whose RBG values are (160, 82, 45), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func siennaX11Color ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 160.0/255.0, green: 82.0/255.0, blue: 45.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Silver, whose RBG values are (192, 192, 192), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func silverColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 192.0/255.0, green: 192.0/255.0, blue: 192.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Sky Blue, whose RBG values are (135, 206, 235), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func skyBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 135.0/255.0, green: 206.0/255.0, blue: 235.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Slate Blue, whose RBG values are (106, 90, 205), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func slateBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 106.0/255.0, green: 90.0/255.0, blue: 205.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Slate Gray, whose RBG values are (112, 128, 144), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func slateGrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 112.0/255.0, green: 128.0/255.0, blue: 144.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Snow, whose RBG values are (255, 250, 250), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func snowColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 250.0/255.0, blue: 250.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Spring Green, whose RBG values are (0, 255, 127), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func springGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 255.0/255.0, blue: 127.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Steel Blue, whose RBG values are (70, 130, 180), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func steelBlueColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 70.0/255.0, green: 130.0/255.0, blue: 180.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Tan, whose RBG values are (210, 180, 140), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func tanColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 210.0/255.0, green: 180.0/255.0, blue: 140.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Teal, whose RBG values are (0, 128, 128), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func tealColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 128.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Thistle, whose RBG values are (216, 191, 216), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func thistleColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 216.0/255.0, green: 191.0/255.0, blue: 216.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Tomato, whose RBG values are (255, 99, 71), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func tomatoColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 255.0/255.0, green: 99.0/255.0, blue: 71.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Turquoise, whose RBG values are (64, 224, 208), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func turquoiseColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 64.0/255.0, green: 224.0/255.0, blue: 208.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Violet (Web), whose RBG values are (238, 130, 238), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func violetWebColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 238.0/255.0, green: 130.0/255.0, blue: 238.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Gray, whose RBG values are (128, 128, 128), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webGrayColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 128.0/255.0, green: 128.0/255.0, blue: 128.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Green, whose RBG values are (0, 128, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 0.0/255.0, green: 128.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Maroon, whose RBG values are (127, 0, 0), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webMaroonColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 127.0/255.0, green: 0.0/255.0, blue: 0.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Web Purple, whose RBG values are (127, 0, 127), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func webPurpleColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 127.0/255.0, green: 0.0/255.0, blue: 127.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Wheat, whose RBG values are (245, 222, 179), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func wheatColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 245.0/255.0, green: 222.0/255.0, blue: 179.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color White Smoke, whose RBG values are (245, 245, 245), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func whiteSmokeColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 245.0/255.0, green: 245.0/255.0, blue: 245.0/255.0, alpha: alpha ) } + + + /** + Returns a color object representing the color Yellow Green, whose RBG values are (154, 205, 50), and has the specified opacity. + + :param: alpha A CGFloat between 0.0 and 1.0 representing the opacity with a default value of 1.0. + + :returns: The UIColor object + */ + + class func yellowGreenColor ( alpha: CGFloat = 1.0 ) -> UIColor { + return UIColor.init ( red: 154.0/255.0, green: 205.0/255.0, blue: 50.0/255.0, alpha: alpha ) } + + +} +