color 1.7.1 → 2.0.0.pre.0
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.
- checksums.yaml +5 -13
- data/CHANGELOG.md +298 -0
- data/CODE_OF_CONDUCT.md +128 -0
- data/CONTRIBUTING.md +70 -0
- data/CONTRIBUTORS.md +10 -0
- data/LICENCE.md +27 -0
- data/Manifest.txt +11 -21
- data/README.md +54 -0
- data/Rakefile +74 -53
- data/SECURITY.md +34 -0
- data/lib/color/cielab.rb +348 -0
- data/lib/color/cmyk.rb +279 -213
- data/lib/color/grayscale.rb +128 -160
- data/lib/color/hsl.rb +205 -173
- data/lib/color/rgb/colors.rb +177 -163
- data/lib/color/rgb.rb +534 -537
- data/lib/color/version.rb +5 -0
- data/lib/color/xyz.rb +214 -0
- data/lib/color/yiq.rb +91 -46
- data/lib/color.rb +208 -141
- data/test/fixtures/cielab.json +444 -0
- data/test/minitest_helper.rb +20 -4
- data/test/test_cmyk.rb +49 -71
- data/test/test_color.rb +58 -106
- data/test/test_grayscale.rb +35 -56
- data/test/test_hsl.rb +72 -76
- data/test/test_rgb.rb +195 -267
- data/test/test_yiq.rb +12 -30
- metadata +165 -150
- checksums.yaml.gz.sig +0 -0
- data/.autotest +0 -5
- data/.gemtest +0 -0
- data/.hoerc +0 -2
- data/.minitest.rb +0 -2
- data/.travis.yml +0 -35
- data/Contributing.rdoc +0 -60
- data/Gemfile +0 -9
- data/History.rdoc +0 -172
- data/Licence.rdoc +0 -27
- data/README.rdoc +0 -50
- data/lib/color/css.rb +0 -7
- data/lib/color/palette/adobecolor.rb +0 -260
- data/lib/color/palette/gimp.rb +0 -104
- data/lib/color/palette/monocontrast.rb +0 -164
- data/lib/color/palette.rb +0 -4
- data/lib/color/rgb/contrast.rb +0 -57
- data/lib/color/rgb/metallic.rb +0 -28
- data/test/test_adobecolor.rb +0 -405
- data/test/test_css.rb +0 -19
- data/test/test_gimp.rb +0 -87
- data/test/test_monocontrast.rb +0 -130
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
data/lib/color/rgb/colors.rb
CHANGED
@@ -1,167 +1,181 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "color"
|
4
|
+
|
1
5
|
class Color::RGB
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
6
|
+
__create_named_color(self, from_values(0xf0, 0xf8, 0xff), :AliceBlue)
|
7
|
+
__create_named_color(self, from_values(0xfa, 0xeb, 0xd7), :AntiqueWhite)
|
8
|
+
__create_named_color(self, from_values(0x00, 0xff, 0xff), :Aqua)
|
9
|
+
__create_named_color(self, from_values(0x7f, 0xff, 0xd4), :Aquamarine)
|
10
|
+
__create_named_color(self, from_values(0xf0, 0xff, 0xff), :Azure)
|
11
|
+
__create_named_color(self, from_values(0xf5, 0xf5, 0xdc), :Beige)
|
12
|
+
__create_named_color(self, from_values(0xff, 0xe4, 0xc4), :Bisque)
|
13
|
+
__create_named_color(self, from_values(0x00, 0x00, 0x00), :Black)
|
14
|
+
__create_named_color(self, from_values(0xff, 0xeb, 0xcd), :BlanchedAlmond)
|
15
|
+
__create_named_color(self, from_values(0x00, 0x00, 0xff), :Blue)
|
16
|
+
__create_named_color(self, from_values(0x8a, 0x2b, 0xe2), :BlueViolet)
|
17
|
+
__create_named_color(self, from_values(0xa5, 0x2a, 0x2a), :Brown)
|
18
|
+
__create_named_color(self, from_values(0xde, 0xb8, 0x87), :BurlyWood, :Burlywood)
|
19
|
+
__create_named_color(self, from_values(0x5f, 0x9e, 0xa0), :CadetBlue)
|
20
|
+
__create_named_color(self, from_values(0xff, 0x5e, 0xd0), :Carnation)
|
21
|
+
__create_named_color(self, from_values(0x8d, 0x00, 0x00), :Cayenne)
|
22
|
+
__create_named_color(self, from_values(0x7f, 0xff, 0x00), :Chartreuse)
|
23
|
+
__create_named_color(self, from_values(0xd2, 0x69, 0x1e), :Chocolate)
|
24
|
+
__create_named_color(self, from_values(0xff, 0x7f, 0x50), :Coral)
|
25
|
+
__create_named_color(self, from_values(0x64, 0x95, 0xed), :CornflowerBlue)
|
26
|
+
__create_named_color(self, from_values(0xff, 0xf8, 0xdc), :Cornsilk)
|
27
|
+
__create_named_color(self, from_values(0xdc, 0x14, 0x3c), :Crimson)
|
28
|
+
__create_named_color(self, from_values(0x00, 0xff, 0xff), :Cyan)
|
29
|
+
__create_named_color(self, from_values(0x00, 0x00, 0x8b), :DarkBlue)
|
30
|
+
__create_named_color(self, from_values(0x00, 0x8b, 0x8b), :DarkCyan)
|
31
|
+
__create_named_color(self, from_values(0xb8, 0x86, 0x0b), :DarkGoldenRod, :DarkGoldenrod)
|
32
|
+
__create_named_color(self, from_values(0xa9, 0xa9, 0xa9), :DarkGray, :DarkGrey)
|
33
|
+
__create_named_color(self, from_values(0x00, 0x64, 0x00), :DarkGreen)
|
34
|
+
__create_named_color(self, from_values(0xbd, 0xb7, 0x6b), :DarkKhaki)
|
35
|
+
__create_named_color(self, from_values(0x8b, 0x00, 0x8b), :DarkMagenta)
|
36
|
+
__create_named_color(self, from_values(0x55, 0x6b, 0x2f), :DarkOliveGreen, :DarkoliveGreen)
|
37
|
+
__create_named_color(self, from_values(0xff, 0x8c, 0x00), :DarkOrange, :Darkorange)
|
38
|
+
__create_named_color(self, from_values(0x99, 0x32, 0xcc), :DarkOrchid)
|
39
|
+
__create_named_color(self, from_values(0x8b, 0x00, 0x00), :DarkRed)
|
40
|
+
__create_named_color(self, from_values(0xe9, 0x96, 0x7a), :DarkSalmon, :Darksalmon)
|
41
|
+
__create_named_color(self, from_values(0x8f, 0xbc, 0x8f), :DarkSeaGreen)
|
42
|
+
__create_named_color(self, from_values(0x48, 0x3d, 0x8b), :DarkSlateBlue)
|
43
|
+
__create_named_color(self, from_values(0x2f, 0x4f, 0x4f), :DarkSlateGray, :DarkSlateGrey)
|
44
|
+
__create_named_color(self, from_values(0x00, 0xce, 0xd1), :DarkTurquoise)
|
45
|
+
__create_named_color(self, from_values(0x94, 0x00, 0xd3), :DarkViolet)
|
46
|
+
__create_named_color(self, from_values(0xff, 0x14, 0x93), :DeepPink)
|
47
|
+
__create_named_color(self, from_values(0x00, 0xbf, 0xff), :DeepSkyBlue)
|
48
|
+
__create_named_color(self, from_values(0x69, 0x69, 0x69), :DimGray, :DimGrey)
|
49
|
+
__create_named_color(self, from_values(0x1e, 0x90, 0xff), :DodgerBlue)
|
50
|
+
__create_named_color(self, from_values(0xd1, 0x92, 0x75), :Feldspar)
|
51
|
+
__create_named_color(self, from_values(0xb2, 0x22, 0x22), :FireBrick, :Firebrick)
|
52
|
+
__create_named_color(self, from_values(0xff, 0xfa, 0xf0), :FloralWhite)
|
53
|
+
__create_named_color(self, from_values(0x22, 0x8b, 0x22), :ForestGreen)
|
54
|
+
__create_named_color(self, from_values(0xff, 0x00, 0xff), :Fuchsia)
|
55
|
+
__create_named_color(self, from_values(0xdc, 0xdc, 0xdc), :Gainsboro)
|
56
|
+
__create_named_color(self, from_values(0xf8, 0xf8, 0xff), :GhostWhite)
|
57
|
+
__create_named_color(self, from_values(0xff, 0xd7, 0x00), :Gold)
|
58
|
+
__create_named_color(self, from_values(0xda, 0xa5, 0x20), :GoldenRod, :Goldenrod)
|
59
|
+
__create_named_color(self, from_values(0x80, 0x80, 0x80), :Gray, :Grey)
|
60
|
+
|
61
|
+
__create_named_color(self, from_fraction(0.05, 0.05, 0.05), :Gray05, :Gray5, :Grey05, :Grey5)
|
62
|
+
|
63
|
+
(10..95).step(5) do
|
64
|
+
v = _1 / 100.0
|
65
|
+
__create_named_color(self, from_fraction(v, v, v), :"Gray#{_1}", :"Grey#{_1}")
|
7
66
|
end
|
8
67
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
named [0x00, 0x00, 0xcd], :MediumBlue
|
107
|
-
named [0xba, 0x55, 0xd3], :MediumOrchid
|
108
|
-
named [0x93, 0x70, 0xdb], :MediumPurple
|
109
|
-
named [0x3c, 0xb3, 0x71], :MediumSeaGreen
|
110
|
-
named [0x7b, 0x68, 0xee], :MediumSlateBlue
|
111
|
-
named [0x00, 0xfa, 0x9a], :MediumSpringGreen
|
112
|
-
named [0x48, 0xd1, 0xcc], :MediumTurquoise
|
113
|
-
named [0xc7, 0x15, 0x85], :MediumVioletRed
|
114
|
-
named [0x19, 0x19, 0x70], :MidnightBlue
|
115
|
-
named [0xf5, 0xff, 0xfa], :MintCream
|
116
|
-
named [0xff, 0xe4, 0xe1], :MistyRose
|
117
|
-
named [0xff, 0xe4, 0xb5], :Moccasin
|
118
|
-
named [0xff, 0xde, 0xad], :NavajoWhite
|
119
|
-
named [0x00, 0x00, 0x80], :Navy
|
120
|
-
named [0xfd, 0xf5, 0xe6], :OldLace
|
121
|
-
named [0x80, 0x80, 0x00], :Olive
|
122
|
-
named [0x6b, 0x8e, 0x23], :OliveDrab, :Olivedrab
|
123
|
-
named [0xff, 0xa5, 0x00], :Orange
|
124
|
-
named [0xff, 0x45, 0x00], :OrangeRed
|
125
|
-
named [0xda, 0x70, 0xd6], :Orchid
|
126
|
-
named [0xee, 0xe8, 0xaa], :PaleGoldenRod, :PaleGoldenrod
|
127
|
-
named [0x98, 0xfb, 0x98], :PaleGreen
|
128
|
-
named [0xaf, 0xee, 0xee], :PaleTurquoise
|
129
|
-
named [0xdb, 0x70, 0x93], :PaleVioletRed
|
130
|
-
named [0xff, 0xef, 0xd5], :PapayaWhip
|
131
|
-
named [0xff, 0xda, 0xb9], :PeachPuff, :Peachpuff
|
132
|
-
named [0xcd, 0x85, 0x3f], :Peru
|
133
|
-
named [0xff, 0xc0, 0xcb], :Pink
|
134
|
-
named [0xdd, 0xa0, 0xdd], :Plum
|
135
|
-
named [0xb0, 0xe0, 0xe6], :PowderBlue
|
136
|
-
named [0x80, 0x00, 0x80], :Purple
|
137
|
-
named [0xff, 0x00, 0x00], :Red
|
138
|
-
named [0xbc, 0x8f, 0x8f], :RosyBrown
|
139
|
-
named [0x41, 0x69, 0xe1], :RoyalBlue
|
140
|
-
named [0x8b, 0x45, 0x13], :SaddleBrown
|
141
|
-
named [0xfa, 0x80, 0x72], :Salmon
|
142
|
-
named [0xf4, 0xa4, 0x60], :SandyBrown
|
143
|
-
named [0x2e, 0x8b, 0x57], :SeaGreen
|
144
|
-
named [0xff, 0xf5, 0xee], :SeaShell, :Seashell
|
145
|
-
named [0xa0, 0x52, 0x2d], :Sienna
|
146
|
-
named [0xc0, 0xc0, 0xc0], :Silver
|
147
|
-
named [0x87, 0xce, 0xeb], :SkyBlue
|
148
|
-
named [0x6a, 0x5a, 0xcd], :SlateBlue
|
149
|
-
named [0x70, 0x80, 0x90], :SlateGray, :SlateGrey
|
150
|
-
named [0xff, 0xfa, 0xfa], :Snow
|
151
|
-
named [0x00, 0xff, 0x7f], :SpringGreen
|
152
|
-
named [0x46, 0x82, 0xb4], :SteelBlue
|
153
|
-
named [0xd2, 0xb4, 0x8c], :Tan
|
154
|
-
named [0x00, 0x80, 0x80], :Teal
|
155
|
-
named [0xd8, 0xbf, 0xd8], :Thistle
|
156
|
-
named [0xff, 0x63, 0x47], :Tomato
|
157
|
-
named [0x40, 0xe0, 0xd0], :Turquoise
|
158
|
-
named [0xee, 0x82, 0xee], :Violet
|
159
|
-
named [0xd0, 0x20, 0x90], :VioletRed
|
160
|
-
named [0xf5, 0xde, 0xb3], :Wheat
|
161
|
-
named [0xff, 0xff, 0xff], :White
|
162
|
-
named [0xf5, 0xf5, 0xf5], :WhiteSmoke
|
163
|
-
named [0xff, 0xff, 0x00], :Yellow
|
164
|
-
named [0x9a, 0xcd, 0x32], :YellowGreen
|
165
|
-
end
|
68
|
+
__create_named_color(self, from_values(0x00, 0x80, 0x00), :Green)
|
69
|
+
__create_named_color(self, from_values(0xad, 0xff, 0x2f), :GreenYellow)
|
70
|
+
__create_named_color(self, from_values(0xf0, 0xff, 0xf0), :HoneyDew, :Honeydew)
|
71
|
+
__create_named_color(self, from_values(0xff, 0x69, 0xb4), :HotPink)
|
72
|
+
__create_named_color(self, from_values(0xcd, 0x5c, 0x5c), :IndianRed)
|
73
|
+
__create_named_color(self, from_values(0x4b, 0x00, 0x82), :Indigo)
|
74
|
+
__create_named_color(self, from_values(0xff, 0xff, 0xf0), :Ivory)
|
75
|
+
__create_named_color(self, from_values(0xf0, 0xe6, 0x8c), :Khaki)
|
76
|
+
__create_named_color(self, from_values(0xe6, 0xe6, 0xfa), :Lavender)
|
77
|
+
__create_named_color(self, from_values(0xff, 0xf0, 0xf5), :LavenderBlush)
|
78
|
+
__create_named_color(self, from_values(0x7c, 0xfc, 0x00), :LawnGreen)
|
79
|
+
__create_named_color(self, from_values(0xff, 0xfa, 0xcd), :LemonChiffon)
|
80
|
+
__create_named_color(self, from_values(0xad, 0xd8, 0xe6), :LightBlue)
|
81
|
+
__create_named_color(self, from_values(0xf0, 0x80, 0x80), :LightCoral)
|
82
|
+
__create_named_color(self, from_values(0xe0, 0xff, 0xff), :LightCyan)
|
83
|
+
__create_named_color(self, from_values(0xfa, 0xfa, 0xd2), :LightGoldenRodYellow, :LightGoldenrodYellow)
|
84
|
+
__create_named_color(self, from_values(0xd3, 0xd3, 0xd3), :LightGray, :LightGrey)
|
85
|
+
__create_named_color(self, from_values(0x90, 0xee, 0x90), :LightGreen)
|
86
|
+
__create_named_color(self, from_values(0xff, 0xb6, 0xc1), :LightPink)
|
87
|
+
__create_named_color(self, from_values(0xff, 0xa0, 0x7a), :LightSalmon, :Lightsalmon)
|
88
|
+
__create_named_color(self, from_values(0x20, 0xb2, 0xaa), :LightSeaGreen)
|
89
|
+
__create_named_color(self, from_values(0x87, 0xce, 0xfa), :LightSkyBlue)
|
90
|
+
__create_named_color(self, from_values(0x84, 0x70, 0xff), :LightSlateBlue)
|
91
|
+
__create_named_color(self, from_values(0x77, 0x88, 0x99), :LightSlateGray, :LightSlateGrey)
|
92
|
+
__create_named_color(self, from_values(0xb0, 0xc4, 0xde), :LightSteelBlue, :LightsteelBlue)
|
93
|
+
__create_named_color(self, from_values(0xff, 0xff, 0xe0), :LightYellow)
|
94
|
+
__create_named_color(self, from_values(0x00, 0xff, 0x00), :Lime)
|
95
|
+
__create_named_color(self, from_values(0x32, 0xcd, 0x32), :LimeGreen)
|
96
|
+
__create_named_color(self, from_values(0xfa, 0xf0, 0xe6), :Linen)
|
97
|
+
__create_named_color(self, from_values(0xff, 0x00, 0xff), :Magenta)
|
98
|
+
__create_named_color(self, from_values(0x80, 0x00, 0x00), :Maroon)
|
99
|
+
__create_named_color(self, from_values(0x66, 0xcd, 0xaa), :MediumAquaMarine, :MediumAquamarine)
|
100
|
+
__create_named_color(self, from_values(0x00, 0x00, 0xcd), :MediumBlue)
|
101
|
+
__create_named_color(self, from_values(0xba, 0x55, 0xd3), :MediumOrchid)
|
102
|
+
__create_named_color(self, from_values(0x93, 0x70, 0xdb), :MediumPurple)
|
103
|
+
__create_named_color(self, from_values(0x3c, 0xb3, 0x71), :MediumSeaGreen)
|
104
|
+
__create_named_color(self, from_values(0x7b, 0x68, 0xee), :MediumSlateBlue)
|
105
|
+
__create_named_color(self, from_values(0x00, 0xfa, 0x9a), :MediumSpringGreen)
|
106
|
+
__create_named_color(self, from_values(0x48, 0xd1, 0xcc), :MediumTurquoise)
|
107
|
+
__create_named_color(self, from_values(0xc7, 0x15, 0x85), :MediumVioletRed)
|
108
|
+
__create_named_color(self, from_values(0x19, 0x19, 0x70), :MidnightBlue)
|
109
|
+
__create_named_color(self, from_values(0xf5, 0xff, 0xfa), :MintCream)
|
110
|
+
__create_named_color(self, from_values(0xff, 0xe4, 0xe1), :MistyRose)
|
111
|
+
__create_named_color(self, from_values(0xff, 0xe4, 0xb5), :Moccasin)
|
112
|
+
__create_named_color(self, from_values(0xff, 0xde, 0xad), :NavajoWhite)
|
113
|
+
__create_named_color(self, from_values(0x00, 0x00, 0x80), :Navy)
|
114
|
+
__create_named_color(self, from_values(0xfd, 0xf5, 0xe6), :OldLace)
|
115
|
+
__create_named_color(self, from_values(0x80, 0x80, 0x00), :Olive)
|
116
|
+
__create_named_color(self, from_values(0x6b, 0x8e, 0x23), :OliveDrab, :Olivedrab)
|
117
|
+
__create_named_color(self, from_values(0xff, 0xa5, 0x00), :Orange)
|
118
|
+
__create_named_color(self, from_values(0xff, 0x45, 0x00), :OrangeRed)
|
119
|
+
__create_named_color(self, from_values(0xda, 0x70, 0xd6), :Orchid)
|
120
|
+
__create_named_color(self, from_values(0xee, 0xe8, 0xaa), :PaleGoldenRod, :PaleGoldenrod)
|
121
|
+
__create_named_color(self, from_values(0x98, 0xfb, 0x98), :PaleGreen)
|
122
|
+
__create_named_color(self, from_values(0xaf, 0xee, 0xee), :PaleTurquoise)
|
123
|
+
__create_named_color(self, from_values(0xdb, 0x70, 0x93), :PaleVioletRed)
|
124
|
+
__create_named_color(self, from_values(0xff, 0xef, 0xd5), :PapayaWhip)
|
125
|
+
__create_named_color(self, from_values(0xff, 0xda, 0xb9), :PeachPuff, :Peachpuff)
|
126
|
+
__create_named_color(self, from_values(0xcd, 0x85, 0x3f), :Peru)
|
127
|
+
__create_named_color(self, from_values(0xff, 0xc0, 0xcb), :Pink)
|
128
|
+
__create_named_color(self, from_values(0xdd, 0xa0, 0xdd), :Plum)
|
129
|
+
__create_named_color(self, from_values(0xb0, 0xe0, 0xe6), :PowderBlue)
|
130
|
+
__create_named_color(self, from_values(0x80, 0x00, 0x80), :Purple)
|
131
|
+
__create_named_color(self, from_values(0x66, 0x33, 0x99), :RebeccaPurple)
|
132
|
+
__create_named_color(self, from_values(0xff, 0x00, 0x00), :Red)
|
133
|
+
__create_named_color(self, from_values(0xbc, 0x8f, 0x8f), :RosyBrown)
|
134
|
+
__create_named_color(self, from_values(0x41, 0x69, 0xe1), :RoyalBlue)
|
135
|
+
__create_named_color(self, from_values(0x8b, 0x45, 0x13), :SaddleBrown)
|
136
|
+
__create_named_color(self, from_values(0xfa, 0x80, 0x72), :Salmon)
|
137
|
+
__create_named_color(self, from_values(0xf4, 0xa4, 0x60), :SandyBrown)
|
138
|
+
__create_named_color(self, from_values(0x2e, 0x8b, 0x57), :SeaGreen)
|
139
|
+
__create_named_color(self, from_values(0xff, 0xf5, 0xee), :SeaShell, :Seashell)
|
140
|
+
__create_named_color(self, from_values(0xa0, 0x52, 0x2d), :Sienna)
|
141
|
+
__create_named_color(self, from_values(0xc0, 0xc0, 0xc0), :Silver)
|
142
|
+
__create_named_color(self, from_values(0x87, 0xce, 0xeb), :SkyBlue)
|
143
|
+
__create_named_color(self, from_values(0x6a, 0x5a, 0xcd), :SlateBlue)
|
144
|
+
__create_named_color(self, from_values(0x70, 0x80, 0x90), :SlateGray, :SlateGrey)
|
145
|
+
__create_named_color(self, from_values(0xff, 0xfa, 0xfa), :Snow)
|
146
|
+
__create_named_color(self, from_values(0x00, 0xff, 0x7f), :SpringGreen)
|
147
|
+
__create_named_color(self, from_values(0x46, 0x82, 0xb4), :SteelBlue)
|
148
|
+
__create_named_color(self, from_values(0xd2, 0xb4, 0x8c), :Tan)
|
149
|
+
__create_named_color(self, from_values(0x00, 0x80, 0x80), :Teal)
|
150
|
+
__create_named_color(self, from_values(0xd8, 0xbf, 0xd8), :Thistle)
|
151
|
+
__create_named_color(self, from_values(0xff, 0x63, 0x47), :Tomato)
|
152
|
+
__create_named_color(self, from_values(0x40, 0xe0, 0xd0), :Turquoise)
|
153
|
+
__create_named_color(self, from_values(0xee, 0x82, 0xee), :Violet)
|
154
|
+
__create_named_color(self, from_values(0xd0, 0x20, 0x90), :VioletRed)
|
155
|
+
__create_named_color(self, from_values(0xf5, 0xde, 0xb3), :Wheat)
|
156
|
+
__create_named_color(self, from_values(0xff, 0xff, 0xff), :White)
|
157
|
+
__create_named_color(self, from_values(0xf5, 0xf5, 0xf5), :WhiteSmoke)
|
158
|
+
__create_named_color(self, from_values(0xff, 0xff, 0x00), :Yellow)
|
159
|
+
__create_named_color(self, from_values(0x9a, 0xcd, 0x32), :YellowGreen)
|
160
|
+
|
161
|
+
# :stopdoc:
|
162
|
+
# This namespace contains some RGB metallic colors suggested by Jim
|
163
|
+
# Freeze.
|
164
|
+
# :startdoc:
|
166
165
|
|
167
|
-
|
166
|
+
module Metallic; end
|
167
|
+
|
168
|
+
__create_named_color(Metallic, from_values(0x99, 0x99, 0x99), :Aluminum)
|
169
|
+
__create_named_color(Metallic, from_values(0xd9, 0x87, 0x19), :CoolCopper)
|
170
|
+
__create_named_color(Metallic, from_values(0xb8, 0x73, 0x33), :Copper)
|
171
|
+
__create_named_color(Metallic, from_values(0x4c, 0x4c, 0x4c), :Iron)
|
172
|
+
__create_named_color(Metallic, from_values(0x19, 0x19, 0x19), :Lead)
|
173
|
+
__create_named_color(Metallic, from_values(0xb3, 0xb3, 0xb3), :Magnesium)
|
174
|
+
__create_named_color(Metallic, from_values(0xe6, 0xe6, 0xe6), :Mercury)
|
175
|
+
__create_named_color(Metallic, from_values(0x80, 0x80, 0x80), :Nickel)
|
176
|
+
__create_named_color(Metallic, from_values(0x60, 0x00, 0x00), :PolySilicon, :Poly)
|
177
|
+
__create_named_color(Metallic, from_values(0xcc, 0xcc, 0xcc), :Silver)
|
178
|
+
__create_named_color(Metallic, from_values(0x66, 0x66, 0x66), :Steel)
|
179
|
+
__create_named_color(Metallic, from_values(0x7f, 0x7f, 0x7f), :Tin)
|
180
|
+
__create_named_color(Metallic, from_values(0x33, 0x33, 0x33), :Tungsten)
|
181
|
+
end
|