forked from MonoGame/MonoGame
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Color.cs
1930 lines (1742 loc) · 55.7 KB
/
Color.cs
1
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// MIT License - Copyright (C) The Mono.Xna Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System;
using System.Text;
using System.Runtime.Serialization;
using System.Diagnostics;
namespace Microsoft.Xna.Framework
{
/// <summary>
/// Describes a 32-bit packed color.
/// </summary>
[DataContract]
[DebuggerDisplay("{DebugDisplayString,nq}")]
public struct Color : IEquatable<Color>
{
static Color()
{
Transparent = new Color(0);
AliceBlue = new Color(0xfffff8f0);
AntiqueWhite = new Color(0xffd7ebfa);
Aqua = new Color(0xffffff00);
Aquamarine = new Color(0xffd4ff7f);
Azure = new Color(0xfffffff0);
Beige = new Color(0xffdcf5f5);
Bisque = new Color(0xffc4e4ff);
Black = new Color(0xff000000);
BlanchedAlmond = new Color(0xffcdebff);
Blue = new Color(0xffff0000);
BlueViolet = new Color(0xffe22b8a);
Brown = new Color(0xff2a2aa5);
BurlyWood = new Color(0xff87b8de);
CadetBlue = new Color(0xffa09e5f);
Chartreuse = new Color(0xff00ff7f);
Chocolate = new Color(0xff1e69d2);
Coral = new Color(0xff507fff);
CornflowerBlue = new Color(0xffed9564);
Cornsilk = new Color(0xffdcf8ff);
Crimson = new Color(0xff3c14dc);
Cyan = new Color(0xffffff00);
DarkBlue = new Color(0xff8b0000);
DarkCyan = new Color(0xff8b8b00);
DarkGoldenrod = new Color(0xff0b86b8);
DarkGray = new Color(0xffa9a9a9);
DarkGreen = new Color(0xff006400);
DarkKhaki = new Color(0xff6bb7bd);
DarkMagenta = new Color(0xff8b008b);
DarkOliveGreen = new Color(0xff2f6b55);
DarkOrange = new Color(0xff008cff);
DarkOrchid = new Color(0xffcc3299);
DarkRed = new Color(0xff00008b);
DarkSalmon = new Color(0xff7a96e9);
DarkSeaGreen = new Color(0xff8bbc8f);
DarkSlateBlue = new Color(0xff8b3d48);
DarkSlateGray = new Color(0xff4f4f2f);
DarkTurquoise = new Color(0xffd1ce00);
DarkViolet = new Color(0xffd30094);
DeepPink = new Color(0xff9314ff);
DeepSkyBlue = new Color(0xffffbf00);
DimGray = new Color(0xff696969);
DodgerBlue = new Color(0xffff901e);
Firebrick = new Color(0xff2222b2);
FloralWhite = new Color(0xfff0faff);
ForestGreen = new Color(0xff228b22);
Fuchsia = new Color(0xffff00ff);
Gainsboro = new Color(0xffdcdcdc);
GhostWhite = new Color(0xfffff8f8);
Gold = new Color(0xff00d7ff);
Goldenrod = new Color(0xff20a5da);
Gray = new Color(0xff808080);
Green = new Color(0xff008000);
GreenYellow = new Color(0xff2fffad);
Honeydew = new Color(0xfff0fff0);
HotPink = new Color(0xffb469ff);
IndianRed = new Color(0xff5c5ccd);
Indigo = new Color(0xff82004b);
Ivory = new Color(0xfff0ffff);
Khaki = new Color(0xff8ce6f0);
Lavender = new Color(0xfffae6e6);
LavenderBlush = new Color(0xfff5f0ff);
LawnGreen = new Color(0xff00fc7c);
LemonChiffon = new Color(0xffcdfaff);
LightBlue = new Color(0xffe6d8ad);
LightCoral = new Color(0xff8080f0);
LightCyan = new Color(0xffffffe0);
LightGoldenrodYellow = new Color(0xffd2fafa);
LightGray = new Color(0xffd3d3d3);
LightGreen = new Color(0xff90ee90);
LightPink = new Color(0xffc1b6ff);
LightSalmon = new Color(0xff7aa0ff);
LightSeaGreen = new Color(0xffaab220);
LightSkyBlue = new Color(0xffface87);
LightSlateGray = new Color(0xff998877);
LightSteelBlue = new Color(0xffdec4b0);
LightYellow = new Color(0xffe0ffff);
Lime = new Color(0xff00ff00);
LimeGreen = new Color(0xff32cd32);
Linen = new Color(0xffe6f0fa);
Magenta = new Color(0xffff00ff);
Maroon = new Color(0xff000080);
MediumAquamarine = new Color(0xffaacd66);
MediumBlue = new Color(0xffcd0000);
MediumOrchid = new Color(0xffd355ba);
MediumPurple = new Color(0xffdb7093);
MediumSeaGreen = new Color(0xff71b33c);
MediumSlateBlue = new Color(0xffee687b);
MediumSpringGreen = new Color(0xff9afa00);
MediumTurquoise = new Color(0xffccd148);
MediumVioletRed = new Color(0xff8515c7);
MidnightBlue = new Color(0xff701919);
MintCream = new Color(0xfffafff5);
MistyRose = new Color(0xffe1e4ff);
Moccasin = new Color(0xffb5e4ff);
MonoGameOrange = new Color(0xff003ce7);
NavajoWhite = new Color(0xffaddeff);
Navy = new Color(0xff800000);
OldLace = new Color(0xffe6f5fd);
Olive = new Color(0xff008080);
OliveDrab = new Color(0xff238e6b);
Orange = new Color(0xff00a5ff);
OrangeRed = new Color(0xff0045ff);
Orchid = new Color(0xffd670da);
PaleGoldenrod = new Color(0xffaae8ee);
PaleGreen = new Color(0xff98fb98);
PaleTurquoise = new Color(0xffeeeeaf);
PaleVioletRed = new Color(0xff9370db);
PapayaWhip = new Color(0xffd5efff);
PeachPuff = new Color(0xffb9daff);
Peru = new Color(0xff3f85cd);
Pink = new Color(0xffcbc0ff);
Plum = new Color(0xffdda0dd);
PowderBlue = new Color(0xffe6e0b0);
Purple = new Color(0xff800080);
Red = new Color(0xff0000ff);
RosyBrown = new Color(0xff8f8fbc);
RoyalBlue = new Color(0xffe16941);
SaddleBrown = new Color(0xff13458b);
Salmon= new Color(0xff7280fa);
SandyBrown = new Color(0xff60a4f4);
SeaGreen = new Color(0xff578b2e);
SeaShell = new Color(0xffeef5ff);
Sienna = new Color(0xff2d52a0);
Silver = new Color(0xffc0c0c0);
SkyBlue = new Color(0xffebce87);
SlateBlue= new Color(0xffcd5a6a);
SlateGray= new Color(0xff908070);
Snow= new Color(0xfffafaff);
SpringGreen= new Color(0xff7fff00);
SteelBlue= new Color(0xffb48246);
Tan= new Color(0xff8cb4d2);
Teal= new Color(0xff808000);
Thistle= new Color(0xffd8bfd8);
Tomato= new Color(0xff4763ff);
Turquoise= new Color(0xffd0e040);
Violet= new Color(0xffee82ee);
Wheat= new Color(0xffb3def5);
White= new Color(uint.MaxValue);
WhiteSmoke= new Color(0xfff5f5f5);
Yellow = new Color(0xff00ffff);
YellowGreen = new Color(0xff32cd9a);
}
// Stored as RGBA with R in the least significant octet:
// |-------|-------|-------|-------
// A B G R
private uint _packedValue;
/// <summary>
/// Constructs an RGBA color from a packed value.
/// The value is a 32-bit unsigned integer, with R in the least significant octet.
/// </summary>
/// <param name="packedValue">The packed value.</param>
public Color(uint packedValue)
{
_packedValue = packedValue;
}
/// <summary>
/// Constructs an RGBA color from the XYZW unit length components of a vector.
/// </summary>
/// <param name="color">A <see cref="Vector4"/> representing color.</param>
public Color(Vector4 color)
: this((int)(color.X * 255), (int)(color.Y * 255), (int)(color.Z * 255), (int)(color.W * 255))
{
}
/// <summary>
/// Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.
/// </summary>
/// <param name="color">A <see cref="Vector3"/> representing color.</param>
public Color(Vector3 color)
: this((int)(color.X * 255), (int)(color.Y * 255), (int)(color.Z * 255))
{
}
/// <summary>
/// Constructs an RGBA color from a <see cref="Color"/> and an alpha value.
/// </summary>
/// <param name="color">A <see cref="Color"/> for RGB values of new <see cref="Color"/> instance.</param>
/// <param name="alpha">The alpha component value from 0 to 255.</param>
public Color(Color color, int alpha)
{
if ((alpha & 0xFFFFFF00) != 0)
{
var clampedA = (uint)MathHelper.Clamp(alpha, Byte.MinValue, Byte.MaxValue);
_packedValue = (color._packedValue & 0x00FFFFFF) | (clampedA << 24);
}
else
{
_packedValue = (color._packedValue & 0x00FFFFFF) | ((uint)alpha << 24);
}
}
/// <summary>
/// Constructs an RGBA color from color and alpha value.
/// </summary>
/// <param name="color">A <see cref="Color"/> for RGB values of new <see cref="Color"/> instance.</param>
/// <param name="alpha">Alpha component value from 0.0f to 1.0f.</param>
public Color(Color color, float alpha):
this(color, (int)(alpha * 255))
{
}
/// <summary>
/// Constructs an RGBA color from scalars representing red, green and blue values. Alpha value will be opaque.
/// </summary>
/// <param name="r">Red component value from 0.0f to 1.0f.</param>
/// <param name="g">Green component value from 0.0f to 1.0f.</param>
/// <param name="b">Blue component value from 0.0f to 1.0f.</param>
public Color(float r, float g, float b)
: this((int)(r * 255), (int)(g * 255), (int)(b * 255))
{
}
/// <summary>
/// Constructs an RGBA color from scalars representing red, green, blue and alpha values.
/// </summary>
/// <param name="r">Red component value from 0.0f to 1.0f.</param>
/// <param name="g">Green component value from 0.0f to 1.0f.</param>
/// <param name="b">Blue component value from 0.0f to 1.0f.</param>
/// <param name="alpha">Alpha component value from 0.0f to 1.0f.</param>
public Color(float r, float g, float b, float alpha)
: this((int)(r * 255), (int)(g * 255), (int)(b * 255), (int)(alpha * 255))
{
}
/// <summary>
/// Constructs an RGBA color from scalars representing red, green and blue values. Alpha value will be opaque.
/// </summary>
/// <param name="r">Red component value from 0 to 255.</param>
/// <param name="g">Green component value from 0 to 255.</param>
/// <param name="b">Blue component value from 0 to 255.</param>
public Color(int r, int g, int b)
{
_packedValue = 0xFF000000; // A = 255
if (((r | g | b) & 0xFFFFFF00) != 0)
{
var clampedR = (uint)MathHelper.Clamp(r, Byte.MinValue, Byte.MaxValue);
var clampedG = (uint)MathHelper.Clamp(g, Byte.MinValue, Byte.MaxValue);
var clampedB = (uint)MathHelper.Clamp(b, Byte.MinValue, Byte.MaxValue);
_packedValue |= (clampedB << 16) | (clampedG << 8) | (clampedR);
}
else
{
_packedValue |= ((uint)b << 16) | ((uint)g << 8) | ((uint)r);
}
}
/// <summary>
/// Constructs an RGBA color from scalars representing red, green, blue and alpha values.
/// </summary>
/// <param name="r">Red component value from 0 to 255.</param>
/// <param name="g">Green component value from 0 to 255.</param>
/// <param name="b">Blue component value from 0 to 255.</param>
/// <param name="alpha">Alpha component value from 0 to 255.</param>
public Color(int r, int g, int b, int alpha)
{
if (((r | g | b | alpha) & 0xFFFFFF00) != 0)
{
var clampedR = (uint)MathHelper.Clamp(r, Byte.MinValue, Byte.MaxValue);
var clampedG = (uint)MathHelper.Clamp(g, Byte.MinValue, Byte.MaxValue);
var clampedB = (uint)MathHelper.Clamp(b, Byte.MinValue, Byte.MaxValue);
var clampedA = (uint)MathHelper.Clamp(alpha, Byte.MinValue, Byte.MaxValue);
_packedValue = (clampedA << 24) | (clampedB << 16) | (clampedG << 8) | (clampedR);
}
else
{
_packedValue = ((uint)alpha << 24) | ((uint)b << 16) | ((uint)g << 8) | ((uint)r);
}
}
/// <summary>
/// Constructs an RGBA color from scalars representing red, green, blue and alpha values.
/// </summary>
/// <remarks>
/// This overload sets the values directly without clamping, and may therefore be faster than the other overloads.
/// </remarks>
/// <param name="r"></param>
/// <param name="g"></param>
/// <param name="b"></param>
/// <param name="alpha"></param>
public Color(byte r, byte g, byte b, byte alpha)
{
_packedValue = ((uint)alpha << 24) | ((uint)b << 16) | ((uint)g << 8) | (r);
}
/// <summary>
/// Gets or sets the blue component.
/// </summary>
[DataMember]
public byte B
{
get
{
unchecked
{
return (byte) (this._packedValue >> 16);
}
}
set
{
this._packedValue = (this._packedValue & 0xff00ffff) | ((uint)value << 16);
}
}
/// <summary>
/// Gets or sets the green component.
/// </summary>
[DataMember]
public byte G
{
get
{
unchecked
{
return (byte)(this._packedValue >> 8);
}
}
set
{
this._packedValue = (this._packedValue & 0xffff00ff) | ((uint)value << 8);
}
}
/// <summary>
/// Gets or sets the red component.
/// </summary>
[DataMember]
public byte R
{
get
{
unchecked
{
return (byte) this._packedValue;
}
}
set
{
this._packedValue = (this._packedValue & 0xffffff00) | value;
}
}
/// <summary>
/// Gets or sets the alpha component.
/// </summary>
[DataMember]
public byte A
{
get
{
unchecked
{
return (byte)(this._packedValue >> 24);
}
}
set
{
this._packedValue = (this._packedValue & 0x00ffffff) | ((uint)value << 24);
}
}
/// <summary>
/// Compares whether two <see cref="Color"/> instances are equal.
/// </summary>
/// <param name="a"><see cref="Color"/> instance on the left of the equal sign.</param>
/// <param name="b"><see cref="Color"/> instance on the right of the equal sign.</param>
/// <returns><c>true</c> if the instances are equal; <c>false</c> otherwise.</returns>
public static bool operator ==(Color a, Color b)
{
return (a._packedValue == b._packedValue);
}
/// <summary>
/// Compares whether two <see cref="Color"/> instances are not equal.
/// </summary>
/// <param name="a"><see cref="Color"/> instance on the left of the not equal sign.</param>
/// <param name="b"><see cref="Color"/> instance on the right of the not equal sign.</param>
/// <returns><c>true</c> if the instances are not equal; <c>false</c> otherwise.</returns>
public static bool operator !=(Color a, Color b)
{
return (a._packedValue != b._packedValue);
}
/// <summary>
/// Gets the hash code of this <see cref="Color"/>.
/// </summary>
/// <returns>Hash code of this <see cref="Color"/>.</returns>
public override int GetHashCode()
{
return this._packedValue.GetHashCode();
}
/// <summary>
/// Compares whether current instance is equal to specified object.
/// </summary>
/// <param name="obj">The <see cref="Color"/> to compare.</param>
/// <returns><c>true</c> if the instances are equal; <c>false</c> otherwise.</returns>
public override bool Equals(object obj)
{
return ((obj is Color) && this.Equals((Color)obj));
}
#region Color Bank
/// <summary>
/// Transparent color (R:0,G:0,B:0,A:0).
/// </summary>
public static Color Transparent
{
get;
private set;
}
/// <summary>
/// AliceBlue color (R:240,G:248,B:255,A:255).
/// </summary>
public static Color AliceBlue
{
get;
private set;
}
/// <summary>
/// AntiqueWhite color (R:250,G:235,B:215,A:255).
/// </summary>
public static Color AntiqueWhite
{
get;
private set;
}
/// <summary>
/// Aqua color (R:0,G:255,B:255,A:255).
/// </summary>
public static Color Aqua
{
get;
private set;
}
/// <summary>
/// Aquamarine color (R:127,G:255,B:212,A:255).
/// </summary>
public static Color Aquamarine
{
get;
private set;
}
/// <summary>
/// Azure color (R:240,G:255,B:255,A:255).
/// </summary>
public static Color Azure
{
get;
private set;
}
/// <summary>
/// Beige color (R:245,G:245,B:220,A:255).
/// </summary>
public static Color Beige
{
get;
private set;
}
/// <summary>
/// Bisque color (R:255,G:228,B:196,A:255).
/// </summary>
public static Color Bisque
{
get;
private set;
}
/// <summary>
/// Black color (R:0,G:0,B:0,A:255).
/// </summary>
public static Color Black
{
get;
private set;
}
/// <summary>
/// BlanchedAlmond color (R:255,G:235,B:205,A:255).
/// </summary>
public static Color BlanchedAlmond
{
get;
private set;
}
/// <summary>
/// Blue color (R:0,G:0,B:255,A:255).
/// </summary>
public static Color Blue
{
get;
private set;
}
/// <summary>
/// BlueViolet color (R:138,G:43,B:226,A:255).
/// </summary>
public static Color BlueViolet
{
get;
private set;
}
/// <summary>
/// Brown color (R:165,G:42,B:42,A:255).
/// </summary>
public static Color Brown
{
get;
private set;
}
/// <summary>
/// BurlyWood color (R:222,G:184,B:135,A:255).
/// </summary>
public static Color BurlyWood
{
get;
private set;
}
/// <summary>
/// CadetBlue color (R:95,G:158,B:160,A:255).
/// </summary>
public static Color CadetBlue
{
get;
private set;
}
/// <summary>
/// Chartreuse color (R:127,G:255,B:0,A:255).
/// </summary>
public static Color Chartreuse
{
get;
private set;
}
/// <summary>
/// Chocolate color (R:210,G:105,B:30,A:255).
/// </summary>
public static Color Chocolate
{
get;
private set;
}
/// <summary>
/// Coral color (R:255,G:127,B:80,A:255).
/// </summary>
public static Color Coral
{
get;
private set;
}
/// <summary>
/// CornflowerBlue color (R:100,G:149,B:237,A:255).
/// </summary>
public static Color CornflowerBlue
{
get;
private set;
}
/// <summary>
/// Cornsilk color (R:255,G:248,B:220,A:255).
/// </summary>
public static Color Cornsilk
{
get;
private set;
}
/// <summary>
/// Crimson color (R:220,G:20,B:60,A:255).
/// </summary>
public static Color Crimson
{
get;
private set;
}
/// <summary>
/// Cyan color (R:0,G:255,B:255,A:255).
/// </summary>
public static Color Cyan
{
get;
private set;
}
/// <summary>
/// DarkBlue color (R:0,G:0,B:139,A:255).
/// </summary>
public static Color DarkBlue
{
get;
private set;
}
/// <summary>
/// DarkCyan color (R:0,G:139,B:139,A:255).
/// </summary>
public static Color DarkCyan
{
get;
private set;
}
/// <summary>
/// DarkGoldenrod color (R:184,G:134,B:11,A:255).
/// </summary>
public static Color DarkGoldenrod
{
get;
private set;
}
/// <summary>
/// DarkGray color (R:169,G:169,B:169,A:255).
/// </summary>
public static Color DarkGray
{
get;
private set;
}
/// <summary>
/// DarkGreen color (R:0,G:100,B:0,A:255).
/// </summary>
public static Color DarkGreen
{
get;
private set;
}
/// <summary>
/// DarkKhaki color (R:189,G:183,B:107,A:255).
/// </summary>
public static Color DarkKhaki
{
get;
private set;
}
/// <summary>
/// DarkMagenta color (R:139,G:0,B:139,A:255).
/// </summary>
public static Color DarkMagenta
{
get;
private set;
}
/// <summary>
/// DarkOliveGreen color (R:85,G:107,B:47,A:255).
/// </summary>
public static Color DarkOliveGreen
{
get;
private set;
}
/// <summary>
/// DarkOrange color (R:255,G:140,B:0,A:255).
/// </summary>
public static Color DarkOrange
{
get;
private set;
}
/// <summary>
/// DarkOrchid color (R:153,G:50,B:204,A:255).
/// </summary>
public static Color DarkOrchid
{
get;
private set;
}
/// <summary>
/// DarkRed color (R:139,G:0,B:0,A:255).
/// </summary>
public static Color DarkRed
{
get;
private set;
}
/// <summary>
/// DarkSalmon color (R:233,G:150,B:122,A:255).
/// </summary>
public static Color DarkSalmon
{
get;
private set;
}
/// <summary>
/// DarkSeaGreen color (R:143,G:188,B:139,A:255).
/// </summary>
public static Color DarkSeaGreen
{
get;
private set;
}
/// <summary>
/// DarkSlateBlue color (R:72,G:61,B:139,A:255).
/// </summary>
public static Color DarkSlateBlue
{
get;
private set;
}
/// <summary>
/// DarkSlateGray color (R:47,G:79,B:79,A:255).
/// </summary>
public static Color DarkSlateGray
{
get;
private set;
}
/// <summary>
/// DarkTurquoise color (R:0,G:206,B:209,A:255).
/// </summary>
public static Color DarkTurquoise
{
get;
private set;
}
/// <summary>
/// DarkViolet color (R:148,G:0,B:211,A:255).
/// </summary>
public static Color DarkViolet
{
get;
private set;
}
/// <summary>
/// DeepPink color (R:255,G:20,B:147,A:255).
/// </summary>
public static Color DeepPink
{
get;
private set;
}
/// <summary>
/// DeepSkyBlue color (R:0,G:191,B:255,A:255).
/// </summary>
public static Color DeepSkyBlue
{
get;
private set;
}
/// <summary>
/// DimGray color (R:105,G:105,B:105,A:255).
/// </summary>
public static Color DimGray
{
get;
private set;
}
/// <summary>
/// DodgerBlue color (R:30,G:144,B:255,A:255).
/// </summary>
public static Color DodgerBlue
{
get;
private set;
}
/// <summary>
/// Firebrick color (R:178,G:34,B:34,A:255).
/// </summary>
public static Color Firebrick
{
get;
private set;
}
/// <summary>
/// FloralWhite color (R:255,G:250,B:240,A:255).
/// </summary>
public static Color FloralWhite
{
get;
private set;
}
/// <summary>
/// ForestGreen color (R:34,G:139,B:34,A:255).
/// </summary>
public static Color ForestGreen
{
get;
private set;
}
/// <summary>
/// Fuchsia color (R:255,G:0,B:255,A:255).
/// </summary>
public static Color Fuchsia
{
get;
private set;
}
/// <summary>
/// Gainsboro color (R:220,G:220,B:220,A:255).
/// </summary>
public static Color Gainsboro
{
get;
private set;
}
/// <summary>
/// GhostWhite color (R:248,G:248,B:255,A:255).
/// </summary>
public static Color GhostWhite
{
get;
private set;
}
/// <summary>
/// Gold color (R:255,G:215,B:0,A:255).
/// </summary>
public static Color Gold
{
get;
private set;
}
/// <summary>
/// Goldenrod color (R:218,G:165,B:32,A:255).
/// </summary>
public static Color Goldenrod
{
get;
private set;
}
/// <summary>
/// Gray color (R:128,G:128,B:128,A:255).
/// </summary>
public static Color Gray
{
get;
private set;
}
/// <summary>
/// Green color (R:0,G:128,B:0,A:255).
/// </summary>
public static Color Green
{
get;
private set;
}
/// <summary>
/// GreenYellow color (R:173,G:255,B:47,A:255).
/// </summary>
public static Color GreenYellow
{
get;
private set;
}
/// <summary>
/// Honeydew color (R:240,G:255,B:240,A:255).
/// </summary>
public static Color Honeydew
{
get;
private set;
}
/// <summary>
/// HotPink color (R:255,G:105,B:180,A:255).
/// </summary>
public static Color HotPink
{
get;
private set;
}
/// <summary>
/// IndianRed color (R:205,G:92,B:92,A:255).
/// </summary>
public static Color IndianRed
{
get;
private set;
}
/// <summary>
/// Indigo color (R:75,G:0,B:130,A:255).
/// </summary>
public static Color Indigo
{
get;
private set;
}
/// <summary>
/// Ivory color (R:255,G:255,B:240,A:255).
/// </summary>
public static Color Ivory
{
get;
private set;
}
/// <summary>
/// Khaki color (R:240,G:230,B:140,A:255).
/// </summary>
public static Color Khaki
{
get;
private set;
}
/// <summary>
/// Lavender color (R:230,G:230,B:250,A:255).
/// </summary>
public static Color Lavender
{
get;
private set;
}
/// <summary>
/// LavenderBlush color (R:255,G:240,B:245,A:255).
/// </summary>
public static Color LavenderBlush
{
get;
private set;
}
/// <summary>
/// LawnGreen color (R:124,G:252,B:0,A:255).
/// </summary>
public static Color LawnGreen
{
get;
private set;
}
/// <summary>
/// LemonChiffon color (R:255,G:250,B:205,A:255).