Skip to main content

ponsic_color/
const_color.rs

1// 此文件由 gen_const_color.py 生成的
2use crate::Color;
3
4impl Color {
5    pub const BLACK: Self = Self::new(0x00, 0x00, 0x00);
6    pub const SILVER: Self = Self::new(0xc0, 0xc0, 0xc0);
7    pub const GRAY: Self = Self::new(0x80, 0x80, 0x80);
8    pub const WHITE: Self = Self::new(0xff, 0xff, 0xff);
9    pub const MAROON: Self = Self::new(0x80, 0x00, 0x00);
10    pub const RED: Self = Self::new(0xff, 0x00, 0x00);
11    pub const PURPLE: Self = Self::new(0x80, 0x00, 0x80);
12    pub const FUCHSIA: Self = Self::new(0xff, 0x00, 0xff);
13    pub const GREEN: Self = Self::new(0x00, 0x80, 0x00);
14    pub const LIME: Self = Self::new(0x00, 0xff, 0x00);
15    pub const OLIVE: Self = Self::new(0x80, 0x80, 0x00);
16    pub const YELLOW: Self = Self::new(0xff, 0xff, 0x00);
17    pub const NAVY: Self = Self::new(0x00, 0x00, 0x80);
18    pub const BLUE: Self = Self::new(0x00, 0x00, 0xff);
19    pub const TEAL: Self = Self::new(0x00, 0x80, 0x80);
20    pub const AQUA: Self = Self::new(0x00, 0xff, 0xff);
21    pub const ALICEBLUE: Self = Self::new(0xf0, 0xf8, 0xff);
22    pub const ANTIQUEWHITE: Self = Self::new(0xfa, 0xeb, 0xd7);
23    pub const AQUAMARINE: Self = Self::new(0x7f, 0xff, 0xd4);
24    pub const AZURE: Self = Self::new(0xf0, 0xff, 0xff);
25    pub const BEIGE: Self = Self::new(0xf5, 0xf5, 0xdc);
26    pub const BISQUE: Self = Self::new(0xff, 0xe4, 0xc4);
27    pub const BLANCHEDALMOND: Self = Self::new(0xff, 0xeb, 0xcd);
28    pub const BLUEVIOLET: Self = Self::new(0x8a, 0x2b, 0xe2);
29    pub const BROWN: Self = Self::new(0xa5, 0x2a, 0x2a);
30    pub const BURLYWOOD: Self = Self::new(0xde, 0xb8, 0x87);
31    pub const CADETBLUE: Self = Self::new(0x5f, 0x9e, 0xa0);
32    pub const CHARTREUSE: Self = Self::new(0x7f, 0xff, 0x00);
33    pub const CHOCOLATE: Self = Self::new(0xd2, 0x69, 0x1e);
34    pub const CORAL: Self = Self::new(0xff, 0x7f, 0x50);
35    pub const CORNFLOWERBLUE: Self = Self::new(0x64, 0x95, 0xed);
36    pub const CORNSILK: Self = Self::new(0xff, 0xf8, 0xdc);
37    pub const CRIMSON: Self = Self::new(0xdc, 0x14, 0x3c);
38    pub const DARKBLUE: Self = Self::new(0x00, 0x00, 0x8b);
39    pub const DARKCYAN: Self = Self::new(0x00, 0x8b, 0x8b);
40    pub const DARKGOLDENROD: Self = Self::new(0xb8, 0x86, 0x0b);
41    pub const DARKGRAY: Self = Self::new(0xa9, 0xa9, 0xa9);
42    pub const DARKGREEN: Self = Self::new(0x00, 0x64, 0x00);
43    pub const DARKGREY: Self = Self::new(0xa9, 0xa9, 0xa9);
44    pub const DARKKHAKI: Self = Self::new(0xbd, 0xb7, 0x6b);
45    pub const DARKMAGENTA: Self = Self::new(0x8b, 0x00, 0x8b);
46    pub const DARKOLIVEGREEN: Self = Self::new(0x55, 0x6b, 0x2f);
47    pub const DARKORANGE: Self = Self::new(0xff, 0x8c, 0x00);
48    pub const DARKORCHID: Self = Self::new(0x99, 0x32, 0xcc);
49    pub const DARKRED: Self = Self::new(0x8b, 0x00, 0x00);
50    pub const DARKSALMON: Self = Self::new(0xe9, 0x96, 0x7a);
51    pub const DARKSEAGREEN: Self = Self::new(0x8f, 0xbc, 0x8f);
52    pub const DARKSLATEBLUE: Self = Self::new(0x48, 0x3d, 0x8b);
53    pub const DARKSLATEGRAY: Self = Self::new(0x2f, 0x4f, 0x4f);
54    pub const DARKSLATEGREY: Self = Self::new(0x2f, 0x4f, 0x4f);
55    pub const DARKTURQUOISE: Self = Self::new(0x00, 0xce, 0xd1);
56    pub const DARKVIOLET: Self = Self::new(0x94, 0x00, 0xd3);
57    pub const DEEPPINK: Self = Self::new(0xff, 0x14, 0x93);
58    pub const DEEPSKYBLUE: Self = Self::new(0x00, 0xbf, 0xff);
59    pub const DIMGRAY: Self = Self::new(0x69, 0x69, 0x69);
60    pub const DIMGREY: Self = Self::new(0x69, 0x69, 0x69);
61    pub const DODGERBLUE: Self = Self::new(0x1e, 0x90, 0xff);
62    pub const FIREBRICK: Self = Self::new(0xb2, 0x22, 0x22);
63    pub const FLORALWHITE: Self = Self::new(0xff, 0xfa, 0xf0);
64    pub const FORESTGREEN: Self = Self::new(0x22, 0x8b, 0x22);
65    pub const GAINSBORO: Self = Self::new(0xdc, 0xdc, 0xdc);
66    pub const GHOSTWHITE: Self = Self::new(0xf8, 0xf8, 0xff);
67    pub const GOLD: Self = Self::new(0xff, 0xd7, 0x00);
68    pub const GOLDENROD: Self = Self::new(0xda, 0xa5, 0x20);
69    pub const GREENYELLOW: Self = Self::new(0xad, 0xff, 0x2f);
70    pub const HONEYDEW: Self = Self::new(0xf0, 0xff, 0xf0);
71    pub const HOTPINK: Self = Self::new(0xff, 0x69, 0xb4);
72    pub const INDIANRED: Self = Self::new(0xcd, 0x5c, 0x5c);
73    pub const INDIGO: Self = Self::new(0x4b, 0x00, 0x82);
74    pub const IVORY: Self = Self::new(0xff, 0xff, 0xf0);
75    pub const KHAKI: Self = Self::new(0xf0, 0xe6, 0x8c);
76    pub const LAVENDER: Self = Self::new(0xe6, 0xe6, 0xfa);
77    pub const LAVENDERBLUSH: Self = Self::new(0xff, 0xf0, 0xf5);
78    pub const LAWNGREEN: Self = Self::new(0x7c, 0xfc, 0x00);
79    pub const LEMONCHIFFON: Self = Self::new(0xff, 0xfa, 0xcd);
80    pub const LIGHTBLUE: Self = Self::new(0xad, 0xd8, 0xe6);
81    pub const LIGHTCORAL: Self = Self::new(0xf0, 0x80, 0x80);
82    pub const LIGHTCYAN: Self = Self::new(0xe0, 0xff, 0xff);
83    pub const LIGHTGOLDENRODYELLOW: Self = Self::new(0xfa, 0xfa, 0xd2);
84    pub const LIGHTGRAY: Self = Self::new(0xd3, 0xd3, 0xd3);
85    pub const LIGHTGREEN: Self = Self::new(0x90, 0xee, 0x90);
86    pub const LIGHTGREY: Self = Self::new(0xd3, 0xd3, 0xd3);
87    pub const LIGHTPINK: Self = Self::new(0xff, 0xb6, 0xc1);
88    pub const LIGHTSALMON: Self = Self::new(0xff, 0xa0, 0x7a);
89    pub const LIGHTSEAGREEN: Self = Self::new(0x20, 0xb2, 0xaa);
90    pub const LIGHTSKYBLUE: Self = Self::new(0x87, 0xce, 0xfa);
91    pub const LIGHTSLATEGRAY: Self = Self::new(0x77, 0x88, 0x99);
92    pub const LIGHTSLATEGREY: Self = Self::new(0x77, 0x88, 0x99);
93    pub const LIGHTSTEELBLUE: Self = Self::new(0xb0, 0xc4, 0xde);
94    pub const LIGHTYELLOW: Self = Self::new(0xff, 0xff, 0xe0);
95    pub const LIMEGREEN: Self = Self::new(0x32, 0xcd, 0x32);
96    pub const LINEN: Self = Self::new(0xfa, 0xf0, 0xe6);
97    pub const MEDIUMAQUAMARINE: Self = Self::new(0x66, 0xcd, 0xaa);
98    pub const MEDIUMBLUE: Self = Self::new(0x00, 0x00, 0xcd);
99    pub const MEDIUMORCHID: Self = Self::new(0xba, 0x55, 0xd3);
100    pub const MEDIUMPURPLE: Self = Self::new(0x93, 0x70, 0xdb);
101    pub const MEDIUMSEAGREEN: Self = Self::new(0x3c, 0xb3, 0x71);
102    pub const MEDIUMSLATEBLUE: Self = Self::new(0x7b, 0x68, 0xee);
103    pub const MEDIUMSPRINGGREEN: Self = Self::new(0x00, 0xfa, 0x9a);
104    pub const MEDIUMTURQUOISE: Self = Self::new(0x48, 0xd1, 0xcc);
105    pub const MEDIUMVIOLETRED: Self = Self::new(0xc7, 0x15, 0x85);
106    pub const MIDNIGHTBLUE: Self = Self::new(0x19, 0x19, 0x70);
107    pub const MINTCREAM: Self = Self::new(0xf5, 0xff, 0xfa);
108    pub const MISTYROSE: Self = Self::new(0xff, 0xe4, 0xe1);
109    pub const MOCCASIN: Self = Self::new(0xff, 0xe4, 0xb5);
110    pub const NAVAJOWHITE: Self = Self::new(0xff, 0xde, 0xad);
111    pub const OLDLACE: Self = Self::new(0xfd, 0xf5, 0xe6);
112    pub const OLIVEDRAB: Self = Self::new(0x6b, 0x8e, 0x23);
113    pub const ORANGE: Self = Self::new(0xff, 0xa5, 0x00);
114    pub const ORANGERED: Self = Self::new(0xff, 0x45, 0x00);
115    pub const ORCHID: Self = Self::new(0xda, 0x70, 0xd6);
116    pub const PALEGOLDENROD: Self = Self::new(0xee, 0xe8, 0xaa);
117    pub const PALEGREEN: Self = Self::new(0x98, 0xfb, 0x98);
118    pub const PALETURQUOISE: Self = Self::new(0xaf, 0xee, 0xee);
119    pub const PALEVIOLETRED: Self = Self::new(0xdb, 0x70, 0x93);
120    pub const PAPAYAWHIP: Self = Self::new(0xff, 0xef, 0xd5);
121    pub const PEACHPUFF: Self = Self::new(0xff, 0xda, 0xb9);
122    pub const PERU: Self = Self::new(0xcd, 0x85, 0x3f);
123    pub const PINK: Self = Self::new(0xff, 0xc0, 0xcb);
124    pub const PLUM: Self = Self::new(0xdd, 0xa0, 0xdd);
125    pub const POWDERBLUE: Self = Self::new(0xb0, 0xe0, 0xe6);
126    pub const REBECCAPURPLE: Self = Self::new(0x66, 0x33, 0x99);
127    pub const ROSYBROWN: Self = Self::new(0xbc, 0x8f, 0x8f);
128    pub const ROYALBLUE: Self = Self::new(0x41, 0x69, 0xe1);
129    pub const SADDLEBROWN: Self = Self::new(0x8b, 0x45, 0x13);
130    pub const SALMON: Self = Self::new(0xfa, 0x80, 0x72);
131    pub const SANDYBROWN: Self = Self::new(0xf4, 0xa4, 0x60);
132    pub const SEAGREEN: Self = Self::new(0x2e, 0x8b, 0x57);
133    pub const SEASHELL: Self = Self::new(0xff, 0xf5, 0xee);
134    pub const SIENNA: Self = Self::new(0xa0, 0x52, 0x2d);
135    pub const SKYBLUE: Self = Self::new(0x87, 0xce, 0xeb);
136    pub const SLATEBLUE: Self = Self::new(0x6a, 0x5a, 0xcd);
137    pub const SLATEGRAY: Self = Self::new(0x70, 0x80, 0x90);
138    pub const SLATEGREY: Self = Self::new(0x70, 0x80, 0x90);
139    pub const SNOW: Self = Self::new(0xff, 0xfa, 0xfa);
140    pub const SPRINGGREEN: Self = Self::new(0x00, 0xff, 0x7f);
141    pub const STEELBLUE: Self = Self::new(0x46, 0x82, 0xb4);
142    pub const TAN: Self = Self::new(0xd2, 0xb4, 0x8c);
143    pub const THISTLE: Self = Self::new(0xd8, 0xbf, 0xd8);
144    pub const TOMATO: Self = Self::new(0xff, 0x63, 0x47);
145    pub const TURQUOISE: Self = Self::new(0x40, 0xe0, 0xd0);
146    pub const VIOLET: Self = Self::new(0xee, 0x82, 0xee);
147    pub const WHEAT: Self = Self::new(0xf5, 0xde, 0xb3);
148    pub const WHITESMOKE: Self = Self::new(0xf5, 0xf5, 0xf5);
149    pub const YELLOWGREEN: Self = Self::new(0x9a, 0xcd, 0x32);
150}