color 1.4.1 → 1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.autotest +5 -0
- data/.coveralls.yml +2 -0
- data/.gemtest +0 -0
- data/.hoerc +2 -0
- data/.minitest.rb +2 -0
- data/.travis.yml +41 -0
- data/Code-of-Conduct.rdoc +41 -0
- data/Contributing.rdoc +62 -0
- data/Gemfile +9 -0
- data/History.rdoc +194 -0
- data/{Licence.txt → Licence.rdoc} +4 -4
- data/Manifest.txt +15 -7
- data/README.rdoc +52 -0
- data/Rakefile +62 -103
- data/lib/color.rb +108 -68
- data/lib/color/cmyk.rb +41 -57
- data/lib/color/css.rb +1 -22
- data/lib/color/grayscale.rb +37 -52
- data/lib/color/hsl.rb +97 -78
- data/lib/color/palette.rb +0 -12
- data/lib/color/palette/adobecolor.rb +0 -12
- data/lib/color/palette/gimp.rb +0 -12
- data/lib/color/palette/monocontrast.rb +26 -42
- data/lib/color/rgb.rb +376 -113
- data/lib/color/rgb/colors.rb +167 -0
- data/lib/color/rgb/contrast.rb +57 -0
- data/lib/color/rgb/metallic.rb +25 -40
- data/lib/color/yiq.rb +13 -35
- data/test/minitest_helper.rb +6 -0
- data/test/test_adobecolor.rb +9 -23
- data/test/test_cmyk.rb +21 -36
- data/test/test_color.rb +10 -17
- data/test/test_css.rb +12 -22
- data/test/test_gimp.rb +8 -22
- data/test/test_grayscale.rb +12 -27
- data/test/test_hsl.rb +23 -39
- data/test/test_monocontrast.rb +13 -25
- data/test/test_rgb.rb +98 -35
- data/test/test_yiq.rb +12 -24
- metadata +279 -124
- data.tar.gz.sig +0 -3
- data/History.txt +0 -93
- data/Install.txt +0 -18
- data/README.txt +0 -32
- data/lib/color/rgb-colors.rb +0 -355
- data/setup.rb +0 -1585
- data/test/test_all.rb +0 -23
- metadata.gz.sig +0 -3
data.tar.gz.sig
DELETED
data/History.txt
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
== Color 1.4.1 / 2010.02.03
|
2
|
-
* Imported to github.
|
3
|
-
* Converted to Hoe 2.5 spec format.
|
4
|
-
|
5
|
-
== Color 1.4.0 / 2007.02.11
|
6
|
-
* Merged Austin Ziegler's color-tools library (previously part of the Ruby
|
7
|
-
PDF Tools project) with Matt Lyon's color library.
|
8
|
-
- The HSL implementation from the Color class has been merged into
|
9
|
-
Color::HSL. Color is a module the way it was for color-tools.
|
10
|
-
- A thin veneer has been written to allow Color::new to return a Color::HSL
|
11
|
-
instance; Color::HSL supports as many methods as possible that were
|
12
|
-
previously supported by the Color class.
|
13
|
-
- Values that were previously rounded by Color are no longer rounded;
|
14
|
-
fractional values matter.
|
15
|
-
* Converted to hoe for project management.
|
16
|
-
* Moved to the next step of deprecating Color::Name values; printing a
|
17
|
-
warning for each use (see the history for color-tools 1.3.0).
|
18
|
-
* Print a warning on the access of either VERSION or COLOR_TOOLS_VERSION; the
|
19
|
-
version constant is now COLOR_VERSION.
|
20
|
-
* Added humanized versions of accessors (e.g., CMYK colours now have both #cyan
|
21
|
-
and #c to access the cyan component of the colour; #cyan provides the value
|
22
|
-
as a percentage).
|
23
|
-
* Added CSS3 formatters for RGB, RGBA, HSL, and HSLA outputs. Note that the
|
24
|
-
Color library does not yet have a way of setting alpha opacity, so the
|
25
|
-
output for RGBA and HSLA are at full alpha opacity (1.0). The values are
|
26
|
-
output with two decimal places.
|
27
|
-
* Applied a patch to provide simple arithmetic colour addition and subtraction
|
28
|
-
to Color::GrayScale and Color::RGB. The patch was contributed by Jeremy
|
29
|
-
Hinegardner <jeremy@hinegardner.org>. This patch also provides the ability to
|
30
|
-
return the maximum RGB value as a grayscale colour.
|
31
|
-
* Fixed two problems reported by Jean Krohn <jb.krohn@free.fr> against
|
32
|
-
color-tools relating to RGB-to-HSL and HSL-to-RGB conversion. (Color and
|
33
|
-
color-tools use the same formulas, but the ordering of the calculations is
|
34
|
-
slightly different with Color and did not suffer from this problem;
|
35
|
-
color-tools was more sensitive to floating-point values and precision
|
36
|
-
errors.)
|
37
|
-
* Fixed an issue with HSL/RGB conversions reported by Adam Johnson
|
38
|
-
<adam.sven.johnson@gmail.com>.
|
39
|
-
* Added an Adobe Color swatch (Photoshop) palette reader,
|
40
|
-
Color::Palette::AdobeColor (for .aco files only).
|
41
|
-
|
42
|
-
== Color 0.1.0 / 2006.08.05
|
43
|
-
* Added HSL (degree, percent, percent) interface.
|
44
|
-
* Removed RGB instance variable; color is managed internally as HSL floating
|
45
|
-
point.
|
46
|
-
* Tests!
|
47
|
-
|
48
|
-
== color-tools 1.3.0
|
49
|
-
* Added new metallic colours suggested by Jim Freeze <jfn@freeze.org>. These
|
50
|
-
are in the namespace Color::Metallic.
|
51
|
-
* Colours that were defined in the Color namespace (e.g., Color::Red,
|
52
|
-
Color::AliceBlue) are now defined in Color::RGB (e.g., Color::RGB::Red,
|
53
|
-
Color::RGB::AliceBlue). They are added back to the Color namespace on the
|
54
|
-
first use of the old colours and a warning is printed. In version 1.4, this
|
55
|
-
warning will be printed on every use of the old colours. In version 1.5,
|
56
|
-
the backwards compatible support for colours like Color::Red will be
|
57
|
-
removed completely.
|
58
|
-
* Added the Color::CSS module, color/css or Color::CSS that provides a name
|
59
|
-
lookup of Color::RGB-namespaced constants with Color::CSS[name]. Most of
|
60
|
-
these colours (which are mirrored from the Color::RGB default colours) are
|
61
|
-
only "officially" recognised under the CSS3 colour module or SVG.
|
62
|
-
* Added the Color::HSL colour space and some helper utilities to Color::RGB
|
63
|
-
for colour manipulation using the HSL value.
|
64
|
-
* Controlled internal value replacement to be between 0 and 1 for all
|
65
|
-
colours.
|
66
|
-
* Updated Color::Palette::Gimp to more meaningfully deal with duplicate named
|
67
|
-
colours. Named colours now return an array of colours.
|
68
|
-
* Indicated the plans for some methods and constants out to color-tools 2.0.
|
69
|
-
* Added unit tests and fixed a number of hidden bugs because of them.
|
70
|
-
|
71
|
-
== color-tools 1.2.0
|
72
|
-
* Changed installer from a custom-written install.rb to setup.rb
|
73
|
-
3.3.1-modified.
|
74
|
-
* Added Color::GreyScale (or Color::GrayScale).
|
75
|
-
* Added Color::YIQ. This colour definition is incomplete; it does not have
|
76
|
-
conversions from YIQ to other colour spaces.
|
77
|
-
|
78
|
-
== color-tools 1.1.0
|
79
|
-
* Added color/palette/gimp to support the reading and use of GIMP color
|
80
|
-
palettes.
|
81
|
-
|
82
|
-
== color-tools 1.0.0
|
83
|
-
* Initial release.
|
84
|
-
|
85
|
-
== Copyright
|
86
|
-
Color
|
87
|
-
Colour Management with Ruby
|
88
|
-
http://rubyforge.org/projects/color
|
89
|
-
|
90
|
-
Licensed under a MIT-style licence. See Licence.txt in the main
|
91
|
-
distribution for full licensing information.
|
92
|
-
|
93
|
-
Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
|
data/Install.txt
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
== Installing Color
|
2
|
-
|
3
|
-
Color may be installed with:
|
4
|
-
|
5
|
-
% ruby setup.rb
|
6
|
-
|
7
|
-
Alternatively, the RubyGems version of Color may be installed from the usual
|
8
|
-
sources.
|
9
|
-
|
10
|
-
== Copyright
|
11
|
-
Color
|
12
|
-
Colour Management with Ruby
|
13
|
-
http://rubyforge.org/projects/color
|
14
|
-
|
15
|
-
Licensed under a MIT-style licence. See Licence.txt in the main
|
16
|
-
distribution for full licensing information.
|
17
|
-
|
18
|
-
Copyright (c) 2005 - 2010 Austin Ziegler and Matt Lyon
|
data/README.txt
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
= Color
|
2
|
-
Color is a Ruby library to provide basic RGB, CMYK, HSL, and other colourspace
|
3
|
-
manipulation support to applications that require it. It also provides 152
|
4
|
-
named RGB colours (184 with spelling variations) that are commonly supported
|
5
|
-
in HTML, SVG, and X11 applications. A technique for generating monochromatic
|
6
|
-
contrasting palettes is also included.
|
7
|
-
|
8
|
-
The capabilities of the Color library are limited to pure mathematical
|
9
|
-
manipulation of the colours based on colour theory without reference to colour
|
10
|
-
profiles (such as sRGB or Adobe RGB). For most purposes, when working with the
|
11
|
-
RGB and HSL colours, this won't matter. However, some colour models (like CIE
|
12
|
-
L*a*b*) are not supported because Color does not yet support colour profiles,
|
13
|
-
giving no meaningful way to convert colours in absolute colour spaces (like
|
14
|
-
L*a*b*, XYZ) to non-absolute colour spaces (like RGB).
|
15
|
-
|
16
|
-
Color version 1.4 is the result of a project merge between color.rb 0.1.0 by
|
17
|
-
Matt Lyon and color-tools 1.3 by Austin Ziegler. Please see History.txt for
|
18
|
-
details on the changes this merge brings. Color version 1.4.1 changes
|
19
|
-
development to GitHub and fixes some small problems.
|
20
|
-
|
21
|
-
Copyright:: Copyright (c) 2005 - 2010 by Austin Ziegler and Matt Lyon
|
22
|
-
Version:: 1.4.1
|
23
|
-
Homepage:: http://rubyforge.org/projects/color/
|
24
|
-
Licence:: MIT-Style; see Licence.txt
|
25
|
-
|
26
|
-
Color::Palette was developed based on techniques described by Andy "Malarkey"
|
27
|
-
Clarke[1], implemented in JavaScript by Steve G. Chipman at SlayerOffice[2] and
|
28
|
-
by Patrick Fitzgerald of BarelyFitz[3] in PHP.
|
29
|
-
|
30
|
-
[1] http://www.stuffandnonsense.co.uk/archives/creating_colour_palettes.html
|
31
|
-
[2] http://slayeroffice.com/tools/color_palette/
|
32
|
-
[3] http://www.barelyfitz.com/projects/csscolor/
|
data/lib/color/rgb-colors.rb
DELETED
@@ -1,355 +0,0 @@
|
|
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
|