rmthemegen 0.0.23 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,180 @@
1
+ #--
2
+ # Color
3
+ # Colour management with Ruby
4
+ # http://rubyforge.org/projects/color
5
+ # Version 1.4.1
6
+ #
7
+ # Licensed under a MIT-style licence. See Licence.txt in the main
8
+ # distribution for full licensing information.
9
+ #
10
+ # Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
11
+ #++
12
+
13
+ require 'color/palette'
14
+
15
+ # Generates a monochromatic constrasting colour palette for background and
16
+ # foreground. What does this mean?
17
+ #
18
+ # Monochromatic: A single colour is used to generate the base palette, and
19
+ # this colour is lightened five times and darkened five times to provide
20
+ # eleven distinct colours.
21
+ #
22
+ # Contrasting: The foreground is also generated as a monochromatic colour
23
+ # palette; however, all generated colours are tested to see that they are
24
+ # appropriately contrasting to ensure maximum readability of the foreground
25
+ # against the background.
26
+ class Color::Palette::MonoContrast
27
+ # Hash of CSS background colour values.
28
+ #
29
+ # This is always 11 values:
30
+ #
31
+ # 0:: The starting colour.
32
+ # +1..+5:: Lighter colours.
33
+ # -1..-5:: Darker colours.
34
+ attr_reader :background
35
+ # Hash of CSS foreground colour values.
36
+ #
37
+ # This is always 11 values:
38
+ #
39
+ # 0:: The starting colour.
40
+ # +1..+5:: Lighter colours.
41
+ # -1..-5:: Darker colours.
42
+ attr_reader :foreground
43
+
44
+ DEFAULT_MINIMUM_BRIGHTNESS_DIFF = (125.0 / 255.0)
45
+
46
+ # The minimum brightness difference between the background and the
47
+ # foreground, and must be between 0..1. Setting this value will regenerate
48
+ # the palette based on the base colours. The default value for this is 125
49
+ # / 255.0. If this value is set to +nil+, it will be restored to the
50
+ # default.
51
+ attr_accessor :minimum_brightness_diff
52
+ remove_method :minimum_brightness_diff= ;
53
+ def minimum_brightness_diff=(bd) #:nodoc:
54
+ if bd.nil?
55
+ @minimum_brightness_diff = DEFAULT_MINIMUM_BRIGHTNESS_DIFF
56
+ elsif bd > 1.0
57
+ @minimum_brightness_diff = 1.0
58
+ elsif bd < 0.0
59
+ @minimum_brightness_diff = 0.0
60
+ else
61
+ @minimum_brightness_diff = bd
62
+ end
63
+
64
+ regenerate(@background[0], @foreground[0])
65
+ end
66
+
67
+ DEFAULT_MINIMUM_COLOR_DIFF = (500.0 / 255.0)
68
+
69
+ # The minimum colour difference between the background and the foreground,
70
+ # and must be between 0..3. Setting this value will regenerate the palette
71
+ # based on the base colours. The default value for this is 500 / 255.0.
72
+ attr_accessor :minimum_color_diff
73
+ remove_method :minimum_color_diff= ;
74
+ def minimum_color_diff=(cd) #:noco:
75
+ if cd.nil?
76
+ @minimum_color_diff = DEFAULT_MINIMUM_COLOR_DIFF
77
+ elsif cd > 3.0
78
+ @minimum_color_diff = 3.0
79
+ elsif cd < 0.0
80
+ @minimum_color_diff = 0.0
81
+ else
82
+ @minimum_color_diff = cd
83
+ end
84
+ regenerate(@background[0], @foreground[0])
85
+ end
86
+
87
+ # Generate the initial palette.
88
+ def initialize(background, foreground = nil)
89
+ @minimum_brightness_diff = DEFAULT_MINIMUM_BRIGHTNESS_DIFF
90
+ @minimum_color_diff = DEFAULT_MINIMUM_COLOR_DIFF
91
+
92
+ regenerate(background, foreground)
93
+ end
94
+
95
+ # Generate the colour palettes.
96
+ def regenerate(background, foreground = nil)
97
+ foreground ||= background
98
+ background = background.to_rgb
99
+ foreground = foreground.to_rgb
100
+
101
+ @background = {}
102
+ @foreground = {}
103
+
104
+ @background[-5] = background.darken_by(10)
105
+ @background[-4] = background.darken_by(25)
106
+ @background[-3] = background.darken_by(50)
107
+ @background[-2] = background.darken_by(75)
108
+ @background[-1] = background.darken_by(85)
109
+ @background[ 0] = background
110
+ @background[+1] = background.lighten_by(85)
111
+ @background[+2] = background.lighten_by(75)
112
+ @background[+3] = background.lighten_by(50)
113
+ @background[+4] = background.lighten_by(25)
114
+ @background[+5] = background.lighten_by(10)
115
+
116
+ @foreground[-5] = calculate_foreground(@background[-5], foreground)
117
+ @foreground[-4] = calculate_foreground(@background[-4], foreground)
118
+ @foreground[-3] = calculate_foreground(@background[-3], foreground)
119
+ @foreground[-2] = calculate_foreground(@background[-2], foreground)
120
+ @foreground[-1] = calculate_foreground(@background[-1], foreground)
121
+ @foreground[ 0] = calculate_foreground(@background[ 0], foreground)
122
+ @foreground[+1] = calculate_foreground(@background[+1], foreground)
123
+ @foreground[+2] = calculate_foreground(@background[+2], foreground)
124
+ @foreground[+3] = calculate_foreground(@background[+3], foreground)
125
+ @foreground[+4] = calculate_foreground(@background[+4], foreground)
126
+ @foreground[+5] = calculate_foreground(@background[+5], foreground)
127
+ end
128
+
129
+ # Given a background colour and a foreground colour, modifies the
130
+ # foreground colour so that it will have enough contrast to be seen
131
+ # against the background colour.
132
+ #
133
+ # Uses #mininum_brightness_diff and #minimum_color_diff.
134
+ def calculate_foreground(background, foreground)
135
+ nfg = nil
136
+ # Loop through brighter and darker versions of the foreground color. The
137
+ # numbers here represent the amount of foreground color to mix with
138
+ # black and white.
139
+ [100, 75, 50, 25, 0].each do |percent|
140
+ dfg = foreground.darken_by(percent)
141
+ lfg = foreground.lighten_by(percent)
142
+
143
+ dbd = brightness_diff(background, dfg)
144
+ lbd = brightness_diff(background, lfg)
145
+
146
+ if lbd > dbd
147
+ nfg = lfg
148
+ nbd = lbd
149
+ else
150
+ nfg = dfg
151
+ nbd = dbd
152
+ end
153
+
154
+ ncd = color_diff(background, nfg)
155
+
156
+ break if nbd >= @minimum_brightness_diff and ncd >= @minimum_color_diff
157
+ end
158
+ nfg
159
+ end
160
+
161
+ # Returns the absolute difference between the brightness levels of two
162
+ # colours. This will be a decimal value between 0 and 1. W3C accessibility
163
+ # guidelines for colour contrast[http://www.w3.org/TR/AERT#color-contrast]
164
+ # suggest that this value be at least approximately 0.49 (125 / 255.0) for
165
+ # proper contrast.
166
+ def brightness_diff(c1, c2)
167
+ (c1.brightness - c2.brightness).abs
168
+ end
169
+
170
+ # Returns the contrast between to colours, a decimal value between 0 and
171
+ # 3. W3C accessibility guidelines for colour
172
+ # contrast[http://www.w3.org/TR/AERT#color-contrast] suggest that this
173
+ # value be at least approximately 1.96 (500 / 255.0) for proper contrast.
174
+ def color_diff(c1, c2)
175
+ r = (c1.r - c2.r).abs
176
+ g = (c1.g - c2.g).abs
177
+ b = (c1.b - c2.b).abs
178
+ r + g + b
179
+ end
180
+ end
@@ -0,0 +1,16 @@
1
+ #--
2
+ # Color
3
+ # Colour management with Ruby
4
+ # http://rubyforge.org/projects/color
5
+ # Version 1.4.1
6
+ #
7
+ # Licensed under a MIT-style licence. See Licence.txt in the main
8
+ # distribution for full licensing information.
9
+ #
10
+ # Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
11
+ #++
12
+
13
+ require 'color'
14
+
15
+ module Color::Palette
16
+ end
@@ -0,0 +1,43 @@
1
+ #--
2
+ # Color
3
+ # Colour management with Ruby
4
+ # http://rubyforge.org/projects/color
5
+ # Version 1.4.1
6
+ #
7
+ # Licensed under a MIT-style licence. See Licence.txt in the main
8
+ # distribution for full licensing information.
9
+ #
10
+ # Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
11
+ #++
12
+
13
+ # This namespace contains some RGB metallic colours suggested by Jim Freeze.
14
+ module Color::RGB::Metallic
15
+ Aluminum = Color::RGB.new(0x99, 0x99, 0x99)
16
+ CoolCopper = Color::RGB.new(0xd9, 0x87, 0x19)
17
+ Copper = Color::RGB.new(0xb8, 0x73, 0x33)
18
+ Iron = Color::RGB.new(0x4c, 0x4c, 0x4c)
19
+ Lead = Color::RGB.new(0x19, 0x19, 0x19)
20
+ Magnesium = Color::RGB.new(0xb3, 0xb3, 0xb3)
21
+ Mercury = Color::RGB.new(0xe6, 0xe6, 0xe6)
22
+ Nickel = Color::RGB.new(0x80, 0x80, 0x80)
23
+ PolySilicon = Color::RGB.new(0x60, 0x00, 0x00)
24
+ Poly = PolySilicon
25
+ Silver = Color::RGB.new(0xcc, 0xcc, 0xcc)
26
+ Steel = Color::RGB.new(0x66, 0x66, 0x66)
27
+ Tin = Color::RGB.new(0x7f, 0x7f, 0x7f)
28
+ Tungsten = Color::RGB.new(0x33, 0x33, 0x33)
29
+
30
+ Aluminum.freeze
31
+ CoolCopper.freeze
32
+ Copper.freeze
33
+ Iron.freeze
34
+ Lead.freeze
35
+ Magnesium.freeze
36
+ Mercury.freeze
37
+ Nickel.freeze
38
+ PolySilicon.freeze
39
+ Silver.freeze
40
+ Steel.freeze
41
+ Tin.freeze
42
+ Tungsten.freeze
43
+ end
@@ -0,0 +1,355 @@
1
+ #--
2
+ # Color
3
+ # Colour management with Ruby
4
+ # http://rubyforge.org/projects/color
5
+ # Version 1.4.1
6
+ #
7
+ # Licensed under a MIT-style licence. See Licence.txt in the main
8
+ # distribution for full licensing information.
9
+ #
10
+ # Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
11
+ #++
12
+
13
+ class Color::RGB
14
+ AliceBlue = Color::RGB.new(0xf0, 0xf8, 0xff)
15
+ AntiqueWhite = Color::RGB.new(0xfa, 0xeb, 0xd7)
16
+ Aqua = Color::RGB.new(0x00, 0xff, 0xff)
17
+ Aquamarine = Color::RGB.new(0x7f, 0xff, 0xd4)
18
+ Azure = Color::RGB.new(0xf0, 0xff, 0xff)
19
+ Beige = Color::RGB.new(0xf5, 0xf5, 0xdc)
20
+ Bisque = Color::RGB.new(0xff, 0xe4, 0xc4)
21
+ Black = Color::RGB.new(0, 0, 0)
22
+ BlanchedAlmond = Color::RGB.new(0xff, 0xeb, 0xcd)
23
+ Blue = Color::RGB.new(0x00, 0x00, 0xff)
24
+ BlueViolet = Color::RGB.new(0x8a, 0x2b, 0xe2)
25
+ Brown = Color::RGB.new(0xa5, 0x2a, 0x2a)
26
+ BurlyWood = Color::RGB.new(0xde, 0xb8, 0x87)
27
+ Burlywood = BurlyWood
28
+ CadetBlue = Color::RGB.new(0x5f, 0x9e, 0xa0)
29
+ Carnation = Color::RGB.new(0xff, 0x5e, 0xd0)
30
+ Cayenne = Color::RGB.new(0x8d, 0x00, 0x00)
31
+ Chartreuse = Color::RGB.new(0x7f, 0xff, 0x00)
32
+ Chocolate = Color::RGB.new(0xd2, 0x69, 0x1e)
33
+ Coral = Color::RGB.new(0xff, 0x7f, 0x50)
34
+ CornflowerBlue = Color::RGB.new(0x64, 0x95, 0xed)
35
+ Cornsilk = Color::RGB.new(0xff, 0xf8, 0xdc)
36
+ Crimson = Color::RGB.new(0xdc, 0x14, 0x3c)
37
+ Cyan = Color::RGB.new(0x00, 0xff, 0xff)
38
+ DarkBlue = Color::RGB.new(0x00, 0x00, 0x8b)
39
+ DarkCyan = Color::RGB.new(0x00, 0x8b, 0x8b)
40
+ DarkGoldenRod = Color::RGB.new(0xb8, 0x86, 0x0b)
41
+ DarkGoldenrod = DarkGoldenRod
42
+ DarkGray = Color::RGB.new(0xa9, 0xa9, 0xa9)
43
+ DarkGreen = Color::RGB.new(0x00, 0x64, 0x00)
44
+ DarkGrey = DarkGray
45
+ DarkKhaki = Color::RGB.new(0xbd, 0xb7, 0x6b)
46
+ DarkMagenta = Color::RGB.new(0x8b, 0x00, 0x8b)
47
+ DarkOliveGreen = Color::RGB.new(0x55, 0x6b, 0x2f)
48
+ DarkOrange = Color::RGB.new(0xff, 0x8c, 0x00)
49
+ DarkOrchid = Color::RGB.new(0x99, 0x32, 0xcc)
50
+ DarkRed = Color::RGB.new(0x8b, 0x00, 0x00)
51
+ DarkSalmon = Color::RGB.new(0xe9, 0x96, 0x7a)
52
+ DarkSeaGreen = Color::RGB.new(0x8f, 0xbc, 0x8f)
53
+ DarkSlateBlue = Color::RGB.new(0x48, 0x3d, 0x8b)
54
+ DarkSlateGray = Color::RGB.new(0x2f, 0x4f, 0x4f)
55
+ DarkSlateGrey = DarkSlateGray
56
+ DarkTurquoise = Color::RGB.new(0x00, 0xce, 0xd1)
57
+ DarkViolet = Color::RGB.new(0x94, 0x00, 0xd3)
58
+ DarkoliveGreen = DarkOliveGreen
59
+ Darkorange = Color::RGB.new(0xff, 0x8c, 0x00)
60
+ Darksalmon = DarkSalmon
61
+ DeepPink = Color::RGB.new(0xff, 0x14, 0x93)
62
+ DeepSkyBlue = Color::RGB.new(0x00, 0xbf, 0xbf)
63
+ DimGray = Color::RGB.new(0x69, 0x69, 0x69)
64
+ DimGrey = DimGray
65
+ DodgerBlue = Color::RGB.new(0x1e, 0x90, 0xff)
66
+ Feldspar = Color::RGB.new(0xd1, 0x92, 0x75)
67
+ FireBrick = Color::RGB.new(0xb2, 0x22, 0x22)
68
+ Firebrick = FireBrick
69
+ FloralWhite = Color::RGB.new(0xff, 0xfa, 0xf0)
70
+ ForestGreen = Color::RGB.new(0x22, 0x8b, 0x22)
71
+ Fuchsia = Color::RGB.new(0xff, 0x00, 0xff)
72
+ Gainsboro = Color::RGB.new(0xdc, 0xdc, 0xdc)
73
+ GhostWhite = Color::RGB.new(0xf8, 0xf8, 0xff)
74
+ Gold = Color::RGB.new(0xff, 0xd7, 0x00)
75
+ GoldenRod = Color::RGB.new(0xda, 0xa5, 0x20)
76
+ Goldenrod = GoldenRod
77
+ Gray = Color::RGB.new(0x80, 0x80, 0x80)
78
+ Gray10 = Color::RGB.from_percentage(10, 10, 10)
79
+ Gray20 = Color::RGB.from_percentage(20, 20, 20)
80
+ Gray30 = Color::RGB.from_percentage(30, 30, 30)
81
+ Gray40 = Color::RGB.from_percentage(40, 40, 40)
82
+ Gray50 = Color::RGB.from_percentage(50, 50, 50)
83
+ Gray60 = Color::RGB.from_percentage(60, 60, 60)
84
+ Gray70 = Color::RGB.from_percentage(70, 70, 70)
85
+ Gray80 = Color::RGB.from_percentage(80, 80, 80)
86
+ Gray90 = Color::RGB.from_percentage(90, 90, 90)
87
+ Green = Color::RGB.new(0x00, 0x80, 0x00)
88
+ GreenYellow = Color::RGB.new(0xad, 0xff, 0x2f)
89
+ Grey = Gray
90
+ Grey10 = Gray10
91
+ Grey20 = Gray20
92
+ Grey30 = Gray30
93
+ Grey40 = Gray40
94
+ Grey50 = Gray50
95
+ Grey60 = Gray60
96
+ Grey70 = Gray70
97
+ Grey80 = Gray80
98
+ Grey90 = Gray90
99
+ HoneyDew = Color::RGB.new(0xf0, 0xff, 0xf0)
100
+ Honeydew = HoneyDew
101
+ HotPink = Color::RGB.new(0xff, 0x69, 0xb4)
102
+ IndianRed = Color::RGB.new(0xcd, 0x5c, 0x5c)
103
+ Indigo = Color::RGB.new(0x4b, 0x00, 0x82)
104
+ Ivory = Color::RGB.new(0xff, 0xff, 0xf0)
105
+ Khaki = Color::RGB.new(0xf0, 0xe6, 0x8c)
106
+ Lavender = Color::RGB.new(0xe6, 0xe6, 0xfa)
107
+ LavenderBlush = Color::RGB.new(0xff, 0xf0, 0xf5)
108
+ LawnGreen = Color::RGB.new(0x7c, 0xfc, 0x00)
109
+ LemonChiffon = Color::RGB.new(0xff, 0xfa, 0xcd)
110
+ LightBlue = Color::RGB.new(0xad, 0xd8, 0xe6)
111
+ LightCoral = Color::RGB.new(0xf0, 0x80, 0x80)
112
+ LightCyan = Color::RGB.new(0xe0, 0xff, 0xff)
113
+ LightGoldenRodYellow = Color::RGB.new(0xfa, 0xfa, 0xd2)
114
+ LightGoldenrodYellow = LightGoldenRodYellow
115
+ LightGray = Color::RGB.new(0xd3, 0xd3, 0xd3)
116
+ LightGreen = Color::RGB.new(0x90, 0xee, 0x90)
117
+ LightGrey = LightGray
118
+ LightPink = Color::RGB.new(0xff, 0xb6, 0xc1)
119
+ LightSalmon = Color::RGB.new(0xff, 0xa0, 0x7a)
120
+ LightSeaGreen = Color::RGB.new(0x20, 0xb2, 0xaa)
121
+ LightSkyBlue = Color::RGB.new(0x87, 0xce, 0xfa)
122
+ LightSlateBlue = Color::RGB.new(0x84, 0x70, 0xff)
123
+ LightSlateGray = Color::RGB.new(0x77, 0x88, 0x99)
124
+ LightSlateGrey = LightSlateGray
125
+ LightSteelBlue = Color::RGB.new(0xb0, 0xc4, 0xde)
126
+ LightYellow = Color::RGB.new(0xff, 0xff, 0xe0)
127
+ Lightsalmon = LightSalmon
128
+ LightsteelBlue = LightSteelBlue
129
+ Lime = Color::RGB.new(0x00, 0xff, 0x00)
130
+ LimeGreen = Color::RGB.new(0x32, 0xcd, 0x32)
131
+ Linen = Color::RGB.new(0xfa, 0xf0, 0xe6)
132
+ Magenta = Color::RGB.new(0xff, 0x00, 0xff)
133
+ Maroon = Color::RGB.new(0x80, 0x00, 0x00)
134
+ MediumAquaMarine = Color::RGB.new(0x66, 0xcd, 0xaa)
135
+ MediumAquamarine = MediumAquaMarine
136
+ MediumBlue = Color::RGB.new(0x00, 0x00, 0xcd)
137
+ MediumOrchid = Color::RGB.new(0xba, 0x55, 0xd3)
138
+ MediumPurple = Color::RGB.new(0x93, 0x70, 0xdb)
139
+ MediumSeaGreen = Color::RGB.new(0x3c, 0xb3, 0x71)
140
+ MediumSlateBlue = Color::RGB.new(0x7b, 0x68, 0xee)
141
+ MediumSpringGreen = Color::RGB.new(0x00, 0xfa, 0x9a)
142
+ MediumTurquoise = Color::RGB.new(0x48, 0xd1, 0xcc)
143
+ MediumVioletRed = Color::RGB.new(0xc7, 0x15, 0x85)
144
+ MidnightBlue = Color::RGB.new(0x19, 0x19, 0x70)
145
+ MintCream = Color::RGB.new(0xf5, 0xff, 0xfa)
146
+ MistyRose = Color::RGB.new(0xff, 0xe4, 0xe1)
147
+ Moccasin = Color::RGB.new(0xff, 0xe4, 0xb5)
148
+ NavajoWhite = Color::RGB.new(0xff, 0xde, 0xad)
149
+ Navy = Color::RGB.new(0x00, 0x00, 0x80)
150
+ OldLace = Color::RGB.new(0xfd, 0xf5, 0xe6)
151
+ Olive = Color::RGB.new(0x80, 0x80, 0x00)
152
+ OliveDrab = Color::RGB.new(0x6b, 0x8e, 0x23)
153
+ Olivedrab = OliveDrab
154
+ Orange = Color::RGB.new(0xff, 0xa5, 0x00)
155
+ OrangeRed = Color::RGB.new(0xff, 0x45, 0x00)
156
+ Orchid = Color::RGB.new(0xda, 0x70, 0xd6)
157
+ PaleGoldenRod = Color::RGB.new(0xee, 0xe8, 0xaa)
158
+ PaleGoldenrod = PaleGoldenRod
159
+ PaleGreen = Color::RGB.new(0x98, 0xfb, 0x98)
160
+ PaleTurquoise = Color::RGB.new(0xaf, 0xee, 0xee)
161
+ PaleVioletRed = Color::RGB.new(0xdb, 0x70, 0x93)
162
+ PapayaWhip = Color::RGB.new(0xff, 0xef, 0xd5)
163
+ PeachPuff = Color::RGB.new(0xff, 0xda, 0xb9)
164
+ Peachpuff = PeachPuff
165
+ Peru = Color::RGB.new(0xcd, 0x85, 0x3f)
166
+ Pink = Color::RGB.new(0xff, 0xc0, 0xcb)
167
+ Plum = Color::RGB.new(0xdd, 0xa0, 0xdd)
168
+ PowderBlue = Color::RGB.new(0xb0, 0xe0, 0xe6)
169
+ Purple = Color::RGB.new(0x80, 0x00, 0x80)
170
+ Red = Color::RGB.new(0xff, 0x00, 0x00)
171
+ RosyBrown = Color::RGB.new(0xbc, 0x8f, 0x8f)
172
+ RoyalBlue = Color::RGB.new(0x41, 0x69, 0xe1)
173
+ SaddleBrown = Color::RGB.new(0x8b, 0x45, 0x13)
174
+ Salmon = Color::RGB.new(0xfa, 0x80, 0x72)
175
+ SandyBrown = Color::RGB.new(0xf4, 0xa4, 0x60)
176
+ SeaGreen = Color::RGB.new(0x2e, 0x8b, 0x57)
177
+ SeaShell = Color::RGB.new(0xff, 0xf5, 0xee)
178
+ Seashell = SeaShell
179
+ Sienna = Color::RGB.new(0xa0, 0x52, 0x2d)
180
+ Silver = Color::RGB.new(0xc0, 0xc0, 0xc0)
181
+ SkyBlue = Color::RGB.new(0x87, 0xce, 0xeb)
182
+ SlateBlue = Color::RGB.new(0x6a, 0x5a, 0xcd)
183
+ SlateGray = Color::RGB.new(0x70, 0x80, 0x90)
184
+ SlateGrey = SlateGray
185
+ Snow = Color::RGB.new(0xff, 0xfa, 0xfa)
186
+ SpringGreen = Color::RGB.new(0x00, 0xff, 0x7f)
187
+ SteelBlue = Color::RGB.new(0x46, 0x82, 0xb4)
188
+ Tan = Color::RGB.new(0xd2, 0xb4, 0x8c)
189
+ Teal = Color::RGB.new(0x00, 0x80, 0x80)
190
+ Thistle = Color::RGB.new(0xd8, 0xbf, 0xd8)
191
+ Tomato = Color::RGB.new(0xff, 0x63, 0x47)
192
+ Turquoise = Color::RGB.new(0x40, 0xe0, 0xd0)
193
+ Violet = Color::RGB.new(0xee, 0x82, 0xee)
194
+ VioletRed = Color::RGB.new(0xd0, 0x20, 0x90)
195
+ Wheat = Color::RGB.new(0xf5, 0xde, 0xb3)
196
+ White = Color::RGB.new(0xff, 0xff, 0xff)
197
+ WhiteSmoke = Color::RGB.new(0xf5, 0xf5, 0xf5)
198
+ Yellow = Color::RGB.new(0xff, 0xff, 0x00)
199
+ YellowGreen = Color::RGB.new(0x9a, 0xcd, 0x32)
200
+
201
+ AliceBlue.freeze
202
+ AntiqueWhite.freeze
203
+ Aqua.freeze
204
+ Aquamarine.freeze
205
+ Azure.freeze
206
+ Beige.freeze
207
+ Bisque.freeze
208
+ Black.freeze
209
+ BlanchedAlmond.freeze
210
+ Blue.freeze
211
+ BlueViolet.freeze
212
+ Brown.freeze
213
+ Burlywood.freeze
214
+ CadetBlue.freeze
215
+ Cayenne.freeze
216
+ Carnation.freeze
217
+ Chartreuse.freeze
218
+ Chocolate.freeze
219
+ Coral.freeze
220
+ CornflowerBlue.freeze
221
+ Cornsilk.freeze
222
+ Crimson.freeze
223
+ Cyan.freeze
224
+ DarkBlue.freeze
225
+ DarkCyan.freeze
226
+ DarkGoldenrod.freeze
227
+ DarkGray.freeze
228
+ DarkGreen.freeze
229
+ DarkKhaki.freeze
230
+ DarkMagenta.freeze
231
+ DarkoliveGreen.freeze
232
+ Darkorange.freeze
233
+ DarkOrchid.freeze
234
+ DarkRed.freeze
235
+ Darksalmon.freeze
236
+ DarkSeaGreen.freeze
237
+ DarkSlateBlue.freeze
238
+ DarkSlateGray.freeze
239
+ DarkTurquoise.freeze
240
+ DarkViolet.freeze
241
+ DeepPink.freeze
242
+ DeepSkyBlue.freeze
243
+ DimGray.freeze
244
+ DodgerBlue.freeze
245
+ Feldspar.freeze
246
+ Firebrick.freeze
247
+ FloralWhite.freeze
248
+ ForestGreen.freeze
249
+ Fuchsia.freeze
250
+ Gainsboro.freeze
251
+ GhostWhite.freeze
252
+ Gold.freeze
253
+ Goldenrod.freeze
254
+ Gray.freeze
255
+ Green.freeze
256
+ GreenYellow.freeze
257
+ Honeydew.freeze
258
+ HotPink.freeze
259
+ IndianRed.freeze
260
+ Indigo.freeze
261
+ Ivory.freeze
262
+ Khaki.freeze
263
+ Lavender.freeze
264
+ LavenderBlush.freeze
265
+ LawnGreen.freeze
266
+ LemonChiffon.freeze
267
+ LightBlue.freeze
268
+ LightCoral.freeze
269
+ LightCyan.freeze
270
+ LightGoldenrodYellow.freeze
271
+ LightGray.freeze
272
+ LightGreen.freeze
273
+ LightPink.freeze
274
+ Lightsalmon.freeze
275
+ LightSeaGreen.freeze
276
+ LightSkyBlue.freeze
277
+ LightSlateBlue.freeze
278
+ LightSlateGray.freeze
279
+ LightsteelBlue.freeze
280
+ LightYellow.freeze
281
+ Lime.freeze
282
+ LimeGreen.freeze
283
+ Linen.freeze
284
+ Magenta.freeze
285
+ Maroon.freeze
286
+ MediumAquamarine.freeze
287
+ MediumBlue.freeze
288
+ MediumOrchid.freeze
289
+ MediumPurple.freeze
290
+ MediumSeaGreen.freeze
291
+ MediumSlateBlue.freeze
292
+ MediumSpringGreen.freeze
293
+ MediumTurquoise.freeze
294
+ MediumVioletRed.freeze
295
+ MidnightBlue.freeze
296
+ MintCream.freeze
297
+ MistyRose.freeze
298
+ Moccasin.freeze
299
+ NavajoWhite.freeze
300
+ Navy.freeze
301
+ OldLace.freeze
302
+ Olive.freeze
303
+ Olivedrab.freeze
304
+ Orange.freeze
305
+ OrangeRed.freeze
306
+ Orchid.freeze
307
+ PaleGoldenrod.freeze
308
+ PaleGreen.freeze
309
+ PaleTurquoise.freeze
310
+ PaleVioletRed.freeze
311
+ PapayaWhip.freeze
312
+ Peachpuff.freeze
313
+ Peru.freeze
314
+ Pink.freeze
315
+ Plum.freeze
316
+ PowderBlue.freeze
317
+ Purple.freeze
318
+ Red.freeze
319
+ RosyBrown.freeze
320
+ RoyalBlue.freeze
321
+ SaddleBrown.freeze
322
+ Salmon.freeze
323
+ SandyBrown.freeze
324
+ SeaGreen.freeze
325
+ Seashell.freeze
326
+ Sienna.freeze
327
+ Silver.freeze
328
+ SkyBlue.freeze
329
+ SlateBlue.freeze
330
+ SlateGray.freeze
331
+ Snow.freeze
332
+ SpringGreen.freeze
333
+ SteelBlue.freeze
334
+ Tan.freeze
335
+ Teal.freeze
336
+ Thistle.freeze
337
+ Tomato.freeze
338
+ Turquoise.freeze
339
+ Violet.freeze
340
+ VioletRed.freeze
341
+ Wheat.freeze
342
+ White.freeze
343
+ WhiteSmoke.freeze
344
+ Yellow.freeze
345
+ YellowGreen.freeze
346
+ Gray10.freeze
347
+ Gray20.freeze
348
+ Gray30.freeze
349
+ Gray40.freeze
350
+ Gray50.freeze
351
+ Gray60.freeze
352
+ Gray70.freeze
353
+ Gray80.freeze
354
+ Gray90.freeze
355
+ end