mirror of https://github.com/SixLabors/ImageSharp
99 changed files with 3189 additions and 2471 deletions
@ -0,0 +1,728 @@ |
|||
// <copyright file="Color.Definitions.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
namespace ImageSharp |
|||
{ |
|||
/// <summary>
|
|||
/// Packed vector type containing four 8-bit unsigned normalized values ranging from 0 to 255.
|
|||
/// The color components are stored in red, green, blue, and alpha order.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// This struct is fully mutable. This is done (against the guidelines) for the sake of performance,
|
|||
/// as it avoids the need to create new values for modification operations.
|
|||
/// </remarks>
|
|||
public partial struct Color |
|||
{ |
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F0F8FF.
|
|||
/// </summary>
|
|||
public static readonly Color AliceBlue = NamedColors<Color>.AliceBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FAEBD7.
|
|||
/// </summary>
|
|||
public static readonly Color AntiqueWhite = NamedColors<Color>.AntiqueWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color Aqua = NamedColors<Color>.Aqua; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #7FFFD4.
|
|||
/// </summary>
|
|||
public static readonly Color Aquamarine = NamedColors<Color>.Aquamarine; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F0FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color Azure = NamedColors<Color>.Azure; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F5F5DC.
|
|||
/// </summary>
|
|||
public static readonly Color Beige = NamedColors<Color>.Beige; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFE4C4.
|
|||
/// </summary>
|
|||
public static readonly Color Bisque = NamedColors<Color>.Bisque; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #000000.
|
|||
/// </summary>
|
|||
public static readonly Color Black = NamedColors<Color>.Black; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFEBCD.
|
|||
/// </summary>
|
|||
public static readonly Color BlanchedAlmond = NamedColors<Color>.BlanchedAlmond; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #0000FF.
|
|||
/// </summary>
|
|||
public static readonly Color Blue = NamedColors<Color>.Blue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #8A2BE2.
|
|||
/// </summary>
|
|||
public static readonly Color BlueViolet = NamedColors<Color>.BlueViolet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #A52A2A.
|
|||
/// </summary>
|
|||
public static readonly Color Brown = NamedColors<Color>.Brown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DEB887.
|
|||
/// </summary>
|
|||
public static readonly Color BurlyWood = NamedColors<Color>.BurlyWood; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #5F9EA0.
|
|||
/// </summary>
|
|||
public static readonly Color CadetBlue = NamedColors<Color>.CadetBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #7FFF00.
|
|||
/// </summary>
|
|||
public static readonly Color Chartreuse = NamedColors<Color>.Chartreuse; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #D2691E.
|
|||
/// </summary>
|
|||
public static readonly Color Chocolate = NamedColors<Color>.Chocolate; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF7F50.
|
|||
/// </summary>
|
|||
public static readonly Color Coral = NamedColors<Color>.Coral; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #6495ED.
|
|||
/// </summary>
|
|||
public static readonly Color CornflowerBlue = NamedColors<Color>.CornflowerBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFF8DC.
|
|||
/// </summary>
|
|||
public static readonly Color Cornsilk = NamedColors<Color>.Cornsilk; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DC143C.
|
|||
/// </summary>
|
|||
public static readonly Color Crimson = NamedColors<Color>.Crimson; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color Cyan = NamedColors<Color>.Cyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00008B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkBlue = NamedColors<Color>.DarkBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #008B8B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkCyan = NamedColors<Color>.DarkCyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #B8860B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkGoldenrod = NamedColors<Color>.DarkGoldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #A9A9A9.
|
|||
/// </summary>
|
|||
public static readonly Color DarkGray = NamedColors<Color>.DarkGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #006400.
|
|||
/// </summary>
|
|||
public static readonly Color DarkGreen = NamedColors<Color>.DarkGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #BDB76B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkKhaki = NamedColors<Color>.DarkKhaki; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #8B008B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkMagenta = NamedColors<Color>.DarkMagenta; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #556B2F.
|
|||
/// </summary>
|
|||
public static readonly Color DarkOliveGreen = NamedColors<Color>.DarkOliveGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF8C00.
|
|||
/// </summary>
|
|||
public static readonly Color DarkOrange = NamedColors<Color>.DarkOrange; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #9932CC.
|
|||
/// </summary>
|
|||
public static readonly Color DarkOrchid = NamedColors<Color>.DarkOrchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #8B0000.
|
|||
/// </summary>
|
|||
public static readonly Color DarkRed = NamedColors<Color>.DarkRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #E9967A.
|
|||
/// </summary>
|
|||
public static readonly Color DarkSalmon = NamedColors<Color>.DarkSalmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #8FBC8B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkSeaGreen = NamedColors<Color>.DarkSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #483D8B.
|
|||
/// </summary>
|
|||
public static readonly Color DarkSlateBlue = NamedColors<Color>.DarkSlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #2F4F4F.
|
|||
/// </summary>
|
|||
public static readonly Color DarkSlateGray = NamedColors<Color>.DarkSlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00CED1.
|
|||
/// </summary>
|
|||
public static readonly Color DarkTurquoise = NamedColors<Color>.DarkTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #9400D3.
|
|||
/// </summary>
|
|||
public static readonly Color DarkViolet = NamedColors<Color>.DarkViolet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF1493.
|
|||
/// </summary>
|
|||
public static readonly Color DeepPink = NamedColors<Color>.DeepPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00BFFF.
|
|||
/// </summary>
|
|||
public static readonly Color DeepSkyBlue = NamedColors<Color>.DeepSkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #696969.
|
|||
/// </summary>
|
|||
public static readonly Color DimGray = NamedColors<Color>.DimGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #1E90FF.
|
|||
/// </summary>
|
|||
public static readonly Color DodgerBlue = NamedColors<Color>.DodgerBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #B22222.
|
|||
/// </summary>
|
|||
public static readonly Color Firebrick = NamedColors<Color>.Firebrick; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFAF0.
|
|||
/// </summary>
|
|||
public static readonly Color FloralWhite = NamedColors<Color>.FloralWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #228B22.
|
|||
/// </summary>
|
|||
public static readonly Color ForestGreen = NamedColors<Color>.ForestGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF00FF.
|
|||
/// </summary>
|
|||
public static readonly Color Fuchsia = NamedColors<Color>.Fuchsia; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DCDCDC.
|
|||
/// </summary>
|
|||
public static readonly Color Gainsboro = NamedColors<Color>.Gainsboro; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F8F8FF.
|
|||
/// </summary>
|
|||
public static readonly Color GhostWhite = NamedColors<Color>.GhostWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFD700.
|
|||
/// </summary>
|
|||
public static readonly Color Gold = NamedColors<Color>.Gold; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DAA520.
|
|||
/// </summary>
|
|||
public static readonly Color Goldenrod = NamedColors<Color>.Goldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #808080.
|
|||
/// </summary>
|
|||
public static readonly Color Gray = NamedColors<Color>.Gray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #008000.
|
|||
/// </summary>
|
|||
public static readonly Color Green = NamedColors<Color>.Green; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #ADFF2F.
|
|||
/// </summary>
|
|||
public static readonly Color GreenYellow = NamedColors<Color>.GreenYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F0FFF0.
|
|||
/// </summary>
|
|||
public static readonly Color Honeydew = NamedColors<Color>.Honeydew; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF69B4.
|
|||
/// </summary>
|
|||
public static readonly Color HotPink = NamedColors<Color>.HotPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #CD5C5C.
|
|||
/// </summary>
|
|||
public static readonly Color IndianRed = NamedColors<Color>.IndianRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #4B0082.
|
|||
/// </summary>
|
|||
public static readonly Color Indigo = NamedColors<Color>.Indigo; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFFF0.
|
|||
/// </summary>
|
|||
public static readonly Color Ivory = NamedColors<Color>.Ivory; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F0E68C.
|
|||
/// </summary>
|
|||
public static readonly Color Khaki = NamedColors<Color>.Khaki; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #E6E6FA.
|
|||
/// </summary>
|
|||
public static readonly Color Lavender = NamedColors<Color>.Lavender; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFF0F5.
|
|||
/// </summary>
|
|||
public static readonly Color LavenderBlush = NamedColors<Color>.LavenderBlush; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #7CFC00.
|
|||
/// </summary>
|
|||
public static readonly Color LawnGreen = NamedColors<Color>.LawnGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFACD.
|
|||
/// </summary>
|
|||
public static readonly Color LemonChiffon = NamedColors<Color>.LemonChiffon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #ADD8E6.
|
|||
/// </summary>
|
|||
public static readonly Color LightBlue = NamedColors<Color>.LightBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F08080.
|
|||
/// </summary>
|
|||
public static readonly Color LightCoral = NamedColors<Color>.LightCoral; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #E0FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color LightCyan = NamedColors<Color>.LightCyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FAFAD2.
|
|||
/// </summary>
|
|||
public static readonly Color LightGoldenrodYellow = NamedColors<Color>.LightGoldenrodYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #D3D3D3.
|
|||
/// </summary>
|
|||
public static readonly Color LightGray = NamedColors<Color>.LightGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #90EE90.
|
|||
/// </summary>
|
|||
public static readonly Color LightGreen = NamedColors<Color>.LightGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFB6C1.
|
|||
/// </summary>
|
|||
public static readonly Color LightPink = NamedColors<Color>.LightPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFA07A.
|
|||
/// </summary>
|
|||
public static readonly Color LightSalmon = NamedColors<Color>.LightSalmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #20B2AA.
|
|||
/// </summary>
|
|||
public static readonly Color LightSeaGreen = NamedColors<Color>.LightSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #87CEFA.
|
|||
/// </summary>
|
|||
public static readonly Color LightSkyBlue = NamedColors<Color>.LightSkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #778899.
|
|||
/// </summary>
|
|||
public static readonly Color LightSlateGray = NamedColors<Color>.LightSlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #B0C4DE.
|
|||
/// </summary>
|
|||
public static readonly Color LightSteelBlue = NamedColors<Color>.LightSteelBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFFE0.
|
|||
/// </summary>
|
|||
public static readonly Color LightYellow = NamedColors<Color>.LightYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00FF00.
|
|||
/// </summary>
|
|||
public static readonly Color Lime = NamedColors<Color>.Lime; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #32CD32.
|
|||
/// </summary>
|
|||
public static readonly Color LimeGreen = NamedColors<Color>.LimeGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FAF0E6.
|
|||
/// </summary>
|
|||
public static readonly Color Linen = NamedColors<Color>.Linen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF00FF.
|
|||
/// </summary>
|
|||
public static readonly Color Magenta = NamedColors<Color>.Magenta; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #800000.
|
|||
/// </summary>
|
|||
public static readonly Color Maroon = NamedColors<Color>.Maroon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #66CDAA.
|
|||
/// </summary>
|
|||
public static readonly Color MediumAquamarine = NamedColors<Color>.MediumAquamarine; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #0000CD.
|
|||
/// </summary>
|
|||
public static readonly Color MediumBlue = NamedColors<Color>.MediumBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #BA55D3.
|
|||
/// </summary>
|
|||
public static readonly Color MediumOrchid = NamedColors<Color>.MediumOrchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #9370DB.
|
|||
/// </summary>
|
|||
public static readonly Color MediumPurple = NamedColors<Color>.MediumPurple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #3CB371.
|
|||
/// </summary>
|
|||
public static readonly Color MediumSeaGreen = NamedColors<Color>.MediumSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #7B68EE.
|
|||
/// </summary>
|
|||
public static readonly Color MediumSlateBlue = NamedColors<Color>.MediumSlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00FA9A.
|
|||
/// </summary>
|
|||
public static readonly Color MediumSpringGreen = NamedColors<Color>.MediumSpringGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #48D1CC.
|
|||
/// </summary>
|
|||
public static readonly Color MediumTurquoise = NamedColors<Color>.MediumTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #C71585.
|
|||
/// </summary>
|
|||
public static readonly Color MediumVioletRed = NamedColors<Color>.MediumVioletRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #191970.
|
|||
/// </summary>
|
|||
public static readonly Color MidnightBlue = NamedColors<Color>.MidnightBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F5FFFA.
|
|||
/// </summary>
|
|||
public static readonly Color MintCream = NamedColors<Color>.MintCream; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFE4E1.
|
|||
/// </summary>
|
|||
public static readonly Color MistyRose = NamedColors<Color>.MistyRose; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFE4B5.
|
|||
/// </summary>
|
|||
public static readonly Color Moccasin = NamedColors<Color>.Moccasin; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFDEAD.
|
|||
/// </summary>
|
|||
public static readonly Color NavajoWhite = NamedColors<Color>.NavajoWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #000080.
|
|||
/// </summary>
|
|||
public static readonly Color Navy = NamedColors<Color>.Navy; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FDF5E6.
|
|||
/// </summary>
|
|||
public static readonly Color OldLace = NamedColors<Color>.OldLace; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #808000.
|
|||
/// </summary>
|
|||
public static readonly Color Olive = NamedColors<Color>.Olive; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #6B8E23.
|
|||
/// </summary>
|
|||
public static readonly Color OliveDrab = NamedColors<Color>.OliveDrab; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFA500.
|
|||
/// </summary>
|
|||
public static readonly Color Orange = NamedColors<Color>.Orange; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF4500.
|
|||
/// </summary>
|
|||
public static readonly Color OrangeRed = NamedColors<Color>.OrangeRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DA70D6.
|
|||
/// </summary>
|
|||
public static readonly Color Orchid = NamedColors<Color>.Orchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #EEE8AA.
|
|||
/// </summary>
|
|||
public static readonly Color PaleGoldenrod = NamedColors<Color>.PaleGoldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #98FB98.
|
|||
/// </summary>
|
|||
public static readonly Color PaleGreen = NamedColors<Color>.PaleGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #AFEEEE.
|
|||
/// </summary>
|
|||
public static readonly Color PaleTurquoise = NamedColors<Color>.PaleTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DB7093.
|
|||
/// </summary>
|
|||
public static readonly Color PaleVioletRed = NamedColors<Color>.PaleVioletRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFEFD5.
|
|||
/// </summary>
|
|||
public static readonly Color PapayaWhip = NamedColors<Color>.PapayaWhip; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFDAB9.
|
|||
/// </summary>
|
|||
public static readonly Color PeachPuff = NamedColors<Color>.PeachPuff; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #CD853F.
|
|||
/// </summary>
|
|||
public static readonly Color Peru = NamedColors<Color>.Peru; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFC0CB.
|
|||
/// </summary>
|
|||
public static readonly Color Pink = NamedColors<Color>.Pink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #DDA0DD.
|
|||
/// </summary>
|
|||
public static readonly Color Plum = NamedColors<Color>.Plum; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #B0E0E6.
|
|||
/// </summary>
|
|||
public static readonly Color PowderBlue = NamedColors<Color>.PowderBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #800080.
|
|||
/// </summary>
|
|||
public static readonly Color Purple = NamedColors<Color>.Purple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #663399.
|
|||
/// </summary>
|
|||
public static readonly Color RebeccaPurple = NamedColors<Color>.RebeccaPurple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF0000.
|
|||
/// </summary>
|
|||
public static readonly Color Red = NamedColors<Color>.Red; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #BC8F8F.
|
|||
/// </summary>
|
|||
public static readonly Color RosyBrown = NamedColors<Color>.RosyBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #4169E1.
|
|||
/// </summary>
|
|||
public static readonly Color RoyalBlue = NamedColors<Color>.RoyalBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #8B4513.
|
|||
/// </summary>
|
|||
public static readonly Color SaddleBrown = NamedColors<Color>.SaddleBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FA8072.
|
|||
/// </summary>
|
|||
public static readonly Color Salmon = NamedColors<Color>.Salmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F4A460.
|
|||
/// </summary>
|
|||
public static readonly Color SandyBrown = NamedColors<Color>.SandyBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #2E8B57.
|
|||
/// </summary>
|
|||
public static readonly Color SeaGreen = NamedColors<Color>.SeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFF5EE.
|
|||
/// </summary>
|
|||
public static readonly Color SeaShell = NamedColors<Color>.SeaShell; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #A0522D.
|
|||
/// </summary>
|
|||
public static readonly Color Sienna = NamedColors<Color>.Sienna; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #C0C0C0.
|
|||
/// </summary>
|
|||
public static readonly Color Silver = NamedColors<Color>.Silver; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #87CEEB.
|
|||
/// </summary>
|
|||
public static readonly Color SkyBlue = NamedColors<Color>.SkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #6A5ACD.
|
|||
/// </summary>
|
|||
public static readonly Color SlateBlue = NamedColors<Color>.SlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #708090.
|
|||
/// </summary>
|
|||
public static readonly Color SlateGray = NamedColors<Color>.SlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFAFA.
|
|||
/// </summary>
|
|||
public static readonly Color Snow = NamedColors<Color>.Snow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #00FF7F.
|
|||
/// </summary>
|
|||
public static readonly Color SpringGreen = NamedColors<Color>.SpringGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #4682B4.
|
|||
/// </summary>
|
|||
public static readonly Color SteelBlue = NamedColors<Color>.SteelBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #D2B48C.
|
|||
/// </summary>
|
|||
public static readonly Color Tan = NamedColors<Color>.Tan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #008080.
|
|||
/// </summary>
|
|||
public static readonly Color Teal = NamedColors<Color>.Teal; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #D8BFD8.
|
|||
/// </summary>
|
|||
public static readonly Color Thistle = NamedColors<Color>.Thistle; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FF6347.
|
|||
/// </summary>
|
|||
public static readonly Color Tomato = NamedColors<Color>.Tomato; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|||
/// </summary>
|
|||
public static readonly Color Transparent = NamedColors<Color>.Transparent; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #40E0D0.
|
|||
/// </summary>
|
|||
public static readonly Color Turquoise = NamedColors<Color>.Turquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #EE82EE.
|
|||
/// </summary>
|
|||
public static readonly Color Violet = NamedColors<Color>.Violet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F5DEB3.
|
|||
/// </summary>
|
|||
public static readonly Color Wheat = NamedColors<Color>.Wheat; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|||
/// </summary>
|
|||
public static readonly Color White = NamedColors<Color>.White; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #F5F5F5.
|
|||
/// </summary>
|
|||
public static readonly Color WhiteSmoke = NamedColors<Color>.WhiteSmoke; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #FFFF00.
|
|||
/// </summary>
|
|||
public static readonly Color Yellow = NamedColors<Color>.Yellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color"/> matching the W3C definition that has an hex value of #9ACD32.
|
|||
/// </summary>
|
|||
public static readonly Color YellowGreen = NamedColors<Color>.YellowGreen; |
|||
} |
|||
} |
|||
@ -1,291 +0,0 @@ |
|||
// <copyright file="Color32.BulkOperations.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
namespace ImageSharp |
|||
{ |
|||
using System; |
|||
using System.Numerics; |
|||
using System.Runtime.CompilerServices; |
|||
using System.Runtime.InteropServices; |
|||
|
|||
/// <summary>
|
|||
/// Unpacked pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255.
|
|||
/// The color components are stored in red, green, blue, and alpha order.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// This struct is fully mutable. This is done (against the guidelines) for the sake of performance,
|
|||
/// as it avoids the need to create new values for modification operations.
|
|||
/// </remarks>
|
|||
public partial struct Color32 |
|||
{ |
|||
/// <summary>
|
|||
/// <see cref="BulkPixelOperations{TColor}"/> implementation optimized for <see cref="Color32"/>.
|
|||
/// </summary>
|
|||
internal class BulkOperations : BulkPixelOperations<Color32> |
|||
{ |
|||
/// <summary>
|
|||
/// SIMD optimized bulk implementation of <see cref="IPixel.PackFromVector4(Vector4)"/>
|
|||
/// that works only with `count` divisible by <see cref="Vector{UInt32}.Count"/>.
|
|||
/// </summary>
|
|||
/// <param name="sourceColors">The <see cref="BufferSpan{T}"/> to the source colors.</param>
|
|||
/// <param name="destVectors">The <see cref="BufferSpan{T}"/> to the dstination vectors.</param>
|
|||
/// <param name="count">The number of pixels to convert.</param>
|
|||
/// <remarks>
|
|||
/// Implementation adapted from:
|
|||
/// <see>
|
|||
/// <cref>http://stackoverflow.com/a/5362789</cref>
|
|||
/// </see>
|
|||
/// TODO: We can replace this implementation in the future using new Vector API-s:
|
|||
/// <see>
|
|||
/// <cref>https://github.com/dotnet/corefx/issues/15957</cref>
|
|||
/// </see>
|
|||
/// </remarks>
|
|||
internal static unsafe void ToVector4SimdAligned(BufferSpan<Color32> sourceColors, BufferSpan<Vector4> destVectors, int count) |
|||
{ |
|||
if (!Vector.IsHardwareAccelerated) |
|||
{ |
|||
throw new InvalidOperationException( |
|||
"Color32.BulkOperations.ToVector4SimdAligned() should not be called when Vector.IsHardwareAccelerated == false!"); |
|||
} |
|||
|
|||
int vecSize = Vector<uint>.Count; |
|||
|
|||
DebugGuard.IsTrue( |
|||
count % vecSize == 0, |
|||
nameof(count), |
|||
"Argument 'count' should divisible by Vector<uint>.Count!"); |
|||
|
|||
Vector<float> bVec = new Vector<float>(256.0f / 255.0f); |
|||
Vector<float> magicFloat = new Vector<float>(32768.0f); |
|||
Vector<uint> magicInt = new Vector<uint>(1191182336); // reinterpreded value of 32768.0f
|
|||
Vector<uint> mask = new Vector<uint>(255); |
|||
|
|||
int unpackedRawCount = count * 4; |
|||
|
|||
ref uint src = ref Unsafe.As<Color32, uint>(ref sourceColors.DangerousGetPinnableReference()); |
|||
|
|||
using (Buffer<uint> tempBuf = new Buffer<uint>( |
|||
unpackedRawCount + Vector<uint>.Count)) |
|||
{ |
|||
uint[] temp = tempBuf.Array; |
|||
float[] fTemp = Unsafe.As<float[]>(temp); |
|||
|
|||
ref UnpackedRGBA tempBase = ref Unsafe.As<uint, UnpackedRGBA>(ref tempBuf[0]); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
uint sVal = Unsafe.Add(ref src, i); |
|||
ref UnpackedRGBA dst = ref Unsafe.Add(ref tempBase, i); |
|||
|
|||
// This call is the bottleneck now:
|
|||
dst.Load(sVal); |
|||
} |
|||
|
|||
for (int i = 0; i < unpackedRawCount; i += vecSize) |
|||
{ |
|||
Vector<uint> vi = new Vector<uint>(temp, i); |
|||
|
|||
vi &= mask; |
|||
vi |= magicInt; |
|||
|
|||
Vector<float> vf = Vector.AsVectorSingle(vi); |
|||
vf = (vf - magicFloat) * bVec; |
|||
vf.CopyTo(fTemp, i); |
|||
} |
|||
|
|||
BufferSpan.Copy(tempBuf.Span.AsBytes(), destVectors.AsBytes(), unpackedRawCount * sizeof(uint)); |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void ToVector4(BufferSpan<Color32> sourceColors, BufferSpan<Vector4> destVectors, int count) |
|||
{ |
|||
if (count < 256 || !Vector.IsHardwareAccelerated) |
|||
{ |
|||
// Doesn't worth to bother with SIMD:
|
|||
base.ToVector4(sourceColors, destVectors, count); |
|||
return; |
|||
} |
|||
|
|||
int remainder = count % Vector<uint>.Count; |
|||
|
|||
int alignedCount = count - remainder; |
|||
|
|||
if (alignedCount > 0) |
|||
{ |
|||
ToVector4SimdAligned(sourceColors, destVectors, alignedCount); |
|||
} |
|||
|
|||
if (remainder > 0) |
|||
{ |
|||
sourceColors = sourceColors.Slice(alignedCount); |
|||
destVectors = destVectors.Slice(alignedCount); |
|||
base.ToVector4(sourceColors, destVectors, remainder); |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void PackFromXyzBytes(BufferSpan<byte> sourceBytes, BufferSpan<Color32> destColors, int count) |
|||
{ |
|||
ref RGB24 sourceRef = ref Unsafe.As<byte, RGB24>(ref sourceBytes.DangerousGetPinnableReference()); |
|||
ref Color32 destRef = ref destColors.DangerousGetPinnableReference(); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
ref RGB24 sp = ref Unsafe.Add(ref sourceRef, i); |
|||
ref Color32 dp = ref Unsafe.Add(ref destRef, i); |
|||
|
|||
Unsafe.As<Color32, RGB24>(ref dp) = sp; |
|||
dp.A = 255; |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void ToXyzBytes(BufferSpan<Color32> sourceColors, BufferSpan<byte> destBytes, int count) |
|||
{ |
|||
ref Color32 sourceRef = ref sourceColors.DangerousGetPinnableReference(); |
|||
ref RGB24 destRef = ref Unsafe.As<byte, RGB24>(ref destBytes.DangerousGetPinnableReference()); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
ref Color32 sp = ref Unsafe.Add(ref sourceRef, i); |
|||
ref RGB24 dp = ref Unsafe.Add(ref destRef, i); |
|||
|
|||
dp = Unsafe.As<Color32, RGB24>(ref sp); |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override unsafe void PackFromXyzwBytes(BufferSpan<byte> sourceBytes, BufferSpan<Color32> destColors, int count) |
|||
{ |
|||
BufferSpan.Copy(sourceBytes, destColors.AsBytes(), count * sizeof(Color32)); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override unsafe void ToXyzwBytes(BufferSpan<Color32> sourceColors, BufferSpan<byte> destBytes, int count) |
|||
{ |
|||
BufferSpan.Copy(sourceColors.AsBytes(), destBytes, count * sizeof(Color32)); |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void PackFromZyxBytes(BufferSpan<byte> sourceBytes, BufferSpan<Color32> destColors, int count) |
|||
{ |
|||
ref RGB24 sourceRef = ref Unsafe.As<byte, RGB24>(ref sourceBytes.DangerousGetPinnableReference()); |
|||
ref Color32 destRef = ref destColors.DangerousGetPinnableReference(); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
ref RGB24 sp = ref Unsafe.Add(ref sourceRef, i); |
|||
ref Color32 dp = ref Unsafe.Add(ref destRef, i); |
|||
|
|||
Unsafe.As<Color32, RGB24>(ref dp) = sp.ToZyx(); |
|||
dp.A = 255; |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void ToZyxBytes(BufferSpan<Color32> sourceColors, BufferSpan<byte> destBytes, int count) |
|||
{ |
|||
ref Color32 sourceRef = ref sourceColors.DangerousGetPinnableReference(); |
|||
ref RGB24 destRef = ref Unsafe.As<byte, RGB24>(ref destBytes.DangerousGetPinnableReference()); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
ref Color32 sp = ref Unsafe.Add(ref sourceRef, i); |
|||
ref RGB24 dp = ref Unsafe.Add(ref destRef, i); |
|||
|
|||
dp = Unsafe.As<Color32, RGB24>(ref sp).ToZyx(); |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void PackFromZyxwBytes(BufferSpan<byte> sourceBytes, BufferSpan<Color32> destColors, int count) |
|||
{ |
|||
ref RGBA32 sourceRef = ref Unsafe.As<byte, RGBA32>(ref sourceBytes.DangerousGetPinnableReference()); |
|||
ref Color32 destRef = ref destColors.DangerousGetPinnableReference(); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
ref RGBA32 sp = ref Unsafe.Add(ref sourceRef, i); |
|||
ref Color32 dp = ref Unsafe.Add(ref destRef, i); |
|||
RGBA32 zyxw = sp.ToZyxw(); |
|||
dp = Unsafe.As<RGBA32, Color32>(ref zyxw); |
|||
} |
|||
} |
|||
|
|||
/// <inheritdoc />
|
|||
internal override void ToZyxwBytes(BufferSpan<Color32> sourceColors, BufferSpan<byte> destBytes, int count) |
|||
{ |
|||
ref Color32 sourceRef = ref sourceColors.DangerousGetPinnableReference(); |
|||
ref RGBA32 destRef = ref Unsafe.As<byte, RGBA32>(ref destBytes.DangerousGetPinnableReference()); |
|||
|
|||
for (int i = 0; i < count; i++) |
|||
{ |
|||
ref RGBA32 sp = ref Unsafe.As<Color32, RGBA32>(ref Unsafe.Add(ref sourceRef, i)); |
|||
ref RGBA32 dp = ref Unsafe.Add(ref destRef, i); |
|||
dp = sp.ToZyxw(); |
|||
} |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Helper struct to manipulate 3-byte RGB data.
|
|||
/// </summary>
|
|||
[StructLayout(LayoutKind.Sequential)] |
|||
private struct RGB24 |
|||
{ |
|||
private byte x; |
|||
|
|||
private byte y; |
|||
|
|||
private byte z; |
|||
|
|||
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|||
public RGB24 ToZyx() => new RGB24 { x = this.z, y = this.y, z = this.x }; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Helper struct to manipulate 4-byte RGBA data.
|
|||
/// </summary>
|
|||
[StructLayout(LayoutKind.Sequential)] |
|||
private struct RGBA32 |
|||
{ |
|||
private byte x; |
|||
|
|||
private byte y; |
|||
|
|||
private byte z; |
|||
|
|||
private byte w; |
|||
|
|||
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|||
public RGBA32 ToZyxw() => new RGBA32 { x = this.z, y = this.y, z = this.x, w = this.w }; |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// Value type to store <see cref="Color32"/>-s unpacked into multiple <see cref="uint"/>-s.
|
|||
/// </summary>
|
|||
[StructLayout(LayoutKind.Sequential)] |
|||
private struct UnpackedRGBA |
|||
{ |
|||
private uint r; |
|||
|
|||
private uint g; |
|||
|
|||
private uint b; |
|||
|
|||
private uint a; |
|||
|
|||
[MethodImpl(MethodImplOptions.AggressiveInlining)] |
|||
public void Load(uint p) |
|||
{ |
|||
this.r = p; |
|||
this.g = p >> GreenShift; |
|||
this.b = p >> BlueShift; |
|||
this.a = p >> AlphaShift; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -1,179 +0,0 @@ |
|||
// <copyright file="Color32Constants.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
namespace ImageSharp |
|||
{ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
/// <summary>
|
|||
/// Provides useful color definitions.
|
|||
/// </summary>
|
|||
public static class Color32Constants |
|||
{ |
|||
/// <summary>
|
|||
/// Provides a lazy, one time method of returning the colors.
|
|||
/// </summary>
|
|||
private static readonly Lazy<Color32[]> SafeColors = new Lazy<Color32[]>(GetWebSafeColors); |
|||
|
|||
/// <summary>
|
|||
/// Gets a collection of named, web safe, colors as defined in the CSS Color Module Level 4.
|
|||
/// </summary>
|
|||
public static Color32[] WebSafeColors => SafeColors.Value; |
|||
|
|||
/// <summary>
|
|||
/// Returns an array of web safe colors.
|
|||
/// </summary>
|
|||
/// <returns>The <see cref="T:Color[]"/></returns>
|
|||
private static Color32[] GetWebSafeColors() |
|||
{ |
|||
return new List<Color32> |
|||
{ |
|||
Color32.AliceBlue, |
|||
Color32.AntiqueWhite, |
|||
Color32.Aqua, |
|||
Color32.Aquamarine, |
|||
Color32.Azure, |
|||
Color32.Beige, |
|||
Color32.Bisque, |
|||
Color32.Black, |
|||
Color32.BlanchedAlmond, |
|||
Color32.Blue, |
|||
Color32.BlueViolet, |
|||
Color32.Brown, |
|||
Color32.BurlyWood, |
|||
Color32.CadetBlue, |
|||
Color32.Chartreuse, |
|||
Color32.Chocolate, |
|||
Color32.Coral, |
|||
Color32.CornflowerBlue, |
|||
Color32.Cornsilk, |
|||
Color32.Crimson, |
|||
Color32.Cyan, |
|||
Color32.DarkBlue, |
|||
Color32.DarkCyan, |
|||
Color32.DarkGoldenrod, |
|||
Color32.DarkGray, |
|||
Color32.DarkGreen, |
|||
Color32.DarkKhaki, |
|||
Color32.DarkMagenta, |
|||
Color32.DarkOliveGreen, |
|||
Color32.DarkOrange, |
|||
Color32.DarkOrchid, |
|||
Color32.DarkRed, |
|||
Color32.DarkSalmon, |
|||
Color32.DarkSeaGreen, |
|||
Color32.DarkSlateBlue, |
|||
Color32.DarkSlateGray, |
|||
Color32.DarkTurquoise, |
|||
Color32.DarkViolet, |
|||
Color32.DeepPink, |
|||
Color32.DeepSkyBlue, |
|||
Color32.DimGray, |
|||
Color32.DodgerBlue, |
|||
Color32.Firebrick, |
|||
Color32.FloralWhite, |
|||
Color32.ForestGreen, |
|||
Color32.Fuchsia, |
|||
Color32.Gainsboro, |
|||
Color32.GhostWhite, |
|||
Color32.Gold, |
|||
Color32.Goldenrod, |
|||
Color32.Gray, |
|||
Color32.Green, |
|||
Color32.GreenYellow, |
|||
Color32.Honeydew, |
|||
Color32.HotPink, |
|||
Color32.IndianRed, |
|||
Color32.Indigo, |
|||
Color32.Ivory, |
|||
Color32.Khaki, |
|||
Color32.Lavender, |
|||
Color32.LavenderBlush, |
|||
Color32.LawnGreen, |
|||
Color32.LemonChiffon, |
|||
Color32.LightBlue, |
|||
Color32.LightCoral, |
|||
Color32.LightCyan, |
|||
Color32.LightGoldenrodYellow, |
|||
Color32.LightGray, |
|||
Color32.LightGreen, |
|||
Color32.LightPink, |
|||
Color32.LightSalmon, |
|||
Color32.LightSeaGreen, |
|||
Color32.LightSkyBlue, |
|||
Color32.LightSlateGray, |
|||
Color32.LightSteelBlue, |
|||
Color32.LightYellow, |
|||
Color32.Lime, |
|||
Color32.LimeGreen, |
|||
Color32.Linen, |
|||
Color32.Magenta, |
|||
Color32.Maroon, |
|||
Color32.MediumAquamarine, |
|||
Color32.MediumBlue, |
|||
Color32.MediumOrchid, |
|||
Color32.MediumPurple, |
|||
Color32.MediumSeaGreen, |
|||
Color32.MediumSlateBlue, |
|||
Color32.MediumSpringGreen, |
|||
Color32.MediumTurquoise, |
|||
Color32.MediumVioletRed, |
|||
Color32.MidnightBlue, |
|||
Color32.MintCream, |
|||
Color32.MistyRose, |
|||
Color32.Moccasin, |
|||
Color32.NavajoWhite, |
|||
Color32.Navy, |
|||
Color32.OldLace, |
|||
Color32.Olive, |
|||
Color32.OliveDrab, |
|||
Color32.Orange, |
|||
Color32.OrangeRed, |
|||
Color32.Orchid, |
|||
Color32.PaleGoldenrod, |
|||
Color32.PaleGreen, |
|||
Color32.PaleTurquoise, |
|||
Color32.PaleVioletRed, |
|||
Color32.PapayaWhip, |
|||
Color32.PeachPuff, |
|||
Color32.Peru, |
|||
Color32.Pink, |
|||
Color32.Plum, |
|||
Color32.PowderBlue, |
|||
Color32.Purple, |
|||
Color32.RebeccaPurple, |
|||
Color32.Red, |
|||
Color32.RosyBrown, |
|||
Color32.RoyalBlue, |
|||
Color32.SaddleBrown, |
|||
Color32.Salmon, |
|||
Color32.SandyBrown, |
|||
Color32.SeaGreen, |
|||
Color32.SeaShell, |
|||
Color32.Sienna, |
|||
Color32.Silver, |
|||
Color32.SkyBlue, |
|||
Color32.SlateBlue, |
|||
Color32.SlateGray, |
|||
Color32.Snow, |
|||
Color32.SpringGreen, |
|||
Color32.SteelBlue, |
|||
Color32.Tan, |
|||
Color32.Teal, |
|||
Color32.Thistle, |
|||
Color32.Tomato, |
|||
Color32.Transparent, |
|||
Color32.Turquoise, |
|||
Color32.Violet, |
|||
Color32.Wheat, |
|||
Color32.White, |
|||
Color32.WhiteSmoke, |
|||
Color32.Yellow, |
|||
Color32.YellowGreen |
|||
}.ToArray(); |
|||
} |
|||
} |
|||
} |
|||
@ -1,728 +0,0 @@ |
|||
// <copyright file="Color32Definitions.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
namespace ImageSharp |
|||
{ |
|||
/// <summary>
|
|||
/// Packed vector type containing four 8-bit unsigned normalized values ranging from 0 to 255.
|
|||
/// The color components are stored in red, green, blue, and alpha order.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// This struct is fully mutable. This is done (against the guidelines) for the sake of performance,
|
|||
/// as it avoids the need to create new values for modification operations.
|
|||
/// </remarks>
|
|||
public partial struct Color32 |
|||
{ |
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F0F8FF.
|
|||
/// </summary>
|
|||
public static readonly Color32 AliceBlue = NamedColors<Color32>.AliceBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FAEBD7.
|
|||
/// </summary>
|
|||
public static readonly Color32 AntiqueWhite = NamedColors<Color32>.AntiqueWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Aqua = NamedColors<Color32>.Aqua; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #7FFFD4.
|
|||
/// </summary>
|
|||
public static readonly Color32 Aquamarine = NamedColors<Color32>.Aquamarine; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F0FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Azure = NamedColors<Color32>.Azure; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F5F5DC.
|
|||
/// </summary>
|
|||
public static readonly Color32 Beige = NamedColors<Color32>.Beige; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFE4C4.
|
|||
/// </summary>
|
|||
public static readonly Color32 Bisque = NamedColors<Color32>.Bisque; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #000000.
|
|||
/// </summary>
|
|||
public static readonly Color32 Black = NamedColors<Color32>.Black; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFEBCD.
|
|||
/// </summary>
|
|||
public static readonly Color32 BlanchedAlmond = NamedColors<Color32>.BlanchedAlmond; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #0000FF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Blue = NamedColors<Color32>.Blue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #8A2BE2.
|
|||
/// </summary>
|
|||
public static readonly Color32 BlueViolet = NamedColors<Color32>.BlueViolet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #A52A2A.
|
|||
/// </summary>
|
|||
public static readonly Color32 Brown = NamedColors<Color32>.Brown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DEB887.
|
|||
/// </summary>
|
|||
public static readonly Color32 BurlyWood = NamedColors<Color32>.BurlyWood; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #5F9EA0.
|
|||
/// </summary>
|
|||
public static readonly Color32 CadetBlue = NamedColors<Color32>.CadetBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #7FFF00.
|
|||
/// </summary>
|
|||
public static readonly Color32 Chartreuse = NamedColors<Color32>.Chartreuse; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #D2691E.
|
|||
/// </summary>
|
|||
public static readonly Color32 Chocolate = NamedColors<Color32>.Chocolate; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF7F50.
|
|||
/// </summary>
|
|||
public static readonly Color32 Coral = NamedColors<Color32>.Coral; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #6495ED.
|
|||
/// </summary>
|
|||
public static readonly Color32 CornflowerBlue = NamedColors<Color32>.CornflowerBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFF8DC.
|
|||
/// </summary>
|
|||
public static readonly Color32 Cornsilk = NamedColors<Color32>.Cornsilk; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DC143C.
|
|||
/// </summary>
|
|||
public static readonly Color32 Crimson = NamedColors<Color32>.Crimson; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Cyan = NamedColors<Color32>.Cyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00008B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkBlue = NamedColors<Color32>.DarkBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #008B8B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkCyan = NamedColors<Color32>.DarkCyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #B8860B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkGoldenrod = NamedColors<Color32>.DarkGoldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #A9A9A9.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkGray = NamedColors<Color32>.DarkGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #006400.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkGreen = NamedColors<Color32>.DarkGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #BDB76B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkKhaki = NamedColors<Color32>.DarkKhaki; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #8B008B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkMagenta = NamedColors<Color32>.DarkMagenta; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #556B2F.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkOliveGreen = NamedColors<Color32>.DarkOliveGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF8C00.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkOrange = NamedColors<Color32>.DarkOrange; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #9932CC.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkOrchid = NamedColors<Color32>.DarkOrchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #8B0000.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkRed = NamedColors<Color32>.DarkRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #E9967A.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkSalmon = NamedColors<Color32>.DarkSalmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #8FBC8B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkSeaGreen = NamedColors<Color32>.DarkSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #483D8B.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkSlateBlue = NamedColors<Color32>.DarkSlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #2F4F4F.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkSlateGray = NamedColors<Color32>.DarkSlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00CED1.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkTurquoise = NamedColors<Color32>.DarkTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #9400D3.
|
|||
/// </summary>
|
|||
public static readonly Color32 DarkViolet = NamedColors<Color32>.DarkViolet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF1493.
|
|||
/// </summary>
|
|||
public static readonly Color32 DeepPink = NamedColors<Color32>.DeepPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00BFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 DeepSkyBlue = NamedColors<Color32>.DeepSkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #696969.
|
|||
/// </summary>
|
|||
public static readonly Color32 DimGray = NamedColors<Color32>.DimGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #1E90FF.
|
|||
/// </summary>
|
|||
public static readonly Color32 DodgerBlue = NamedColors<Color32>.DodgerBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #B22222.
|
|||
/// </summary>
|
|||
public static readonly Color32 Firebrick = NamedColors<Color32>.Firebrick; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFAF0.
|
|||
/// </summary>
|
|||
public static readonly Color32 FloralWhite = NamedColors<Color32>.FloralWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #228B22.
|
|||
/// </summary>
|
|||
public static readonly Color32 ForestGreen = NamedColors<Color32>.ForestGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF00FF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Fuchsia = NamedColors<Color32>.Fuchsia; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DCDCDC.
|
|||
/// </summary>
|
|||
public static readonly Color32 Gainsboro = NamedColors<Color32>.Gainsboro; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F8F8FF.
|
|||
/// </summary>
|
|||
public static readonly Color32 GhostWhite = NamedColors<Color32>.GhostWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFD700.
|
|||
/// </summary>
|
|||
public static readonly Color32 Gold = NamedColors<Color32>.Gold; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DAA520.
|
|||
/// </summary>
|
|||
public static readonly Color32 Goldenrod = NamedColors<Color32>.Goldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #808080.
|
|||
/// </summary>
|
|||
public static readonly Color32 Gray = NamedColors<Color32>.Gray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #008000.
|
|||
/// </summary>
|
|||
public static readonly Color32 Green = NamedColors<Color32>.Green; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #ADFF2F.
|
|||
/// </summary>
|
|||
public static readonly Color32 GreenYellow = NamedColors<Color32>.GreenYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F0FFF0.
|
|||
/// </summary>
|
|||
public static readonly Color32 Honeydew = NamedColors<Color32>.Honeydew; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF69B4.
|
|||
/// </summary>
|
|||
public static readonly Color32 HotPink = NamedColors<Color32>.HotPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #CD5C5C.
|
|||
/// </summary>
|
|||
public static readonly Color32 IndianRed = NamedColors<Color32>.IndianRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #4B0082.
|
|||
/// </summary>
|
|||
public static readonly Color32 Indigo = NamedColors<Color32>.Indigo; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFFF0.
|
|||
/// </summary>
|
|||
public static readonly Color32 Ivory = NamedColors<Color32>.Ivory; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F0E68C.
|
|||
/// </summary>
|
|||
public static readonly Color32 Khaki = NamedColors<Color32>.Khaki; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #E6E6FA.
|
|||
/// </summary>
|
|||
public static readonly Color32 Lavender = NamedColors<Color32>.Lavender; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFF0F5.
|
|||
/// </summary>
|
|||
public static readonly Color32 LavenderBlush = NamedColors<Color32>.LavenderBlush; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #7CFC00.
|
|||
/// </summary>
|
|||
public static readonly Color32 LawnGreen = NamedColors<Color32>.LawnGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFACD.
|
|||
/// </summary>
|
|||
public static readonly Color32 LemonChiffon = NamedColors<Color32>.LemonChiffon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #ADD8E6.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightBlue = NamedColors<Color32>.LightBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F08080.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightCoral = NamedColors<Color32>.LightCoral; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #E0FFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightCyan = NamedColors<Color32>.LightCyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FAFAD2.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightGoldenrodYellow = NamedColors<Color32>.LightGoldenrodYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #D3D3D3.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightGray = NamedColors<Color32>.LightGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #90EE90.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightGreen = NamedColors<Color32>.LightGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFB6C1.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightPink = NamedColors<Color32>.LightPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFA07A.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightSalmon = NamedColors<Color32>.LightSalmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #20B2AA.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightSeaGreen = NamedColors<Color32>.LightSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #87CEFA.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightSkyBlue = NamedColors<Color32>.LightSkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #778899.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightSlateGray = NamedColors<Color32>.LightSlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #B0C4DE.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightSteelBlue = NamedColors<Color32>.LightSteelBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFFE0.
|
|||
/// </summary>
|
|||
public static readonly Color32 LightYellow = NamedColors<Color32>.LightYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00FF00.
|
|||
/// </summary>
|
|||
public static readonly Color32 Lime = NamedColors<Color32>.Lime; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #32CD32.
|
|||
/// </summary>
|
|||
public static readonly Color32 LimeGreen = NamedColors<Color32>.LimeGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FAF0E6.
|
|||
/// </summary>
|
|||
public static readonly Color32 Linen = NamedColors<Color32>.Linen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF00FF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Magenta = NamedColors<Color32>.Magenta; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #800000.
|
|||
/// </summary>
|
|||
public static readonly Color32 Maroon = NamedColors<Color32>.Maroon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #66CDAA.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumAquamarine = NamedColors<Color32>.MediumAquamarine; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #0000CD.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumBlue = NamedColors<Color32>.MediumBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #BA55D3.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumOrchid = NamedColors<Color32>.MediumOrchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #9370DB.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumPurple = NamedColors<Color32>.MediumPurple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #3CB371.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumSeaGreen = NamedColors<Color32>.MediumSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #7B68EE.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumSlateBlue = NamedColors<Color32>.MediumSlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00FA9A.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumSpringGreen = NamedColors<Color32>.MediumSpringGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #48D1CC.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumTurquoise = NamedColors<Color32>.MediumTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #C71585.
|
|||
/// </summary>
|
|||
public static readonly Color32 MediumVioletRed = NamedColors<Color32>.MediumVioletRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #191970.
|
|||
/// </summary>
|
|||
public static readonly Color32 MidnightBlue = NamedColors<Color32>.MidnightBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F5FFFA.
|
|||
/// </summary>
|
|||
public static readonly Color32 MintCream = NamedColors<Color32>.MintCream; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFE4E1.
|
|||
/// </summary>
|
|||
public static readonly Color32 MistyRose = NamedColors<Color32>.MistyRose; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFE4B5.
|
|||
/// </summary>
|
|||
public static readonly Color32 Moccasin = NamedColors<Color32>.Moccasin; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFDEAD.
|
|||
/// </summary>
|
|||
public static readonly Color32 NavajoWhite = NamedColors<Color32>.NavajoWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #000080.
|
|||
/// </summary>
|
|||
public static readonly Color32 Navy = NamedColors<Color32>.Navy; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FDF5E6.
|
|||
/// </summary>
|
|||
public static readonly Color32 OldLace = NamedColors<Color32>.OldLace; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #808000.
|
|||
/// </summary>
|
|||
public static readonly Color32 Olive = NamedColors<Color32>.Olive; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #6B8E23.
|
|||
/// </summary>
|
|||
public static readonly Color32 OliveDrab = NamedColors<Color32>.OliveDrab; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFA500.
|
|||
/// </summary>
|
|||
public static readonly Color32 Orange = NamedColors<Color32>.Orange; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF4500.
|
|||
/// </summary>
|
|||
public static readonly Color32 OrangeRed = NamedColors<Color32>.OrangeRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DA70D6.
|
|||
/// </summary>
|
|||
public static readonly Color32 Orchid = NamedColors<Color32>.Orchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #EEE8AA.
|
|||
/// </summary>
|
|||
public static readonly Color32 PaleGoldenrod = NamedColors<Color32>.PaleGoldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #98FB98.
|
|||
/// </summary>
|
|||
public static readonly Color32 PaleGreen = NamedColors<Color32>.PaleGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #AFEEEE.
|
|||
/// </summary>
|
|||
public static readonly Color32 PaleTurquoise = NamedColors<Color32>.PaleTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DB7093.
|
|||
/// </summary>
|
|||
public static readonly Color32 PaleVioletRed = NamedColors<Color32>.PaleVioletRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFEFD5.
|
|||
/// </summary>
|
|||
public static readonly Color32 PapayaWhip = NamedColors<Color32>.PapayaWhip; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFDAB9.
|
|||
/// </summary>
|
|||
public static readonly Color32 PeachPuff = NamedColors<Color32>.PeachPuff; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #CD853F.
|
|||
/// </summary>
|
|||
public static readonly Color32 Peru = NamedColors<Color32>.Peru; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFC0CB.
|
|||
/// </summary>
|
|||
public static readonly Color32 Pink = NamedColors<Color32>.Pink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #DDA0DD.
|
|||
/// </summary>
|
|||
public static readonly Color32 Plum = NamedColors<Color32>.Plum; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #B0E0E6.
|
|||
/// </summary>
|
|||
public static readonly Color32 PowderBlue = NamedColors<Color32>.PowderBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #800080.
|
|||
/// </summary>
|
|||
public static readonly Color32 Purple = NamedColors<Color32>.Purple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #663399.
|
|||
/// </summary>
|
|||
public static readonly Color32 RebeccaPurple = NamedColors<Color32>.RebeccaPurple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF0000.
|
|||
/// </summary>
|
|||
public static readonly Color32 Red = NamedColors<Color32>.Red; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #BC8F8F.
|
|||
/// </summary>
|
|||
public static readonly Color32 RosyBrown = NamedColors<Color32>.RosyBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #4169E1.
|
|||
/// </summary>
|
|||
public static readonly Color32 RoyalBlue = NamedColors<Color32>.RoyalBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #8B4513.
|
|||
/// </summary>
|
|||
public static readonly Color32 SaddleBrown = NamedColors<Color32>.SaddleBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FA8072.
|
|||
/// </summary>
|
|||
public static readonly Color32 Salmon = NamedColors<Color32>.Salmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F4A460.
|
|||
/// </summary>
|
|||
public static readonly Color32 SandyBrown = NamedColors<Color32>.SandyBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #2E8B57.
|
|||
/// </summary>
|
|||
public static readonly Color32 SeaGreen = NamedColors<Color32>.SeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFF5EE.
|
|||
/// </summary>
|
|||
public static readonly Color32 SeaShell = NamedColors<Color32>.SeaShell; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #A0522D.
|
|||
/// </summary>
|
|||
public static readonly Color32 Sienna = NamedColors<Color32>.Sienna; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #C0C0C0.
|
|||
/// </summary>
|
|||
public static readonly Color32 Silver = NamedColors<Color32>.Silver; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #87CEEB.
|
|||
/// </summary>
|
|||
public static readonly Color32 SkyBlue = NamedColors<Color32>.SkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #6A5ACD.
|
|||
/// </summary>
|
|||
public static readonly Color32 SlateBlue = NamedColors<Color32>.SlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #708090.
|
|||
/// </summary>
|
|||
public static readonly Color32 SlateGray = NamedColors<Color32>.SlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFAFA.
|
|||
/// </summary>
|
|||
public static readonly Color32 Snow = NamedColors<Color32>.Snow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #00FF7F.
|
|||
/// </summary>
|
|||
public static readonly Color32 SpringGreen = NamedColors<Color32>.SpringGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #4682B4.
|
|||
/// </summary>
|
|||
public static readonly Color32 SteelBlue = NamedColors<Color32>.SteelBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #D2B48C.
|
|||
/// </summary>
|
|||
public static readonly Color32 Tan = NamedColors<Color32>.Tan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #008080.
|
|||
/// </summary>
|
|||
public static readonly Color32 Teal = NamedColors<Color32>.Teal; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #D8BFD8.
|
|||
/// </summary>
|
|||
public static readonly Color32 Thistle = NamedColors<Color32>.Thistle; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FF6347.
|
|||
/// </summary>
|
|||
public static readonly Color32 Tomato = NamedColors<Color32>.Tomato; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 Transparent = NamedColors<Color32>.Transparent; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #40E0D0.
|
|||
/// </summary>
|
|||
public static readonly Color32 Turquoise = NamedColors<Color32>.Turquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #EE82EE.
|
|||
/// </summary>
|
|||
public static readonly Color32 Violet = NamedColors<Color32>.Violet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F5DEB3.
|
|||
/// </summary>
|
|||
public static readonly Color32 Wheat = NamedColors<Color32>.Wheat; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|||
/// </summary>
|
|||
public static readonly Color32 White = NamedColors<Color32>.White; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #F5F5F5.
|
|||
/// </summary>
|
|||
public static readonly Color32 WhiteSmoke = NamedColors<Color32>.WhiteSmoke; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #FFFF00.
|
|||
/// </summary>
|
|||
public static readonly Color32 Yellow = NamedColors<Color32>.Yellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="Color32"/> matching the W3C definition that has an hex value of #9ACD32.
|
|||
/// </summary>
|
|||
public static readonly Color32 YellowGreen = NamedColors<Color32>.YellowGreen; |
|||
} |
|||
} |
|||
@ -0,0 +1,179 @@ |
|||
// <copyright file="ColorConstants.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
namespace ImageSharp |
|||
{ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
/// <summary>
|
|||
/// Provides useful color definitions.
|
|||
/// </summary>
|
|||
public static class ColorConstants |
|||
{ |
|||
/// <summary>
|
|||
/// Provides a lazy, one time method of returning the colors.
|
|||
/// </summary>
|
|||
private static readonly Lazy<Color[]> SafeColors = new Lazy<Color[]>(GetWebSafeColors); |
|||
|
|||
/// <summary>
|
|||
/// Gets a collection of named, web safe, colors as defined in the CSS Color Module Level 4.
|
|||
/// </summary>
|
|||
public static Color[] WebSafeColors => SafeColors.Value; |
|||
|
|||
/// <summary>
|
|||
/// Returns an array of web safe colors.
|
|||
/// </summary>
|
|||
/// <returns>The <see cref="T:Color[]"/></returns>
|
|||
private static Color[] GetWebSafeColors() |
|||
{ |
|||
return new List<Color> |
|||
{ |
|||
Color.AliceBlue, |
|||
Color.AntiqueWhite, |
|||
Color.Aqua, |
|||
Color.Aquamarine, |
|||
Color.Azure, |
|||
Color.Beige, |
|||
Color.Bisque, |
|||
Color.Black, |
|||
Color.BlanchedAlmond, |
|||
Color.Blue, |
|||
Color.BlueViolet, |
|||
Color.Brown, |
|||
Color.BurlyWood, |
|||
Color.CadetBlue, |
|||
Color.Chartreuse, |
|||
Color.Chocolate, |
|||
Color.Coral, |
|||
Color.CornflowerBlue, |
|||
Color.Cornsilk, |
|||
Color.Crimson, |
|||
Color.Cyan, |
|||
Color.DarkBlue, |
|||
Color.DarkCyan, |
|||
Color.DarkGoldenrod, |
|||
Color.DarkGray, |
|||
Color.DarkGreen, |
|||
Color.DarkKhaki, |
|||
Color.DarkMagenta, |
|||
Color.DarkOliveGreen, |
|||
Color.DarkOrange, |
|||
Color.DarkOrchid, |
|||
Color.DarkRed, |
|||
Color.DarkSalmon, |
|||
Color.DarkSeaGreen, |
|||
Color.DarkSlateBlue, |
|||
Color.DarkSlateGray, |
|||
Color.DarkTurquoise, |
|||
Color.DarkViolet, |
|||
Color.DeepPink, |
|||
Color.DeepSkyBlue, |
|||
Color.DimGray, |
|||
Color.DodgerBlue, |
|||
Color.Firebrick, |
|||
Color.FloralWhite, |
|||
Color.ForestGreen, |
|||
Color.Fuchsia, |
|||
Color.Gainsboro, |
|||
Color.GhostWhite, |
|||
Color.Gold, |
|||
Color.Goldenrod, |
|||
Color.Gray, |
|||
Color.Green, |
|||
Color.GreenYellow, |
|||
Color.Honeydew, |
|||
Color.HotPink, |
|||
Color.IndianRed, |
|||
Color.Indigo, |
|||
Color.Ivory, |
|||
Color.Khaki, |
|||
Color.Lavender, |
|||
Color.LavenderBlush, |
|||
Color.LawnGreen, |
|||
Color.LemonChiffon, |
|||
Color.LightBlue, |
|||
Color.LightCoral, |
|||
Color.LightCyan, |
|||
Color.LightGoldenrodYellow, |
|||
Color.LightGray, |
|||
Color.LightGreen, |
|||
Color.LightPink, |
|||
Color.LightSalmon, |
|||
Color.LightSeaGreen, |
|||
Color.LightSkyBlue, |
|||
Color.LightSlateGray, |
|||
Color.LightSteelBlue, |
|||
Color.LightYellow, |
|||
Color.Lime, |
|||
Color.LimeGreen, |
|||
Color.Linen, |
|||
Color.Magenta, |
|||
Color.Maroon, |
|||
Color.MediumAquamarine, |
|||
Color.MediumBlue, |
|||
Color.MediumOrchid, |
|||
Color.MediumPurple, |
|||
Color.MediumSeaGreen, |
|||
Color.MediumSlateBlue, |
|||
Color.MediumSpringGreen, |
|||
Color.MediumTurquoise, |
|||
Color.MediumVioletRed, |
|||
Color.MidnightBlue, |
|||
Color.MintCream, |
|||
Color.MistyRose, |
|||
Color.Moccasin, |
|||
Color.NavajoWhite, |
|||
Color.Navy, |
|||
Color.OldLace, |
|||
Color.Olive, |
|||
Color.OliveDrab, |
|||
Color.Orange, |
|||
Color.OrangeRed, |
|||
Color.Orchid, |
|||
Color.PaleGoldenrod, |
|||
Color.PaleGreen, |
|||
Color.PaleTurquoise, |
|||
Color.PaleVioletRed, |
|||
Color.PapayaWhip, |
|||
Color.PeachPuff, |
|||
Color.Peru, |
|||
Color.Pink, |
|||
Color.Plum, |
|||
Color.PowderBlue, |
|||
Color.Purple, |
|||
Color.RebeccaPurple, |
|||
Color.Red, |
|||
Color.RosyBrown, |
|||
Color.RoyalBlue, |
|||
Color.SaddleBrown, |
|||
Color.Salmon, |
|||
Color.SandyBrown, |
|||
Color.SeaGreen, |
|||
Color.SeaShell, |
|||
Color.Sienna, |
|||
Color.Silver, |
|||
Color.SkyBlue, |
|||
Color.SlateBlue, |
|||
Color.SlateGray, |
|||
Color.Snow, |
|||
Color.SpringGreen, |
|||
Color.SteelBlue, |
|||
Color.Tan, |
|||
Color.Teal, |
|||
Color.Thistle, |
|||
Color.Tomato, |
|||
Color.Transparent, |
|||
Color.Turquoise, |
|||
Color.Violet, |
|||
Color.Wheat, |
|||
Color.White, |
|||
Color.WhiteSmoke, |
|||
Color.Yellow, |
|||
Color.YellowGreen |
|||
}.ToArray(); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,27 @@ |
|||
namespace ImageSharp |
|||
{ |
|||
using System.Numerics; |
|||
|
|||
/// <summary>
|
|||
/// Unpacked pixel type containing four 16-bit unsigned normalized values typically ranging from 0 to 1.
|
|||
/// The color components are stored in red, green, blue, and alpha order.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// This struct is fully mutable. This is done (against the guidelines) for the sake of performance,
|
|||
/// as it avoids the need to create new values for modification operations.
|
|||
/// </remarks>
|
|||
public partial struct ColorVector |
|||
{ |
|||
/// <summary>
|
|||
/// <see cref="BulkPixelOperations{TColor}"/> implementation optimized for <see cref="ColorVector"/>.
|
|||
/// </summary>
|
|||
internal class BulkOperations : BulkPixelOperations<ColorVector> |
|||
{ |
|||
/// <inheritdoc />
|
|||
internal override unsafe void ToVector4(BufferSpan<ColorVector> sourceColors, BufferSpan<Vector4> destVectors, int count) |
|||
{ |
|||
BufferSpan.Copy(sourceColors.AsBytes(), destVectors.AsBytes(), count * sizeof(Vector4)); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,728 @@ |
|||
// <copyright file="ColorVector.Definitions.cs" company="James Jackson-South">
|
|||
// Copyright (c) James Jackson-South and contributors.
|
|||
// Licensed under the Apache License, Version 2.0.
|
|||
// </copyright>
|
|||
|
|||
namespace ImageSharp |
|||
{ |
|||
/// <summary>
|
|||
/// Unpacked pixel type containing four 8-bit unsigned normalized values ranging from 0 to 255.
|
|||
/// The color components are stored in red, green, blue, and alpha order.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// This struct is fully mutable. This is done (against the guidelines) for the sake of performance,
|
|||
/// as it avoids the need to create new values for modification operations.
|
|||
/// </remarks>
|
|||
public partial struct ColorVector |
|||
{ |
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F0F8FF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector AliceBlue = NamedColors<ColorVector>.AliceBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FAEBD7.
|
|||
/// </summary>
|
|||
public static readonly ColorVector AntiqueWhite = NamedColors<ColorVector>.AntiqueWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00FFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Aqua = NamedColors<ColorVector>.Aqua; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #7FFFD4.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Aquamarine = NamedColors<ColorVector>.Aquamarine; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F0FFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Azure = NamedColors<ColorVector>.Azure; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F5F5DC.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Beige = NamedColors<ColorVector>.Beige; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFE4C4.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Bisque = NamedColors<ColorVector>.Bisque; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #000000.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Black = NamedColors<ColorVector>.Black; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFEBCD.
|
|||
/// </summary>
|
|||
public static readonly ColorVector BlanchedAlmond = NamedColors<ColorVector>.BlanchedAlmond; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #0000FF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Blue = NamedColors<ColorVector>.Blue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #8A2BE2.
|
|||
/// </summary>
|
|||
public static readonly ColorVector BlueViolet = NamedColors<ColorVector>.BlueViolet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #A52A2A.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Brown = NamedColors<ColorVector>.Brown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DEB887.
|
|||
/// </summary>
|
|||
public static readonly ColorVector BurlyWood = NamedColors<ColorVector>.BurlyWood; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #5F9EA0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector CadetBlue = NamedColors<ColorVector>.CadetBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #7FFF00.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Chartreuse = NamedColors<ColorVector>.Chartreuse; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #D2691E.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Chocolate = NamedColors<ColorVector>.Chocolate; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF7F50.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Coral = NamedColors<ColorVector>.Coral; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #6495ED.
|
|||
/// </summary>
|
|||
public static readonly ColorVector CornflowerBlue = NamedColors<ColorVector>.CornflowerBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFF8DC.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Cornsilk = NamedColors<ColorVector>.Cornsilk; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DC143C.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Crimson = NamedColors<ColorVector>.Crimson; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00FFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Cyan = NamedColors<ColorVector>.Cyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00008B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkBlue = NamedColors<ColorVector>.DarkBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #008B8B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkCyan = NamedColors<ColorVector>.DarkCyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #B8860B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkGoldenrod = NamedColors<ColorVector>.DarkGoldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #A9A9A9.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkGray = NamedColors<ColorVector>.DarkGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #006400.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkGreen = NamedColors<ColorVector>.DarkGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #BDB76B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkKhaki = NamedColors<ColorVector>.DarkKhaki; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #8B008B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkMagenta = NamedColors<ColorVector>.DarkMagenta; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #556B2F.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkOliveGreen = NamedColors<ColorVector>.DarkOliveGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF8C00.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkOrange = NamedColors<ColorVector>.DarkOrange; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #9932CC.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkOrchid = NamedColors<ColorVector>.DarkOrchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #8B0000.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkRed = NamedColors<ColorVector>.DarkRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #E9967A.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkSalmon = NamedColors<ColorVector>.DarkSalmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #8FBC8B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkSeaGreen = NamedColors<ColorVector>.DarkSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #483D8B.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkSlateBlue = NamedColors<ColorVector>.DarkSlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #2F4F4F.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkSlateGray = NamedColors<ColorVector>.DarkSlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00CED1.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkTurquoise = NamedColors<ColorVector>.DarkTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #9400D3.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DarkViolet = NamedColors<ColorVector>.DarkViolet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF1493.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DeepPink = NamedColors<ColorVector>.DeepPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00BFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DeepSkyBlue = NamedColors<ColorVector>.DeepSkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #696969.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DimGray = NamedColors<ColorVector>.DimGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #1E90FF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector DodgerBlue = NamedColors<ColorVector>.DodgerBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #B22222.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Firebrick = NamedColors<ColorVector>.Firebrick; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFAF0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector FloralWhite = NamedColors<ColorVector>.FloralWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #228B22.
|
|||
/// </summary>
|
|||
public static readonly ColorVector ForestGreen = NamedColors<ColorVector>.ForestGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF00FF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Fuchsia = NamedColors<ColorVector>.Fuchsia; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DCDCDC.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Gainsboro = NamedColors<ColorVector>.Gainsboro; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F8F8FF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector GhostWhite = NamedColors<ColorVector>.GhostWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFD700.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Gold = NamedColors<ColorVector>.Gold; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DAA520.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Goldenrod = NamedColors<ColorVector>.Goldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #808080.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Gray = NamedColors<ColorVector>.Gray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #008000.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Green = NamedColors<ColorVector>.Green; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #ADFF2F.
|
|||
/// </summary>
|
|||
public static readonly ColorVector GreenYellow = NamedColors<ColorVector>.GreenYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F0FFF0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Honeydew = NamedColors<ColorVector>.Honeydew; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF69B4.
|
|||
/// </summary>
|
|||
public static readonly ColorVector HotPink = NamedColors<ColorVector>.HotPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #CD5C5C.
|
|||
/// </summary>
|
|||
public static readonly ColorVector IndianRed = NamedColors<ColorVector>.IndianRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #4B0082.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Indigo = NamedColors<ColorVector>.Indigo; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFFF0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Ivory = NamedColors<ColorVector>.Ivory; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F0E68C.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Khaki = NamedColors<ColorVector>.Khaki; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #E6E6FA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Lavender = NamedColors<ColorVector>.Lavender; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFF0F5.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LavenderBlush = NamedColors<ColorVector>.LavenderBlush; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #7CFC00.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LawnGreen = NamedColors<ColorVector>.LawnGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFACD.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LemonChiffon = NamedColors<ColorVector>.LemonChiffon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #ADD8E6.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightBlue = NamedColors<ColorVector>.LightBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F08080.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightCoral = NamedColors<ColorVector>.LightCoral; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #E0FFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightCyan = NamedColors<ColorVector>.LightCyan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FAFAD2.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightGoldenrodYellow = NamedColors<ColorVector>.LightGoldenrodYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #D3D3D3.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightGray = NamedColors<ColorVector>.LightGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #90EE90.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightGreen = NamedColors<ColorVector>.LightGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFB6C1.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightPink = NamedColors<ColorVector>.LightPink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFA07A.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightSalmon = NamedColors<ColorVector>.LightSalmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #20B2AA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightSeaGreen = NamedColors<ColorVector>.LightSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #87CEFA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightSkyBlue = NamedColors<ColorVector>.LightSkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #778899.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightSlateGray = NamedColors<ColorVector>.LightSlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #B0C4DE.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightSteelBlue = NamedColors<ColorVector>.LightSteelBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFFE0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LightYellow = NamedColors<ColorVector>.LightYellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00FF00.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Lime = NamedColors<ColorVector>.Lime; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #32CD32.
|
|||
/// </summary>
|
|||
public static readonly ColorVector LimeGreen = NamedColors<ColorVector>.LimeGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FAF0E6.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Linen = NamedColors<ColorVector>.Linen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF00FF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Magenta = NamedColors<ColorVector>.Magenta; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #800000.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Maroon = NamedColors<ColorVector>.Maroon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #66CDAA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumAquamarine = NamedColors<ColorVector>.MediumAquamarine; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #0000CD.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumBlue = NamedColors<ColorVector>.MediumBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #BA55D3.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumOrchid = NamedColors<ColorVector>.MediumOrchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #9370DB.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumPurple = NamedColors<ColorVector>.MediumPurple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #3CB371.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumSeaGreen = NamedColors<ColorVector>.MediumSeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #7B68EE.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumSlateBlue = NamedColors<ColorVector>.MediumSlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00FA9A.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumSpringGreen = NamedColors<ColorVector>.MediumSpringGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #48D1CC.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumTurquoise = NamedColors<ColorVector>.MediumTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #C71585.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MediumVioletRed = NamedColors<ColorVector>.MediumVioletRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #191970.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MidnightBlue = NamedColors<ColorVector>.MidnightBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F5FFFA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MintCream = NamedColors<ColorVector>.MintCream; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFE4E1.
|
|||
/// </summary>
|
|||
public static readonly ColorVector MistyRose = NamedColors<ColorVector>.MistyRose; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFE4B5.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Moccasin = NamedColors<ColorVector>.Moccasin; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFDEAD.
|
|||
/// </summary>
|
|||
public static readonly ColorVector NavajoWhite = NamedColors<ColorVector>.NavajoWhite; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #000080.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Navy = NamedColors<ColorVector>.Navy; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FDF5E6.
|
|||
/// </summary>
|
|||
public static readonly ColorVector OldLace = NamedColors<ColorVector>.OldLace; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #808000.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Olive = NamedColors<ColorVector>.Olive; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #6B8E23.
|
|||
/// </summary>
|
|||
public static readonly ColorVector OliveDrab = NamedColors<ColorVector>.OliveDrab; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFA500.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Orange = NamedColors<ColorVector>.Orange; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF4500.
|
|||
/// </summary>
|
|||
public static readonly ColorVector OrangeRed = NamedColors<ColorVector>.OrangeRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DA70D6.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Orchid = NamedColors<ColorVector>.Orchid; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #EEE8AA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PaleGoldenrod = NamedColors<ColorVector>.PaleGoldenrod; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #98FB98.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PaleGreen = NamedColors<ColorVector>.PaleGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #AFEEEE.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PaleTurquoise = NamedColors<ColorVector>.PaleTurquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DB7093.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PaleVioletRed = NamedColors<ColorVector>.PaleVioletRed; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFEFD5.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PapayaWhip = NamedColors<ColorVector>.PapayaWhip; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFDAB9.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PeachPuff = NamedColors<ColorVector>.PeachPuff; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #CD853F.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Peru = NamedColors<ColorVector>.Peru; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFC0CB.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Pink = NamedColors<ColorVector>.Pink; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #DDA0DD.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Plum = NamedColors<ColorVector>.Plum; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #B0E0E6.
|
|||
/// </summary>
|
|||
public static readonly ColorVector PowderBlue = NamedColors<ColorVector>.PowderBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #800080.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Purple = NamedColors<ColorVector>.Purple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #663399.
|
|||
/// </summary>
|
|||
public static readonly ColorVector RebeccaPurple = NamedColors<ColorVector>.RebeccaPurple; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF0000.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Red = NamedColors<ColorVector>.Red; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #BC8F8F.
|
|||
/// </summary>
|
|||
public static readonly ColorVector RosyBrown = NamedColors<ColorVector>.RosyBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #4169E1.
|
|||
/// </summary>
|
|||
public static readonly ColorVector RoyalBlue = NamedColors<ColorVector>.RoyalBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #8B4513.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SaddleBrown = NamedColors<ColorVector>.SaddleBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FA8072.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Salmon = NamedColors<ColorVector>.Salmon; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F4A460.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SandyBrown = NamedColors<ColorVector>.SandyBrown; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #2E8B57.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SeaGreen = NamedColors<ColorVector>.SeaGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFF5EE.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SeaShell = NamedColors<ColorVector>.SeaShell; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #A0522D.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Sienna = NamedColors<ColorVector>.Sienna; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #C0C0C0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Silver = NamedColors<ColorVector>.Silver; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #87CEEB.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SkyBlue = NamedColors<ColorVector>.SkyBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #6A5ACD.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SlateBlue = NamedColors<ColorVector>.SlateBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #708090.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SlateGray = NamedColors<ColorVector>.SlateGray; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFAFA.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Snow = NamedColors<ColorVector>.Snow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #00FF7F.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SpringGreen = NamedColors<ColorVector>.SpringGreen; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #4682B4.
|
|||
/// </summary>
|
|||
public static readonly ColorVector SteelBlue = NamedColors<ColorVector>.SteelBlue; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #D2B48C.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Tan = NamedColors<ColorVector>.Tan; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #008080.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Teal = NamedColors<ColorVector>.Teal; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #D8BFD8.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Thistle = NamedColors<ColorVector>.Thistle; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FF6347.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Tomato = NamedColors<ColorVector>.Tomato; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Transparent = NamedColors<ColorVector>.Transparent; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #40E0D0.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Turquoise = NamedColors<ColorVector>.Turquoise; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #EE82EE.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Violet = NamedColors<ColorVector>.Violet; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F5DEB3.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Wheat = NamedColors<ColorVector>.Wheat; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFFFF.
|
|||
/// </summary>
|
|||
public static readonly ColorVector White = NamedColors<ColorVector>.White; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #F5F5F5.
|
|||
/// </summary>
|
|||
public static readonly ColorVector WhiteSmoke = NamedColors<ColorVector>.WhiteSmoke; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #FFFF00.
|
|||
/// </summary>
|
|||
public static readonly ColorVector Yellow = NamedColors<ColorVector>.Yellow; |
|||
|
|||
/// <summary>
|
|||
/// Represents a <see cref="ColorVector"/> matching the W3C definition that has an hex value of #9ACD32.
|
|||
/// </summary>
|
|||
public static readonly ColorVector YellowGreen = NamedColors<ColorVector>.YellowGreen; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue