From 8425cae737ed8b9f29f8efc3ee94ada159fe5920 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Sat, 11 May 2019 13:57:21 +0200 Subject: [PATCH] More docs for Color, correct naming in ColorBuilder --- src/ImageSharp/Color/Color.cs | 8 +- .../PixelFormats/ColorBuilder{TPixel}.cs | 4 +- .../PixelFormats/NamedColors{TPixel}.cs | 284 +++++++++--------- 3 files changed, 151 insertions(+), 145 deletions(-) diff --git a/src/ImageSharp/Color/Color.cs b/src/ImageSharp/Color/Color.cs index 94b5dde2ee..f2f8578d83 100644 --- a/src/ImageSharp/Color/Color.cs +++ b/src/ImageSharp/Color/Color.cs @@ -12,8 +12,14 @@ using SixLabors.ImageSharp.PixelFormats; namespace SixLabors.ImageSharp { /// - /// Represents a color value that is convertible to all implementations. + /// Represents a color value that is convertible to any type. /// + /// + /// The internal representation and layout of this structure is hidden by intention. + /// It's not serializable, and it should not be considered as part of a contract. + /// Unlike System.Drawing.Color, has to be converted to a specific pixel value + /// to query the color components. + /// public readonly partial struct Color : IEquatable { private readonly Rgba64 data; diff --git a/src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs b/src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs index 2572b32933..c1fb13e4da 100644 --- a/src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs +++ b/src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs @@ -47,7 +47,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// The green intensity. /// The blue intensity. /// Returns a that represents the color defined by the provided RGB values with 100% opacity. - public static TPixel FromRGB(byte red, byte green, byte blue) => FromRGBA(red, green, blue, 255); + public static TPixel FromRgb(byte red, byte green, byte blue) => FromRgba(red, green, blue, 255); /// /// Creates a new representation from standard RGBA bytes. @@ -57,7 +57,7 @@ namespace SixLabors.ImageSharp.PixelFormats /// The blue intensity. /// The alpha intensity. /// Returns a that represents the color defined by the provided RGBA values. - public static TPixel FromRGBA(byte red, byte green, byte blue, byte alpha) + public static TPixel FromRgba(byte red, byte green, byte blue, byte alpha) { TPixel color = default; color.FromRgba32(new Rgba32(red, green, blue, alpha)); diff --git a/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs index 7e093de042..2138e2e2f7 100644 --- a/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs +++ b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs @@ -22,712 +22,712 @@ namespace SixLabors.ImageSharp.PixelFormats /// /// Represents a matching the W3C definition that has an hex value of #F0F8FF. /// - public static readonly TPixel AliceBlue = ColorBuilder.FromRGBA(240, 248, 255, 255); + public static readonly TPixel AliceBlue = ColorBuilder.FromRgba(240, 248, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #FAEBD7. /// - public static readonly TPixel AntiqueWhite = ColorBuilder.FromRGBA(250, 235, 215, 255); + public static readonly TPixel AntiqueWhite = ColorBuilder.FromRgba(250, 235, 215, 255); /// /// Represents a matching the W3C definition that has an hex value of #00FFFF. /// - public static readonly TPixel Aqua = ColorBuilder.FromRGBA(0, 255, 255, 255); + public static readonly TPixel Aqua = ColorBuilder.FromRgba(0, 255, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #7FFFD4. /// - public static readonly TPixel Aquamarine = ColorBuilder.FromRGBA(127, 255, 212, 255); + public static readonly TPixel Aquamarine = ColorBuilder.FromRgba(127, 255, 212, 255); /// /// Represents a matching the W3C definition that has an hex value of #F0FFFF. /// - public static readonly TPixel Azure = ColorBuilder.FromRGBA(240, 255, 255, 255); + public static readonly TPixel Azure = ColorBuilder.FromRgba(240, 255, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #F5F5DC. /// - public static readonly TPixel Beige = ColorBuilder.FromRGBA(245, 245, 220, 255); + public static readonly TPixel Beige = ColorBuilder.FromRgba(245, 245, 220, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFE4C4. /// - public static readonly TPixel Bisque = ColorBuilder.FromRGBA(255, 228, 196, 255); + public static readonly TPixel Bisque = ColorBuilder.FromRgba(255, 228, 196, 255); /// /// Represents a matching the W3C definition that has an hex value of #000000. /// - public static readonly TPixel Black = ColorBuilder.FromRGBA(0, 0, 0, 255); + public static readonly TPixel Black = ColorBuilder.FromRgba(0, 0, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFEBCD. /// - public static readonly TPixel BlanchedAlmond = ColorBuilder.FromRGBA(255, 235, 205, 255); + public static readonly TPixel BlanchedAlmond = ColorBuilder.FromRgba(255, 235, 205, 255); /// /// Represents a matching the W3C definition that has an hex value of #0000FF. /// - public static readonly TPixel Blue = ColorBuilder.FromRGBA(0, 0, 255, 255); + public static readonly TPixel Blue = ColorBuilder.FromRgba(0, 0, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #8A2BE2. /// - public static readonly TPixel BlueViolet = ColorBuilder.FromRGBA(138, 43, 226, 255); + public static readonly TPixel BlueViolet = ColorBuilder.FromRgba(138, 43, 226, 255); /// /// Represents a matching the W3C definition that has an hex value of #A52A2A. /// - public static readonly TPixel Brown = ColorBuilder.FromRGBA(165, 42, 42, 255); + public static readonly TPixel Brown = ColorBuilder.FromRgba(165, 42, 42, 255); /// /// Represents a matching the W3C definition that has an hex value of #DEB887. /// - public static readonly TPixel BurlyWood = ColorBuilder.FromRGBA(222, 184, 135, 255); + public static readonly TPixel BurlyWood = ColorBuilder.FromRgba(222, 184, 135, 255); /// /// Represents a matching the W3C definition that has an hex value of #5F9EA0. /// - public static readonly TPixel CadetBlue = ColorBuilder.FromRGBA(95, 158, 160, 255); + public static readonly TPixel CadetBlue = ColorBuilder.FromRgba(95, 158, 160, 255); /// /// Represents a matching the W3C definition that has an hex value of #7FFF00. /// - public static readonly TPixel Chartreuse = ColorBuilder.FromRGBA(127, 255, 0, 255); + public static readonly TPixel Chartreuse = ColorBuilder.FromRgba(127, 255, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #D2691E. /// - public static readonly TPixel Chocolate = ColorBuilder.FromRGBA(210, 105, 30, 255); + public static readonly TPixel Chocolate = ColorBuilder.FromRgba(210, 105, 30, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF7F50. /// - public static readonly TPixel Coral = ColorBuilder.FromRGBA(255, 127, 80, 255); + public static readonly TPixel Coral = ColorBuilder.FromRgba(255, 127, 80, 255); /// /// Represents a matching the W3C definition that has an hex value of #6495ED. /// - public static readonly TPixel CornflowerBlue = ColorBuilder.FromRGBA(100, 149, 237, 255); + public static readonly TPixel CornflowerBlue = ColorBuilder.FromRgba(100, 149, 237, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFF8DC. /// - public static readonly TPixel Cornsilk = ColorBuilder.FromRGBA(255, 248, 220, 255); + public static readonly TPixel Cornsilk = ColorBuilder.FromRgba(255, 248, 220, 255); /// /// Represents a matching the W3C definition that has an hex value of #DC143C. /// - public static readonly TPixel Crimson = ColorBuilder.FromRGBA(220, 20, 60, 255); + public static readonly TPixel Crimson = ColorBuilder.FromRgba(220, 20, 60, 255); /// /// Represents a matching the W3C definition that has an hex value of #00FFFF. /// - public static readonly TPixel Cyan = ColorBuilder.FromRGBA(0, 255, 255, 255); + public static readonly TPixel Cyan = ColorBuilder.FromRgba(0, 255, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #00008B. /// - public static readonly TPixel DarkBlue = ColorBuilder.FromRGBA(0, 0, 139, 255); + public static readonly TPixel DarkBlue = ColorBuilder.FromRgba(0, 0, 139, 255); /// /// Represents a matching the W3C definition that has an hex value of #008B8B. /// - public static readonly TPixel DarkCyan = ColorBuilder.FromRGBA(0, 139, 139, 255); + public static readonly TPixel DarkCyan = ColorBuilder.FromRgba(0, 139, 139, 255); /// /// Represents a matching the W3C definition that has an hex value of #B8860B. /// - public static readonly TPixel DarkGoldenrod = ColorBuilder.FromRGBA(184, 134, 11, 255); + public static readonly TPixel DarkGoldenrod = ColorBuilder.FromRgba(184, 134, 11, 255); /// /// Represents a matching the W3C definition that has an hex value of #A9A9A9. /// - public static readonly TPixel DarkGray = ColorBuilder.FromRGBA(169, 169, 169, 255); + public static readonly TPixel DarkGray = ColorBuilder.FromRgba(169, 169, 169, 255); /// /// Represents a matching the W3C definition that has an hex value of #006400. /// - public static readonly TPixel DarkGreen = ColorBuilder.FromRGBA(0, 100, 0, 255); + public static readonly TPixel DarkGreen = ColorBuilder.FromRgba(0, 100, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #BDB76B. /// - public static readonly TPixel DarkKhaki = ColorBuilder.FromRGBA(189, 183, 107, 255); + public static readonly TPixel DarkKhaki = ColorBuilder.FromRgba(189, 183, 107, 255); /// /// Represents a matching the W3C definition that has an hex value of #8B008B. /// - public static readonly TPixel DarkMagenta = ColorBuilder.FromRGBA(139, 0, 139, 255); + public static readonly TPixel DarkMagenta = ColorBuilder.FromRgba(139, 0, 139, 255); /// /// Represents a matching the W3C definition that has an hex value of #556B2F. /// - public static readonly TPixel DarkOliveGreen = ColorBuilder.FromRGBA(85, 107, 47, 255); + public static readonly TPixel DarkOliveGreen = ColorBuilder.FromRgba(85, 107, 47, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF8C00. /// - public static readonly TPixel DarkOrange = ColorBuilder.FromRGBA(255, 140, 0, 255); + public static readonly TPixel DarkOrange = ColorBuilder.FromRgba(255, 140, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #9932CC. /// - public static readonly TPixel DarkOrchid = ColorBuilder.FromRGBA(153, 50, 204, 255); + public static readonly TPixel DarkOrchid = ColorBuilder.FromRgba(153, 50, 204, 255); /// /// Represents a matching the W3C definition that has an hex value of #8B0000. /// - public static readonly TPixel DarkRed = ColorBuilder.FromRGBA(139, 0, 0, 255); + public static readonly TPixel DarkRed = ColorBuilder.FromRgba(139, 0, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #E9967A. /// - public static readonly TPixel DarkSalmon = ColorBuilder.FromRGBA(233, 150, 122, 255); + public static readonly TPixel DarkSalmon = ColorBuilder.FromRgba(233, 150, 122, 255); /// /// Represents a matching the W3C definition that has an hex value of #8FBC8B. /// - public static readonly TPixel DarkSeaGreen = ColorBuilder.FromRGBA(143, 188, 139, 255); + public static readonly TPixel DarkSeaGreen = ColorBuilder.FromRgba(143, 188, 139, 255); /// /// Represents a matching the W3C definition that has an hex value of #483D8B. /// - public static readonly TPixel DarkSlateBlue = ColorBuilder.FromRGBA(72, 61, 139, 255); + public static readonly TPixel DarkSlateBlue = ColorBuilder.FromRgba(72, 61, 139, 255); /// /// Represents a matching the W3C definition that has an hex value of #2F4F4F. /// - public static readonly TPixel DarkSlateGray = ColorBuilder.FromRGBA(47, 79, 79, 255); + public static readonly TPixel DarkSlateGray = ColorBuilder.FromRgba(47, 79, 79, 255); /// /// Represents a matching the W3C definition that has an hex value of #00CED1. /// - public static readonly TPixel DarkTurquoise = ColorBuilder.FromRGBA(0, 206, 209, 255); + public static readonly TPixel DarkTurquoise = ColorBuilder.FromRgba(0, 206, 209, 255); /// /// Represents a matching the W3C definition that has an hex value of #9400D3. /// - public static readonly TPixel DarkViolet = ColorBuilder.FromRGBA(148, 0, 211, 255); + public static readonly TPixel DarkViolet = ColorBuilder.FromRgba(148, 0, 211, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF1493. /// - public static readonly TPixel DeepPink = ColorBuilder.FromRGBA(255, 20, 147, 255); + public static readonly TPixel DeepPink = ColorBuilder.FromRgba(255, 20, 147, 255); /// /// Represents a matching the W3C definition that has an hex value of #00BFFF. /// - public static readonly TPixel DeepSkyBlue = ColorBuilder.FromRGBA(0, 191, 255, 255); + public static readonly TPixel DeepSkyBlue = ColorBuilder.FromRgba(0, 191, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #696969. /// - public static readonly TPixel DimGray = ColorBuilder.FromRGBA(105, 105, 105, 255); + public static readonly TPixel DimGray = ColorBuilder.FromRgba(105, 105, 105, 255); /// /// Represents a matching the W3C definition that has an hex value of #1E90FF. /// - public static readonly TPixel DodgerBlue = ColorBuilder.FromRGBA(30, 144, 255, 255); + public static readonly TPixel DodgerBlue = ColorBuilder.FromRgba(30, 144, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #B22222. /// - public static readonly TPixel Firebrick = ColorBuilder.FromRGBA(178, 34, 34, 255); + public static readonly TPixel Firebrick = ColorBuilder.FromRgba(178, 34, 34, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFAF0. /// - public static readonly TPixel FloralWhite = ColorBuilder.FromRGBA(255, 250, 240, 255); + public static readonly TPixel FloralWhite = ColorBuilder.FromRgba(255, 250, 240, 255); /// /// Represents a matching the W3C definition that has an hex value of #228B22. /// - public static readonly TPixel ForestGreen = ColorBuilder.FromRGBA(34, 139, 34, 255); + public static readonly TPixel ForestGreen = ColorBuilder.FromRgba(34, 139, 34, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF00FF. /// - public static readonly TPixel Fuchsia = ColorBuilder.FromRGBA(255, 0, 255, 255); + public static readonly TPixel Fuchsia = ColorBuilder.FromRgba(255, 0, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #DCDCDC. /// - public static readonly TPixel Gainsboro = ColorBuilder.FromRGBA(220, 220, 220, 255); + public static readonly TPixel Gainsboro = ColorBuilder.FromRgba(220, 220, 220, 255); /// /// Represents a matching the W3C definition that has an hex value of #F8F8FF. /// - public static readonly TPixel GhostWhite = ColorBuilder.FromRGBA(248, 248, 255, 255); + public static readonly TPixel GhostWhite = ColorBuilder.FromRgba(248, 248, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFD700. /// - public static readonly TPixel Gold = ColorBuilder.FromRGBA(255, 215, 0, 255); + public static readonly TPixel Gold = ColorBuilder.FromRgba(255, 215, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #DAA520. /// - public static readonly TPixel Goldenrod = ColorBuilder.FromRGBA(218, 165, 32, 255); + public static readonly TPixel Goldenrod = ColorBuilder.FromRgba(218, 165, 32, 255); /// /// Represents a matching the W3C definition that has an hex value of #808080. /// - public static readonly TPixel Gray = ColorBuilder.FromRGBA(128, 128, 128, 255); + public static readonly TPixel Gray = ColorBuilder.FromRgba(128, 128, 128, 255); /// /// Represents a matching the W3C definition that has an hex value of #008000. /// - public static readonly TPixel Green = ColorBuilder.FromRGBA(0, 128, 0, 255); + public static readonly TPixel Green = ColorBuilder.FromRgba(0, 128, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #ADFF2F. /// - public static readonly TPixel GreenYellow = ColorBuilder.FromRGBA(173, 255, 47, 255); + public static readonly TPixel GreenYellow = ColorBuilder.FromRgba(173, 255, 47, 255); /// /// Represents a matching the W3C definition that has an hex value of #F0FFF0. /// - public static readonly TPixel Honeydew = ColorBuilder.FromRGBA(240, 255, 240, 255); + public static readonly TPixel Honeydew = ColorBuilder.FromRgba(240, 255, 240, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF69B4. /// - public static readonly TPixel HotPink = ColorBuilder.FromRGBA(255, 105, 180, 255); + public static readonly TPixel HotPink = ColorBuilder.FromRgba(255, 105, 180, 255); /// /// Represents a matching the W3C definition that has an hex value of #CD5C5C. /// - public static readonly TPixel IndianRed = ColorBuilder.FromRGBA(205, 92, 92, 255); + public static readonly TPixel IndianRed = ColorBuilder.FromRgba(205, 92, 92, 255); /// /// Represents a matching the W3C definition that has an hex value of #4B0082. /// - public static readonly TPixel Indigo = ColorBuilder.FromRGBA(75, 0, 130, 255); + public static readonly TPixel Indigo = ColorBuilder.FromRgba(75, 0, 130, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFFF0. /// - public static readonly TPixel Ivory = ColorBuilder.FromRGBA(255, 255, 240, 255); + public static readonly TPixel Ivory = ColorBuilder.FromRgba(255, 255, 240, 255); /// /// Represents a matching the W3C definition that has an hex value of #F0E68C. /// - public static readonly TPixel Khaki = ColorBuilder.FromRGBA(240, 230, 140, 255); + public static readonly TPixel Khaki = ColorBuilder.FromRgba(240, 230, 140, 255); /// /// Represents a matching the W3C definition that has an hex value of #E6E6FA. /// - public static readonly TPixel Lavender = ColorBuilder.FromRGBA(230, 230, 250, 255); + public static readonly TPixel Lavender = ColorBuilder.FromRgba(230, 230, 250, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFF0F5. /// - public static readonly TPixel LavenderBlush = ColorBuilder.FromRGBA(255, 240, 245, 255); + public static readonly TPixel LavenderBlush = ColorBuilder.FromRgba(255, 240, 245, 255); /// /// Represents a matching the W3C definition that has an hex value of #7CFC00. /// - public static readonly TPixel LawnGreen = ColorBuilder.FromRGBA(124, 252, 0, 255); + public static readonly TPixel LawnGreen = ColorBuilder.FromRgba(124, 252, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFACD. /// - public static readonly TPixel LemonChiffon = ColorBuilder.FromRGBA(255, 250, 205, 255); + public static readonly TPixel LemonChiffon = ColorBuilder.FromRgba(255, 250, 205, 255); /// /// Represents a matching the W3C definition that has an hex value of #ADD8E6. /// - public static readonly TPixel LightBlue = ColorBuilder.FromRGBA(173, 216, 230, 255); + public static readonly TPixel LightBlue = ColorBuilder.FromRgba(173, 216, 230, 255); /// /// Represents a matching the W3C definition that has an hex value of #F08080. /// - public static readonly TPixel LightCoral = ColorBuilder.FromRGBA(240, 128, 128, 255); + public static readonly TPixel LightCoral = ColorBuilder.FromRgba(240, 128, 128, 255); /// /// Represents a matching the W3C definition that has an hex value of #E0FFFF. /// - public static readonly TPixel LightCyan = ColorBuilder.FromRGBA(224, 255, 255, 255); + public static readonly TPixel LightCyan = ColorBuilder.FromRgba(224, 255, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #FAFAD2. /// - public static readonly TPixel LightGoldenrodYellow = ColorBuilder.FromRGBA(250, 250, 210, 255); + public static readonly TPixel LightGoldenrodYellow = ColorBuilder.FromRgba(250, 250, 210, 255); /// /// Represents a matching the W3C definition that has an hex value of #D3D3D3. /// - public static readonly TPixel LightGray = ColorBuilder.FromRGBA(211, 211, 211, 255); + public static readonly TPixel LightGray = ColorBuilder.FromRgba(211, 211, 211, 255); /// /// Represents a matching the W3C definition that has an hex value of #90EE90. /// - public static readonly TPixel LightGreen = ColorBuilder.FromRGBA(144, 238, 144, 255); + public static readonly TPixel LightGreen = ColorBuilder.FromRgba(144, 238, 144, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFB6C1. /// - public static readonly TPixel LightPink = ColorBuilder.FromRGBA(255, 182, 193, 255); + public static readonly TPixel LightPink = ColorBuilder.FromRgba(255, 182, 193, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFA07A. /// - public static readonly TPixel LightSalmon = ColorBuilder.FromRGBA(255, 160, 122, 255); + public static readonly TPixel LightSalmon = ColorBuilder.FromRgba(255, 160, 122, 255); /// /// Represents a matching the W3C definition that has an hex value of #20B2AA. /// - public static readonly TPixel LightSeaGreen = ColorBuilder.FromRGBA(32, 178, 170, 255); + public static readonly TPixel LightSeaGreen = ColorBuilder.FromRgba(32, 178, 170, 255); /// /// Represents a matching the W3C definition that has an hex value of #87CEFA. /// - public static readonly TPixel LightSkyBlue = ColorBuilder.FromRGBA(135, 206, 250, 255); + public static readonly TPixel LightSkyBlue = ColorBuilder.FromRgba(135, 206, 250, 255); /// /// Represents a matching the W3C definition that has an hex value of #778899. /// - public static readonly TPixel LightSlateGray = ColorBuilder.FromRGBA(119, 136, 153, 255); + public static readonly TPixel LightSlateGray = ColorBuilder.FromRgba(119, 136, 153, 255); /// /// Represents a matching the W3C definition that has an hex value of #B0C4DE. /// - public static readonly TPixel LightSteelBlue = ColorBuilder.FromRGBA(176, 196, 222, 255); + public static readonly TPixel LightSteelBlue = ColorBuilder.FromRgba(176, 196, 222, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFFE0. /// - public static readonly TPixel LightYellow = ColorBuilder.FromRGBA(255, 255, 224, 255); + public static readonly TPixel LightYellow = ColorBuilder.FromRgba(255, 255, 224, 255); /// /// Represents a matching the W3C definition that has an hex value of #00FF00. /// - public static readonly TPixel Lime = ColorBuilder.FromRGBA(0, 255, 0, 255); + public static readonly TPixel Lime = ColorBuilder.FromRgba(0, 255, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #32CD32. /// - public static readonly TPixel LimeGreen = ColorBuilder.FromRGBA(50, 205, 50, 255); + public static readonly TPixel LimeGreen = ColorBuilder.FromRgba(50, 205, 50, 255); /// /// Represents a matching the W3C definition that has an hex value of #FAF0E6. /// - public static readonly TPixel Linen = ColorBuilder.FromRGBA(250, 240, 230, 255); + public static readonly TPixel Linen = ColorBuilder.FromRgba(250, 240, 230, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF00FF. /// - public static readonly TPixel Magenta = ColorBuilder.FromRGBA(255, 0, 255, 255); + public static readonly TPixel Magenta = ColorBuilder.FromRgba(255, 0, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #800000. /// - public static readonly TPixel Maroon = ColorBuilder.FromRGBA(128, 0, 0, 255); + public static readonly TPixel Maroon = ColorBuilder.FromRgba(128, 0, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #66CDAA. /// - public static readonly TPixel MediumAquamarine = ColorBuilder.FromRGBA(102, 205, 170, 255); + public static readonly TPixel MediumAquamarine = ColorBuilder.FromRgba(102, 205, 170, 255); /// /// Represents a matching the W3C definition that has an hex value of #0000CD. /// - public static readonly TPixel MediumBlue = ColorBuilder.FromRGBA(0, 0, 205, 255); + public static readonly TPixel MediumBlue = ColorBuilder.FromRgba(0, 0, 205, 255); /// /// Represents a matching the W3C definition that has an hex value of #BA55D3. /// - public static readonly TPixel MediumOrchid = ColorBuilder.FromRGBA(186, 85, 211, 255); + public static readonly TPixel MediumOrchid = ColorBuilder.FromRgba(186, 85, 211, 255); /// /// Represents a matching the W3C definition that has an hex value of #9370DB. /// - public static readonly TPixel MediumPurple = ColorBuilder.FromRGBA(147, 112, 219, 255); + public static readonly TPixel MediumPurple = ColorBuilder.FromRgba(147, 112, 219, 255); /// /// Represents a matching the W3C definition that has an hex value of #3CB371. /// - public static readonly TPixel MediumSeaGreen = ColorBuilder.FromRGBA(60, 179, 113, 255); + public static readonly TPixel MediumSeaGreen = ColorBuilder.FromRgba(60, 179, 113, 255); /// /// Represents a matching the W3C definition that has an hex value of #7B68EE. /// - public static readonly TPixel MediumSlateBlue = ColorBuilder.FromRGBA(123, 104, 238, 255); + public static readonly TPixel MediumSlateBlue = ColorBuilder.FromRgba(123, 104, 238, 255); /// /// Represents a matching the W3C definition that has an hex value of #00FA9A. /// - public static readonly TPixel MediumSpringGreen = ColorBuilder.FromRGBA(0, 250, 154, 255); + public static readonly TPixel MediumSpringGreen = ColorBuilder.FromRgba(0, 250, 154, 255); /// /// Represents a matching the W3C definition that has an hex value of #48D1CC. /// - public static readonly TPixel MediumTurquoise = ColorBuilder.FromRGBA(72, 209, 204, 255); + public static readonly TPixel MediumTurquoise = ColorBuilder.FromRgba(72, 209, 204, 255); /// /// Represents a matching the W3C definition that has an hex value of #C71585. /// - public static readonly TPixel MediumVioletRed = ColorBuilder.FromRGBA(199, 21, 133, 255); + public static readonly TPixel MediumVioletRed = ColorBuilder.FromRgba(199, 21, 133, 255); /// /// Represents a matching the W3C definition that has an hex value of #191970. /// - public static readonly TPixel MidnightBlue = ColorBuilder.FromRGBA(25, 25, 112, 255); + public static readonly TPixel MidnightBlue = ColorBuilder.FromRgba(25, 25, 112, 255); /// /// Represents a matching the W3C definition that has an hex value of #F5FFFA. /// - public static readonly TPixel MintCream = ColorBuilder.FromRGBA(245, 255, 250, 255); + public static readonly TPixel MintCream = ColorBuilder.FromRgba(245, 255, 250, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFE4E1. /// - public static readonly TPixel MistyRose = ColorBuilder.FromRGBA(255, 228, 225, 255); + public static readonly TPixel MistyRose = ColorBuilder.FromRgba(255, 228, 225, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFE4B5. /// - public static readonly TPixel Moccasin = ColorBuilder.FromRGBA(255, 228, 181, 255); + public static readonly TPixel Moccasin = ColorBuilder.FromRgba(255, 228, 181, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFDEAD. /// - public static readonly TPixel NavajoWhite = ColorBuilder.FromRGBA(255, 222, 173, 255); + public static readonly TPixel NavajoWhite = ColorBuilder.FromRgba(255, 222, 173, 255); /// /// Represents a matching the W3C definition that has an hex value of #000080. /// - public static readonly TPixel Navy = ColorBuilder.FromRGBA(0, 0, 128, 255); + public static readonly TPixel Navy = ColorBuilder.FromRgba(0, 0, 128, 255); /// /// Represents a matching the W3C definition that has an hex value of #FDF5E6. /// - public static readonly TPixel OldLace = ColorBuilder.FromRGBA(253, 245, 230, 255); + public static readonly TPixel OldLace = ColorBuilder.FromRgba(253, 245, 230, 255); /// /// Represents a matching the W3C definition that has an hex value of #808000. /// - public static readonly TPixel Olive = ColorBuilder.FromRGBA(128, 128, 0, 255); + public static readonly TPixel Olive = ColorBuilder.FromRgba(128, 128, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #6B8E23. /// - public static readonly TPixel OliveDrab = ColorBuilder.FromRGBA(107, 142, 35, 255); + public static readonly TPixel OliveDrab = ColorBuilder.FromRgba(107, 142, 35, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFA500. /// - public static readonly TPixel Orange = ColorBuilder.FromRGBA(255, 165, 0, 255); + public static readonly TPixel Orange = ColorBuilder.FromRgba(255, 165, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF4500. /// - public static readonly TPixel OrangeRed = ColorBuilder.FromRGBA(255, 69, 0, 255); + public static readonly TPixel OrangeRed = ColorBuilder.FromRgba(255, 69, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #DA70D6. /// - public static readonly TPixel Orchid = ColorBuilder.FromRGBA(218, 112, 214, 255); + public static readonly TPixel Orchid = ColorBuilder.FromRgba(218, 112, 214, 255); /// /// Represents a matching the W3C definition that has an hex value of #EEE8AA. /// - public static readonly TPixel PaleGoldenrod = ColorBuilder.FromRGBA(238, 232, 170, 255); + public static readonly TPixel PaleGoldenrod = ColorBuilder.FromRgba(238, 232, 170, 255); /// /// Represents a matching the W3C definition that has an hex value of #98FB98. /// - public static readonly TPixel PaleGreen = ColorBuilder.FromRGBA(152, 251, 152, 255); + public static readonly TPixel PaleGreen = ColorBuilder.FromRgba(152, 251, 152, 255); /// /// Represents a matching the W3C definition that has an hex value of #AFEEEE. /// - public static readonly TPixel PaleTurquoise = ColorBuilder.FromRGBA(175, 238, 238, 255); + public static readonly TPixel PaleTurquoise = ColorBuilder.FromRgba(175, 238, 238, 255); /// /// Represents a matching the W3C definition that has an hex value of #DB7093. /// - public static readonly TPixel PaleVioletRed = ColorBuilder.FromRGBA(219, 112, 147, 255); + public static readonly TPixel PaleVioletRed = ColorBuilder.FromRgba(219, 112, 147, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFEFD5. /// - public static readonly TPixel PapayaWhip = ColorBuilder.FromRGBA(255, 239, 213, 255); + public static readonly TPixel PapayaWhip = ColorBuilder.FromRgba(255, 239, 213, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFDAB9. /// - public static readonly TPixel PeachPuff = ColorBuilder.FromRGBA(255, 218, 185, 255); + public static readonly TPixel PeachPuff = ColorBuilder.FromRgba(255, 218, 185, 255); /// /// Represents a matching the W3C definition that has an hex value of #CD853F. /// - public static readonly TPixel Peru = ColorBuilder.FromRGBA(205, 133, 63, 255); + public static readonly TPixel Peru = ColorBuilder.FromRgba(205, 133, 63, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFC0CB. /// - public static readonly TPixel Pink = ColorBuilder.FromRGBA(255, 192, 203, 255); + public static readonly TPixel Pink = ColorBuilder.FromRgba(255, 192, 203, 255); /// /// Represents a matching the W3C definition that has an hex value of #DDA0DD. /// - public static readonly TPixel Plum = ColorBuilder.FromRGBA(221, 160, 221, 255); + public static readonly TPixel Plum = ColorBuilder.FromRgba(221, 160, 221, 255); /// /// Represents a matching the W3C definition that has an hex value of #B0E0E6. /// - public static readonly TPixel PowderBlue = ColorBuilder.FromRGBA(176, 224, 230, 255); + public static readonly TPixel PowderBlue = ColorBuilder.FromRgba(176, 224, 230, 255); /// /// Represents a matching the W3C definition that has an hex value of #800080. /// - public static readonly TPixel Purple = ColorBuilder.FromRGBA(128, 0, 128, 255); + public static readonly TPixel Purple = ColorBuilder.FromRgba(128, 0, 128, 255); /// /// Represents a matching the W3C definition that has an hex value of #663399. /// - public static readonly TPixel RebeccaPurple = ColorBuilder.FromRGBA(102, 51, 153, 255); + public static readonly TPixel RebeccaPurple = ColorBuilder.FromRgba(102, 51, 153, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF0000. /// - public static readonly TPixel Red = ColorBuilder.FromRGBA(255, 0, 0, 255); + public static readonly TPixel Red = ColorBuilder.FromRgba(255, 0, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #BC8F8F. /// - public static readonly TPixel RosyBrown = ColorBuilder.FromRGBA(188, 143, 143, 255); + public static readonly TPixel RosyBrown = ColorBuilder.FromRgba(188, 143, 143, 255); /// /// Represents a matching the W3C definition that has an hex value of #4169E1. /// - public static readonly TPixel RoyalBlue = ColorBuilder.FromRGBA(65, 105, 225, 255); + public static readonly TPixel RoyalBlue = ColorBuilder.FromRgba(65, 105, 225, 255); /// /// Represents a matching the W3C definition that has an hex value of #8B4513. /// - public static readonly TPixel SaddleBrown = ColorBuilder.FromRGBA(139, 69, 19, 255); + public static readonly TPixel SaddleBrown = ColorBuilder.FromRgba(139, 69, 19, 255); /// /// Represents a matching the W3C definition that has an hex value of #FA8072. /// - public static readonly TPixel Salmon = ColorBuilder.FromRGBA(250, 128, 114, 255); + public static readonly TPixel Salmon = ColorBuilder.FromRgba(250, 128, 114, 255); /// /// Represents a matching the W3C definition that has an hex value of #F4A460. /// - public static readonly TPixel SandyBrown = ColorBuilder.FromRGBA(244, 164, 96, 255); + public static readonly TPixel SandyBrown = ColorBuilder.FromRgba(244, 164, 96, 255); /// /// Represents a matching the W3C definition that has an hex value of #2E8B57. /// - public static readonly TPixel SeaGreen = ColorBuilder.FromRGBA(46, 139, 87, 255); + public static readonly TPixel SeaGreen = ColorBuilder.FromRgba(46, 139, 87, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFF5EE. /// - public static readonly TPixel SeaShell = ColorBuilder.FromRGBA(255, 245, 238, 255); + public static readonly TPixel SeaShell = ColorBuilder.FromRgba(255, 245, 238, 255); /// /// Represents a matching the W3C definition that has an hex value of #A0522D. /// - public static readonly TPixel Sienna = ColorBuilder.FromRGBA(160, 82, 45, 255); + public static readonly TPixel Sienna = ColorBuilder.FromRgba(160, 82, 45, 255); /// /// Represents a matching the W3C definition that has an hex value of #C0C0C0. /// - public static readonly TPixel Silver = ColorBuilder.FromRGBA(192, 192, 192, 255); + public static readonly TPixel Silver = ColorBuilder.FromRgba(192, 192, 192, 255); /// /// Represents a matching the W3C definition that has an hex value of #87CEEB. /// - public static readonly TPixel SkyBlue = ColorBuilder.FromRGBA(135, 206, 235, 255); + public static readonly TPixel SkyBlue = ColorBuilder.FromRgba(135, 206, 235, 255); /// /// Represents a matching the W3C definition that has an hex value of #6A5ACD. /// - public static readonly TPixel SlateBlue = ColorBuilder.FromRGBA(106, 90, 205, 255); + public static readonly TPixel SlateBlue = ColorBuilder.FromRgba(106, 90, 205, 255); /// /// Represents a matching the W3C definition that has an hex value of #708090. /// - public static readonly TPixel SlateGray = ColorBuilder.FromRGBA(112, 128, 144, 255); + public static readonly TPixel SlateGray = ColorBuilder.FromRgba(112, 128, 144, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFAFA. /// - public static readonly TPixel Snow = ColorBuilder.FromRGBA(255, 250, 250, 255); + public static readonly TPixel Snow = ColorBuilder.FromRgba(255, 250, 250, 255); /// /// Represents a matching the W3C definition that has an hex value of #00FF7F. /// - public static readonly TPixel SpringGreen = ColorBuilder.FromRGBA(0, 255, 127, 255); + public static readonly TPixel SpringGreen = ColorBuilder.FromRgba(0, 255, 127, 255); /// /// Represents a matching the W3C definition that has an hex value of #4682B4. /// - public static readonly TPixel SteelBlue = ColorBuilder.FromRGBA(70, 130, 180, 255); + public static readonly TPixel SteelBlue = ColorBuilder.FromRgba(70, 130, 180, 255); /// /// Represents a matching the W3C definition that has an hex value of #D2B48C. /// - public static readonly TPixel Tan = ColorBuilder.FromRGBA(210, 180, 140, 255); + public static readonly TPixel Tan = ColorBuilder.FromRgba(210, 180, 140, 255); /// /// Represents a matching the W3C definition that has an hex value of #008080. /// - public static readonly TPixel Teal = ColorBuilder.FromRGBA(0, 128, 128, 255); + public static readonly TPixel Teal = ColorBuilder.FromRgba(0, 128, 128, 255); /// /// Represents a matching the W3C definition that has an hex value of #D8BFD8. /// - public static readonly TPixel Thistle = ColorBuilder.FromRGBA(216, 191, 216, 255); + public static readonly TPixel Thistle = ColorBuilder.FromRgba(216, 191, 216, 255); /// /// Represents a matching the W3C definition that has an hex value of #FF6347. /// - public static readonly TPixel Tomato = ColorBuilder.FromRGBA(255, 99, 71, 255); + public static readonly TPixel Tomato = ColorBuilder.FromRgba(255, 99, 71, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFFFF. /// - public static readonly TPixel Transparent = ColorBuilder.FromRGBA(255, 255, 255, 0); + public static readonly TPixel Transparent = ColorBuilder.FromRgba(255, 255, 255, 0); /// /// Represents a matching the W3C definition that has an hex value of #40E0D0. /// - public static readonly TPixel Turquoise = ColorBuilder.FromRGBA(64, 224, 208, 255); + public static readonly TPixel Turquoise = ColorBuilder.FromRgba(64, 224, 208, 255); /// /// Represents a matching the W3C definition that has an hex value of #EE82EE. /// - public static readonly TPixel Violet = ColorBuilder.FromRGBA(238, 130, 238, 255); + public static readonly TPixel Violet = ColorBuilder.FromRgba(238, 130, 238, 255); /// /// Represents a matching the W3C definition that has an hex value of #F5DEB3. /// - public static readonly TPixel Wheat = ColorBuilder.FromRGBA(245, 222, 179, 255); + public static readonly TPixel Wheat = ColorBuilder.FromRgba(245, 222, 179, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFFFF. /// - public static readonly TPixel White = ColorBuilder.FromRGBA(255, 255, 255, 255); + public static readonly TPixel White = ColorBuilder.FromRgba(255, 255, 255, 255); /// /// Represents a matching the W3C definition that has an hex value of #F5F5F5. /// - public static readonly TPixel WhiteSmoke = ColorBuilder.FromRGBA(245, 245, 245, 255); + public static readonly TPixel WhiteSmoke = ColorBuilder.FromRgba(245, 245, 245, 255); /// /// Represents a matching the W3C definition that has an hex value of #FFFF00. /// - public static readonly TPixel Yellow = ColorBuilder.FromRGBA(255, 255, 0, 255); + public static readonly TPixel Yellow = ColorBuilder.FromRgba(255, 255, 0, 255); /// /// Represents a matching the W3C definition that has an hex value of #9ACD32. /// - public static readonly TPixel YellowGreen = ColorBuilder.FromRGBA(154, 205, 50, 255); + public static readonly TPixel YellowGreen = ColorBuilder.FromRgba(154, 205, 50, 255); /// /// Gets a collection of web safe, colors as defined in the CSS Color Module Level 4.