htmlcolor.py 6.59 KB
Newer Older
1
from color import Color
wink's avatar
wink committed
2
3
4
5
6
7
8
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142

ALICEBLUE            = Color.from_hex(0xf0f8ff)
ANTIQUEWHITE         = Color.from_hex(0xfaebd7)
AQUA                 = Color.from_hex(0x00ffff)
AQUAMARINE           = Color.from_hex(0x7fffd4)
AZURE                = Color.from_hex(0xf0ffff)
BEIGE                = Color.from_hex(0xf5f5dc)
BISQUE               = Color.from_hex(0xffe4c4)
BLACK                = Color.from_hex(0x000000)
BLANCHEDALMOND       = Color.from_hex(0xffebcd)
BLUE                 = Color.from_hex(0x0000ff)
BLUEVIOLET           = Color.from_hex(0x8a2be2)
BROWN                = Color.from_hex(0xa52a2a)
BURLYWOOD            = Color.from_hex(0xdeb887)
CADETBLUE            = Color.from_hex(0x5f9ea0)
CHARTREUSE           = Color.from_hex(0x7fff00)
CHOCOLATE            = Color.from_hex(0xd2691e)
CORAL                = Color.from_hex(0xff7f50)
CORNFLOWERBLUE       = Color.from_hex(0x6495ed)
CORNSILK             = Color.from_hex(0xfff8dc)
CRIMSON              = Color.from_hex(0xdc143c)
CYAN                 = Color.from_hex(0x00ffff)
DARKBLUE             = Color.from_hex(0x00008b)
DARKCYAN             = Color.from_hex(0x008b8b)
DARKGOLDENROD        = Color.from_hex(0xb8860b)
DARKGRAY             = Color.from_hex(0xa9a9a9)
DARKGREEN            = Color.from_hex(0x006400)
DARKKHAKI            = Color.from_hex(0xbdb76b)
DARKMAGENTA          = Color.from_hex(0x8b008b)
DARKOLIVEGREEN       = Color.from_hex(0x556b2f)
DARKORANGE           = Color.from_hex(0xff8c00)
DARKORCHID           = Color.from_hex(0x9932cc)
DARKRED              = Color.from_hex(0x8b0000)
DARKSALMON           = Color.from_hex(0xe9967a)
DARKSEAGREEN         = Color.from_hex(0x8fbc8f)
DARKSLATEBLUE        = Color.from_hex(0x483d8b)
DARKSLATEGRAY        = Color.from_hex(0x2f4f4f)
DARKTURQUOISE        = Color.from_hex(0x00ced1)
DARKVIOLET           = Color.from_hex(0x9400d3)
DEEPPINK             = Color.from_hex(0xff1493)
DEEPSKYBLUE          = Color.from_hex(0x00bfff)
DIMGRAY              = Color.from_hex(0x696969)
DODGERBLUE           = Color.from_hex(0x1e90ff)
FIREBRICK            = Color.from_hex(0xb22222)
FLORALWHITE          = Color.from_hex(0xfffaf0)
FORESTGREEN          = Color.from_hex(0x228b22)
FUCHSIA              = Color.from_hex(0xff00ff)
GAINSBORO            = Color.from_hex(0xdcdcdc)
GHOSTWHITE           = Color.from_hex(0xf8f8ff)
GOLD                 = Color.from_hex(0xffd700)
GOLDENROD            = Color.from_hex(0xdaa520)
GRAY                 = Color.from_hex(0x808080)
GREEN                = Color.from_hex(0x008000)
GREENYELLOW          = Color.from_hex(0xadff2f)
HONEYDEW             = Color.from_hex(0xf0fff0)
HOTPINK              = Color.from_hex(0xff69b4)
INDIANRED            = Color.from_hex(0xcd5c5c)
INDIGO               = Color.from_hex(0x4b0082)
IVORY                = Color.from_hex(0xfffff0)
KHAKI                = Color.from_hex(0xf0e68c)
LAVENDER             = Color.from_hex(0xe6e6fa)
LAVENDERBLUSH        = Color.from_hex(0xfff0f5)
LAWNGREEN            = Color.from_hex(0x7cfc00)
LEMONCHIFFON         = Color.from_hex(0xfffacd)
LIGHTBLUE            = Color.from_hex(0xadd8e6)
LIGHTCORAL           = Color.from_hex(0xf08080)
LIGHTCYAN            = Color.from_hex(0xe0ffff)
LIGHTGOLDENRODYELLOW = Color.from_hex(0xfafad2)
LIGHTGRAY            = Color.from_hex(0xd3d3d3)
LIGHTGREEN           = Color.from_hex(0x90ee90)
LIGHTPINK            = Color.from_hex(0xffb6c1)
LIGHTSALMON          = Color.from_hex(0xffa07a)
LIGHTSEAGREEN        = Color.from_hex(0x20b2aa)
LIGHTSKYBLUE         = Color.from_hex(0x87cefa)
LIGHTSLATEGRAY       = Color.from_hex(0x778899)
LIGHTSTEELBLUE       = Color.from_hex(0xb0c4de)
LIGHTYELLOW          = Color.from_hex(0xffffe0)
LIME                 = Color.from_hex(0x00ff00)
LIMEGREEN            = Color.from_hex(0x32cd32)
LINEN                = Color.from_hex(0xfaf0e6)
MAGENTA              = Color.from_hex(0xff00ff)
MAROON               = Color.from_hex(0x800000)
MEDIUMAQUAMARINE     = Color.from_hex(0x66cdaa)
MEDIUMBLUE           = Color.from_hex(0x0000cd)
MEDIUMORCHID         = Color.from_hex(0xba55d3)
MEDIUMPURPLE         = Color.from_hex(0x9370d8)
MEDIUMSEAGREEN       = Color.from_hex(0x3cb371)
MEDIUMSLATEBLUE      = Color.from_hex(0x7b68ee)
MEDIUMSPRINGGREEN    = Color.from_hex(0x00fa9a)
MEDIUMTURQUOISE      = Color.from_hex(0x48d1cc)
MEDIUMVIOLETRED      = Color.from_hex(0xc71585)
MIDNIGHTBLUE         = Color.from_hex(0x191970)
MINTCREAM            = Color.from_hex(0xf5fffa)
MISTYROSE            = Color.from_hex(0xffe4e1)
MOCCASIN             = Color.from_hex(0xffe4b5)
NAVAJOWHITE          = Color.from_hex(0xffdead)
NAVY                 = Color.from_hex(0x000080)
OLDLACE              = Color.from_hex(0xfdf5e6)
OLIVE                = Color.from_hex(0x808000)
OLIVEDRAB            = Color.from_hex(0x6b8e23)
ORANGE               = Color.from_hex(0xffa500)
ORANGERED            = Color.from_hex(0xff4500)
ORCHID               = Color.from_hex(0xda70d6)
PALEGOLDENROD        = Color.from_hex(0xeee8aa)
PALEGREEN            = Color.from_hex(0x98fb98)
PALETURQUOISE        = Color.from_hex(0xafeeee)
PALEVIOLETRED        = Color.from_hex(0xdb7093)
PAPAYAWHIP           = Color.from_hex(0xffefd5)
PEACHPUFF            = Color.from_hex(0xffdab9)
PERU                 = Color.from_hex(0xcd853f)
PINK                 = Color.from_hex(0xffc0cb)
PLUM                 = Color.from_hex(0xdda0dd)
POWDERBLUE           = Color.from_hex(0xb0e0e6)
PURPLE               = Color.from_hex(0x800080)
RED                  = Color.from_hex(0xff0000)
ROSYBROWN            = Color.from_hex(0xbc8f8f)
ROYALBLUE            = Color.from_hex(0x4169e1)
SADDLEBROWN          = Color.from_hex(0x8b4513)
SALMON               = Color.from_hex(0xfa8072)
SANDYBROWN           = Color.from_hex(0xf4a460)
SEAGREEN             = Color.from_hex(0x2e8b57)
SEASHELL             = Color.from_hex(0xfff5ee)
SIENNA               = Color.from_hex(0xa0522d)
SILVER               = Color.from_hex(0xc0c0c0)
SKYBLUE              = Color.from_hex(0x87ceeb)
SLATEBLUE            = Color.from_hex(0x6a5acd)
SLATEGRAY            = Color.from_hex(0x708090)
SNOW                 = Color.from_hex(0xfffafa)
SPRINGGREEN          = Color.from_hex(0x00ff7f)
STEELBLUE            = Color.from_hex(0x4682b4)
TAN                  = Color.from_hex(0xd2b48c)
TEAL                 = Color.from_hex(0x008080)
THISTLE              = Color.from_hex(0xd8bfd8)
TOMATO               = Color.from_hex(0xff6347)
TURQUOISE            = Color.from_hex(0x40e0d0)
VIOLET               = Color.from_hex(0xee82ee)
WHEAT                = Color.from_hex(0xf5deb3)
WHITE                = Color.from_hex(0xffffff)
WHITESMOKE           = Color.from_hex(0xf5f5f5)
YELLOW               = Color.from_hex(0xffff00)
YELLOWGREEN          = Color.from_hex(0x9acd32)