|
|
|
@ -1,6 +1,8 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp; |
|
|
|
|
|
|
|
/// <content>
|
|
|
|
@ -9,107 +11,107 @@ namespace SixLabors.ImageSharp; |
|
|
|
/// </content>
|
|
|
|
public readonly partial struct Color |
|
|
|
{ |
|
|
|
private static readonly Lazy<Dictionary<string, Color>> NamedColorsLookupLazy = new Lazy<Dictionary<string, Color>>(CreateNamedColorsLookup, true); |
|
|
|
private static readonly Lazy<Dictionary<string, Color>> NamedColorsLookupLazy = new(CreateNamedColorsLookup, true); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F0F8FF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color AliceBlue = FromRgba(240, 248, 255, 255); |
|
|
|
public static readonly Color AliceBlue = FromPixel(new Rgba32(240, 248, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FAEBD7.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color AntiqueWhite = FromRgba(250, 235, 215, 255); |
|
|
|
public static readonly Color AntiqueWhite = FromPixel(new Rgba32(250, 235, 215, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00FFFF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Aqua = FromRgba(0, 255, 255, 255); |
|
|
|
public static readonly Color Aqua = FromPixel(new Rgba32(0, 255, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #7FFFD4.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Aquamarine = FromRgba(127, 255, 212, 255); |
|
|
|
public static readonly Color Aquamarine = FromPixel(new Rgba32(127, 255, 212, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F0FFFF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Azure = FromRgba(240, 255, 255, 255); |
|
|
|
public static readonly Color Azure = FromPixel(new Rgba32(240, 255, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F5F5DC.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Beige = FromRgba(245, 245, 220, 255); |
|
|
|
public static readonly Color Beige = FromPixel(new Rgba32(245, 245, 220, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFE4C4.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Bisque = FromRgba(255, 228, 196, 255); |
|
|
|
public static readonly Color Bisque = FromPixel(new Rgba32(255, 228, 196, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #000000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Black = FromRgba(0, 0, 0, 255); |
|
|
|
public static readonly Color Black = FromPixel(new Rgba32(0, 0, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFEBCD.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color BlanchedAlmond = FromRgba(255, 235, 205, 255); |
|
|
|
public static readonly Color BlanchedAlmond = FromPixel(new Rgba32(255, 235, 205, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #0000FF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Blue = FromRgba(0, 0, 255, 255); |
|
|
|
public static readonly Color Blue = FromPixel(new Rgba32(0, 0, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #8A2BE2.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color BlueViolet = FromRgba(138, 43, 226, 255); |
|
|
|
public static readonly Color BlueViolet = FromPixel(new Rgba32(138, 43, 226, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #A52A2A.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Brown = FromRgba(165, 42, 42, 255); |
|
|
|
public static readonly Color Brown = FromPixel(new Rgba32(165, 42, 42, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DEB887.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color BurlyWood = FromRgba(222, 184, 135, 255); |
|
|
|
public static readonly Color BurlyWood = FromPixel(new Rgba32(222, 184, 135, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #5F9EA0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color CadetBlue = FromRgba(95, 158, 160, 255); |
|
|
|
public static readonly Color CadetBlue = FromPixel(new Rgba32(95, 158, 160, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #7FFF00.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Chartreuse = FromRgba(127, 255, 0, 255); |
|
|
|
public static readonly Color Chartreuse = FromPixel(new Rgba32(127, 255, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #D2691E.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Chocolate = FromRgba(210, 105, 30, 255); |
|
|
|
public static readonly Color Chocolate = FromPixel(new Rgba32(210, 105, 30, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF7F50.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Coral = FromRgba(255, 127, 80, 255); |
|
|
|
public static readonly Color Coral = FromPixel(new Rgba32(255, 127, 80, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #6495ED.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color CornflowerBlue = FromRgba(100, 149, 237, 255); |
|
|
|
public static readonly Color CornflowerBlue = FromPixel(new Rgba32(100, 149, 237, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFF8DC.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Cornsilk = FromRgba(255, 248, 220, 255); |
|
|
|
public static readonly Color Cornsilk = FromPixel(new Rgba32(255, 248, 220, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DC143C.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Crimson = FromRgba(220, 20, 60, 255); |
|
|
|
public static readonly Color Crimson = FromPixel(new Rgba32(220, 20, 60, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00FFFF.
|
|
|
|
@ -119,27 +121,27 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00008B.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkBlue = FromRgba(0, 0, 139, 255); |
|
|
|
public static readonly Color DarkBlue = FromPixel(new Rgba32(0, 0, 139, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #008B8B.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkCyan = FromRgba(0, 139, 139, 255); |
|
|
|
public static readonly Color DarkCyan = FromPixel(new Rgba32(0, 139, 139, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #B8860B.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkGoldenrod = FromRgba(184, 134, 11, 255); |
|
|
|
public static readonly Color DarkGoldenrod = FromPixel(new Rgba32(184, 134, 11, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #A9A9A9.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkGray = FromRgba(169, 169, 169, 255); |
|
|
|
public static readonly Color DarkGray = FromPixel(new Rgba32(169, 169, 169, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #006400.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkGreen = FromRgba(0, 100, 0, 255); |
|
|
|
public static readonly Color DarkGreen = FromPixel(new Rgba32(0, 100, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #A9A9A9.
|
|
|
|
@ -149,52 +151,52 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #BDB76B.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkKhaki = FromRgba(189, 183, 107, 255); |
|
|
|
public static readonly Color DarkKhaki = FromPixel(new Rgba32(189, 183, 107, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #8B008B.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkMagenta = FromRgba(139, 0, 139, 255); |
|
|
|
public static readonly Color DarkMagenta = FromPixel(new Rgba32(139, 0, 139, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #556B2F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkOliveGreen = FromRgba(85, 107, 47, 255); |
|
|
|
public static readonly Color DarkOliveGreen = FromPixel(new Rgba32(85, 107, 47, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF8C00.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkOrange = FromRgba(255, 140, 0, 255); |
|
|
|
public static readonly Color DarkOrange = FromPixel(new Rgba32(255, 140, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #9932CC.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkOrchid = FromRgba(153, 50, 204, 255); |
|
|
|
public static readonly Color DarkOrchid = FromPixel(new Rgba32(153, 50, 204, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #8B0000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkRed = FromRgba(139, 0, 0, 255); |
|
|
|
public static readonly Color DarkRed = FromPixel(new Rgba32(139, 0, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #E9967A.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkSalmon = FromRgba(233, 150, 122, 255); |
|
|
|
public static readonly Color DarkSalmon = FromPixel(new Rgba32(233, 150, 122, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #8FBC8F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkSeaGreen = FromRgba(143, 188, 143, 255); |
|
|
|
public static readonly Color DarkSeaGreen = FromPixel(new Rgba32(143, 188, 143, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #483D8B.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkSlateBlue = FromRgba(72, 61, 139, 255); |
|
|
|
public static readonly Color DarkSlateBlue = FromPixel(new Rgba32(72, 61, 139, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #2F4F4F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkSlateGray = FromRgba(47, 79, 79, 255); |
|
|
|
public static readonly Color DarkSlateGray = FromPixel(new Rgba32(47, 79, 79, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #2F4F4F.
|
|
|
|
@ -204,27 +206,27 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00CED1.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkTurquoise = FromRgba(0, 206, 209, 255); |
|
|
|
public static readonly Color DarkTurquoise = FromPixel(new Rgba32(0, 206, 209, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #9400D3.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DarkViolet = FromRgba(148, 0, 211, 255); |
|
|
|
public static readonly Color DarkViolet = FromPixel(new Rgba32(148, 0, 211, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF1493.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DeepPink = FromRgba(255, 20, 147, 255); |
|
|
|
public static readonly Color DeepPink = FromPixel(new Rgba32(255, 20, 147, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00BFFF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DeepSkyBlue = FromRgba(0, 191, 255, 255); |
|
|
|
public static readonly Color DeepSkyBlue = FromPixel(new Rgba32(0, 191, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #696969.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DimGray = FromRgba(105, 105, 105, 255); |
|
|
|
public static readonly Color DimGray = FromPixel(new Rgba32(105, 105, 105, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #696969.
|
|
|
|
@ -234,62 +236,62 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #1E90FF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color DodgerBlue = FromRgba(30, 144, 255, 255); |
|
|
|
public static readonly Color DodgerBlue = FromPixel(new Rgba32(30, 144, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #B22222.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Firebrick = FromRgba(178, 34, 34, 255); |
|
|
|
public static readonly Color Firebrick = FromPixel(new Rgba32(178, 34, 34, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFAF0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color FloralWhite = FromRgba(255, 250, 240, 255); |
|
|
|
public static readonly Color FloralWhite = FromPixel(new Rgba32(255, 250, 240, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #228B22.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color ForestGreen = FromRgba(34, 139, 34, 255); |
|
|
|
public static readonly Color ForestGreen = FromPixel(new Rgba32(34, 139, 34, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF00FF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Fuchsia = FromRgba(255, 0, 255, 255); |
|
|
|
public static readonly Color Fuchsia = FromPixel(new Rgba32(255, 0, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DCDCDC.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Gainsboro = FromRgba(220, 220, 220, 255); |
|
|
|
public static readonly Color Gainsboro = FromPixel(new Rgba32(220, 220, 220, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F8F8FF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color GhostWhite = FromRgba(248, 248, 255, 255); |
|
|
|
public static readonly Color GhostWhite = FromPixel(new Rgba32(248, 248, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFD700.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Gold = FromRgba(255, 215, 0, 255); |
|
|
|
public static readonly Color Gold = FromPixel(new Rgba32(255, 215, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DAA520.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Goldenrod = FromRgba(218, 165, 32, 255); |
|
|
|
public static readonly Color Goldenrod = FromPixel(new Rgba32(218, 165, 32, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #808080.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Gray = FromRgba(128, 128, 128, 255); |
|
|
|
public static readonly Color Gray = FromPixel(new Rgba32(128, 128, 128, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #008000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Green = FromRgba(0, 128, 0, 255); |
|
|
|
public static readonly Color Green = FromPixel(new Rgba32(0, 128, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #ADFF2F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color GreenYellow = FromRgba(173, 255, 47, 255); |
|
|
|
public static readonly Color GreenYellow = FromPixel(new Rgba32(173, 255, 47, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #808080.
|
|
|
|
@ -299,82 +301,82 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F0FFF0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Honeydew = FromRgba(240, 255, 240, 255); |
|
|
|
public static readonly Color Honeydew = FromPixel(new Rgba32(240, 255, 240, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF69B4.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color HotPink = FromRgba(255, 105, 180, 255); |
|
|
|
public static readonly Color HotPink = FromPixel(new Rgba32(255, 105, 180, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #CD5C5C.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color IndianRed = FromRgba(205, 92, 92, 255); |
|
|
|
public static readonly Color IndianRed = FromPixel(new Rgba32(205, 92, 92, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #4B0082.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Indigo = FromRgba(75, 0, 130, 255); |
|
|
|
public static readonly Color Indigo = FromPixel(new Rgba32(75, 0, 130, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFFF0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Ivory = FromRgba(255, 255, 240, 255); |
|
|
|
public static readonly Color Ivory = FromPixel(new Rgba32(255, 255, 240, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F0E68C.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Khaki = FromRgba(240, 230, 140, 255); |
|
|
|
public static readonly Color Khaki = FromPixel(new Rgba32(240, 230, 140, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #E6E6FA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Lavender = FromRgba(230, 230, 250, 255); |
|
|
|
public static readonly Color Lavender = FromPixel(new Rgba32(230, 230, 250, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFF0F5.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LavenderBlush = FromRgba(255, 240, 245, 255); |
|
|
|
public static readonly Color LavenderBlush = FromPixel(new Rgba32(255, 240, 245, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #7CFC00.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LawnGreen = FromRgba(124, 252, 0, 255); |
|
|
|
public static readonly Color LawnGreen = FromPixel(new Rgba32(124, 252, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFACD.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LemonChiffon = FromRgba(255, 250, 205, 255); |
|
|
|
public static readonly Color LemonChiffon = FromPixel(new Rgba32(255, 250, 205, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #ADD8E6.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightBlue = FromRgba(173, 216, 230, 255); |
|
|
|
public static readonly Color LightBlue = FromPixel(new Rgba32(173, 216, 230, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F08080.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightCoral = FromRgba(240, 128, 128, 255); |
|
|
|
public static readonly Color LightCoral = FromPixel(new Rgba32(240, 128, 128, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #E0FFFF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightCyan = FromRgba(224, 255, 255, 255); |
|
|
|
public static readonly Color LightCyan = FromPixel(new Rgba32(224, 255, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FAFAD2.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightGoldenrodYellow = FromRgba(250, 250, 210, 255); |
|
|
|
public static readonly Color LightGoldenrodYellow = FromPixel(new Rgba32(250, 250, 210, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #D3D3D3.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightGray = FromRgba(211, 211, 211, 255); |
|
|
|
public static readonly Color LightGray = FromPixel(new Rgba32(211, 211, 211, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #90EE90.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightGreen = FromRgba(144, 238, 144, 255); |
|
|
|
public static readonly Color LightGreen = FromPixel(new Rgba32(144, 238, 144, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #D3D3D3.
|
|
|
|
@ -384,27 +386,27 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFB6C1.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightPink = FromRgba(255, 182, 193, 255); |
|
|
|
public static readonly Color LightPink = FromPixel(new Rgba32(255, 182, 193, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFA07A.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightSalmon = FromRgba(255, 160, 122, 255); |
|
|
|
public static readonly Color LightSalmon = FromPixel(new Rgba32(255, 160, 122, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #20B2AA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightSeaGreen = FromRgba(32, 178, 170, 255); |
|
|
|
public static readonly Color LightSeaGreen = FromPixel(new Rgba32(32, 178, 170, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #87CEFA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightSkyBlue = FromRgba(135, 206, 250, 255); |
|
|
|
public static readonly Color LightSkyBlue = FromPixel(new Rgba32(135, 206, 250, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #778899.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightSlateGray = FromRgba(119, 136, 153, 255); |
|
|
|
public static readonly Color LightSlateGray = FromPixel(new Rgba32(119, 136, 153, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #778899.
|
|
|
|
@ -414,27 +416,27 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #B0C4DE.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightSteelBlue = FromRgba(176, 196, 222, 255); |
|
|
|
public static readonly Color LightSteelBlue = FromPixel(new Rgba32(176, 196, 222, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFFE0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LightYellow = FromRgba(255, 255, 224, 255); |
|
|
|
public static readonly Color LightYellow = FromPixel(new Rgba32(255, 255, 224, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00FF00.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Lime = FromRgba(0, 255, 0, 255); |
|
|
|
public static readonly Color Lime = FromPixel(new Rgba32(0, 255, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #32CD32.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color LimeGreen = FromRgba(50, 205, 50, 255); |
|
|
|
public static readonly Color LimeGreen = FromPixel(new Rgba32(50, 205, 50, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FAF0E6.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Linen = FromRgba(250, 240, 230, 255); |
|
|
|
public static readonly Color Linen = FromPixel(new Rgba32(250, 240, 230, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF00FF.
|
|
|
|
@ -444,237 +446,237 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #800000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Maroon = FromRgba(128, 0, 0, 255); |
|
|
|
public static readonly Color Maroon = FromPixel(new Rgba32(128, 0, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #66CDAA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumAquamarine = FromRgba(102, 205, 170, 255); |
|
|
|
public static readonly Color MediumAquamarine = FromPixel(new Rgba32(102, 205, 170, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #0000CD.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumBlue = FromRgba(0, 0, 205, 255); |
|
|
|
public static readonly Color MediumBlue = FromPixel(new Rgba32(0, 0, 205, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #BA55D3.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumOrchid = FromRgba(186, 85, 211, 255); |
|
|
|
public static readonly Color MediumOrchid = FromPixel(new Rgba32(186, 85, 211, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #9370DB.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumPurple = FromRgba(147, 112, 219, 255); |
|
|
|
public static readonly Color MediumPurple = FromPixel(new Rgba32(147, 112, 219, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #3CB371.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumSeaGreen = FromRgba(60, 179, 113, 255); |
|
|
|
public static readonly Color MediumSeaGreen = FromPixel(new Rgba32(60, 179, 113, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #7B68EE.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumSlateBlue = FromRgba(123, 104, 238, 255); |
|
|
|
public static readonly Color MediumSlateBlue = FromPixel(new Rgba32(123, 104, 238, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00FA9A.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumSpringGreen = FromRgba(0, 250, 154, 255); |
|
|
|
public static readonly Color MediumSpringGreen = FromPixel(new Rgba32(0, 250, 154, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #48D1CC.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumTurquoise = FromRgba(72, 209, 204, 255); |
|
|
|
public static readonly Color MediumTurquoise = FromPixel(new Rgba32(72, 209, 204, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #C71585.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MediumVioletRed = FromRgba(199, 21, 133, 255); |
|
|
|
public static readonly Color MediumVioletRed = FromPixel(new Rgba32(199, 21, 133, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #191970.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MidnightBlue = FromRgba(25, 25, 112, 255); |
|
|
|
public static readonly Color MidnightBlue = FromPixel(new Rgba32(25, 25, 112, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F5FFFA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MintCream = FromRgba(245, 255, 250, 255); |
|
|
|
public static readonly Color MintCream = FromPixel(new Rgba32(245, 255, 250, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFE4E1.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color MistyRose = FromRgba(255, 228, 225, 255); |
|
|
|
public static readonly Color MistyRose = FromPixel(new Rgba32(255, 228, 225, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFE4B5.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Moccasin = FromRgba(255, 228, 181, 255); |
|
|
|
public static readonly Color Moccasin = FromPixel(new Rgba32(255, 228, 181, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFDEAD.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color NavajoWhite = FromRgba(255, 222, 173, 255); |
|
|
|
public static readonly Color NavajoWhite = FromPixel(new Rgba32(255, 222, 173, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #000080.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Navy = FromRgba(0, 0, 128, 255); |
|
|
|
public static readonly Color Navy = FromPixel(new Rgba32(0, 0, 128, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FDF5E6.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color OldLace = FromRgba(253, 245, 230, 255); |
|
|
|
public static readonly Color OldLace = FromPixel(new Rgba32(253, 245, 230, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #808000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Olive = FromRgba(128, 128, 0, 255); |
|
|
|
public static readonly Color Olive = FromPixel(new Rgba32(128, 128, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #6B8E23.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color OliveDrab = FromRgba(107, 142, 35, 255); |
|
|
|
public static readonly Color OliveDrab = FromPixel(new Rgba32(107, 142, 35, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFA500.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Orange = FromRgba(255, 165, 0, 255); |
|
|
|
public static readonly Color Orange = FromPixel(new Rgba32(255, 165, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF4500.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color OrangeRed = FromRgba(255, 69, 0, 255); |
|
|
|
public static readonly Color OrangeRed = FromPixel(new Rgba32(255, 69, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DA70D6.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Orchid = FromRgba(218, 112, 214, 255); |
|
|
|
public static readonly Color Orchid = FromPixel(new Rgba32(218, 112, 214, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #EEE8AA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PaleGoldenrod = FromRgba(238, 232, 170, 255); |
|
|
|
public static readonly Color PaleGoldenrod = FromPixel(new Rgba32(238, 232, 170, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #98FB98.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PaleGreen = FromRgba(152, 251, 152, 255); |
|
|
|
public static readonly Color PaleGreen = FromPixel(new Rgba32(152, 251, 152, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #AFEEEE.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PaleTurquoise = FromRgba(175, 238, 238, 255); |
|
|
|
public static readonly Color PaleTurquoise = FromPixel(new Rgba32(175, 238, 238, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DB7093.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PaleVioletRed = FromRgba(219, 112, 147, 255); |
|
|
|
public static readonly Color PaleVioletRed = FromPixel(new Rgba32(219, 112, 147, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFEFD5.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PapayaWhip = FromRgba(255, 239, 213, 255); |
|
|
|
public static readonly Color PapayaWhip = FromPixel(new Rgba32(255, 239, 213, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFDAB9.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PeachPuff = FromRgba(255, 218, 185, 255); |
|
|
|
public static readonly Color PeachPuff = FromPixel(new Rgba32(255, 218, 185, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #CD853F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Peru = FromRgba(205, 133, 63, 255); |
|
|
|
public static readonly Color Peru = FromPixel(new Rgba32(205, 133, 63, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFC0CB.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Pink = FromRgba(255, 192, 203, 255); |
|
|
|
public static readonly Color Pink = FromPixel(new Rgba32(255, 192, 203, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #DDA0DD.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Plum = FromRgba(221, 160, 221, 255); |
|
|
|
public static readonly Color Plum = FromPixel(new Rgba32(221, 160, 221, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #B0E0E6.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color PowderBlue = FromRgba(176, 224, 230, 255); |
|
|
|
public static readonly Color PowderBlue = FromPixel(new Rgba32(176, 224, 230, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #800080.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Purple = FromRgba(128, 0, 128, 255); |
|
|
|
public static readonly Color Purple = FromPixel(new Rgba32(128, 0, 128, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #663399.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color RebeccaPurple = FromRgba(102, 51, 153, 255); |
|
|
|
public static readonly Color RebeccaPurple = FromPixel(new Rgba32(102, 51, 153, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF0000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Red = FromRgba(255, 0, 0, 255); |
|
|
|
public static readonly Color Red = FromPixel(new Rgba32(255, 0, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #BC8F8F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color RosyBrown = FromRgba(188, 143, 143, 255); |
|
|
|
public static readonly Color RosyBrown = FromPixel(new Rgba32(188, 143, 143, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #4169E1.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color RoyalBlue = FromRgba(65, 105, 225, 255); |
|
|
|
public static readonly Color RoyalBlue = FromPixel(new Rgba32(65, 105, 225, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #8B4513.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SaddleBrown = FromRgba(139, 69, 19, 255); |
|
|
|
public static readonly Color SaddleBrown = FromPixel(new Rgba32(139, 69, 19, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FA8072.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Salmon = FromRgba(250, 128, 114, 255); |
|
|
|
public static readonly Color Salmon = FromPixel(new Rgba32(250, 128, 114, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F4A460.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SandyBrown = FromRgba(244, 164, 96, 255); |
|
|
|
public static readonly Color SandyBrown = FromPixel(new Rgba32(244, 164, 96, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #2E8B57.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SeaGreen = FromRgba(46, 139, 87, 255); |
|
|
|
public static readonly Color SeaGreen = FromPixel(new Rgba32(46, 139, 87, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFF5EE.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SeaShell = FromRgba(255, 245, 238, 255); |
|
|
|
public static readonly Color SeaShell = FromPixel(new Rgba32(255, 245, 238, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #A0522D.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Sienna = FromRgba(160, 82, 45, 255); |
|
|
|
public static readonly Color Sienna = FromPixel(new Rgba32(160, 82, 45, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #C0C0C0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Silver = FromRgba(192, 192, 192, 255); |
|
|
|
public static readonly Color Silver = FromPixel(new Rgba32(192, 192, 192, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #87CEEB.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SkyBlue = FromRgba(135, 206, 235, 255); |
|
|
|
public static readonly Color SkyBlue = FromPixel(new Rgba32(135, 206, 235, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #6A5ACD.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SlateBlue = FromRgba(106, 90, 205, 255); |
|
|
|
public static readonly Color SlateBlue = FromPixel(new Rgba32(106, 90, 205, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #708090.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SlateGray = FromRgba(112, 128, 144, 255); |
|
|
|
public static readonly Color SlateGray = FromPixel(new Rgba32(112, 128, 144, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #708090.
|
|
|
|
@ -684,81 +686,80 @@ public readonly partial struct Color |
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFAFA.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Snow = FromRgba(255, 250, 250, 255); |
|
|
|
public static readonly Color Snow = FromPixel(new Rgba32(255, 250, 250, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00FF7F.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SpringGreen = FromRgba(0, 255, 127, 255); |
|
|
|
public static readonly Color SpringGreen = FromPixel(new Rgba32(0, 255, 127, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #4682B4.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color SteelBlue = FromRgba(70, 130, 180, 255); |
|
|
|
public static readonly Color SteelBlue = FromPixel(new Rgba32(70, 130, 180, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #D2B48C.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Tan = FromRgba(210, 180, 140, 255); |
|
|
|
public static readonly Color Tan = FromPixel(new Rgba32(210, 180, 140, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #008080.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Teal = FromRgba(0, 128, 128, 255); |
|
|
|
public static readonly Color Teal = FromPixel(new Rgba32(0, 128, 128, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #D8BFD8.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Thistle = FromRgba(216, 191, 216, 255); |
|
|
|
public static readonly Color Thistle = FromPixel(new Rgba32(216, 191, 216, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FF6347.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Tomato = FromRgba(255, 99, 71, 255); |
|
|
|
public static readonly Color Tomato = FromPixel(new Rgba32(255, 99, 71, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #00000000.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Transparent = FromRgba(0, 0, 0, 0); |
|
|
|
public static readonly Color Transparent = FromPixel(new Rgba32(0, 0, 0, 0)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #40E0D0.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Turquoise = FromRgba(64, 224, 208, 255); |
|
|
|
public static readonly Color Turquoise = FromPixel(new Rgba32(64, 224, 208, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #EE82EE.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Violet = FromRgba(238, 130, 238, 255); |
|
|
|
public static readonly Color Violet = FromPixel(new Rgba32(238, 130, 238, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F5DEB3.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Wheat = FromRgba(245, 222, 179, 255); |
|
|
|
public static readonly Color Wheat = FromPixel(new Rgba32(245, 222, 179, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color White = FromRgba(255, 255, 255, 255); |
|
|
|
public static readonly Color White = FromPixel(new Rgba32(255, 255, 255, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #F5F5F5.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color WhiteSmoke = FromRgba(245, 245, 245, 255); |
|
|
|
public static readonly Color WhiteSmoke = FromPixel(new Rgba32(245, 245, 245, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #FFFF00.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color Yellow = FromRgba(255, 255, 0, 255); |
|
|
|
public static readonly Color Yellow = FromPixel(new Rgba32(255, 255, 0, 255)); |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Represents a <see paramref="Color"/> matching the W3C definition that has an hex value of #9ACD32.
|
|
|
|
/// </summary>
|
|
|
|
public static readonly Color YellowGreen = FromRgba(154, 205, 50, 255); |
|
|
|
public static readonly Color YellowGreen = FromPixel(new Rgba32(154, 205, 50, 255)); |
|
|
|
|
|
|
|
private static Dictionary<string, Color> CreateNamedColorsLookup() |
|
|
|
{ |
|
|
|
return new Dictionary<string, Color>(StringComparer.OrdinalIgnoreCase) |
|
|
|
=> new(StringComparer.OrdinalIgnoreCase) |
|
|
|
{ |
|
|
|
{ nameof(AliceBlue), AliceBlue }, |
|
|
|
{ nameof(AntiqueWhite), AntiqueWhite }, |
|
|
|
@ -910,5 +911,4 @@ public readonly partial struct Color |
|
|
|
{ nameof(Yellow), Yellow }, |
|
|
|
{ nameof(YellowGreen), YellowGreen } |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|