diff --git a/src/ImageSharp.Drawing/Brushes/Brushes.cs b/src/ImageSharp.Drawing/Brushes/Brushes.cs
index e8269848c..d7b10c32a 100644
--- a/src/ImageSharp.Drawing/Brushes/Brushes.cs
+++ b/src/ImageSharp.Drawing/Brushes/Brushes.cs
@@ -6,7 +6,7 @@
namespace ImageSharp.Drawing.Brushes
{
///
- /// A collection of methods for creating brushes. Brushes use for painting.
+ /// A collection of methods for creating brushes. Brushes use for painting.
///
public class Brushes
{
@@ -15,7 +15,7 @@ namespace ImageSharp.Drawing.Brushes
///
/// The color.
/// A Brush
- public static SolidBrush Solid(Color color)
+ public static SolidBrush Solid(Rgba32 color)
=> new SolidBrush(color);
///
@@ -24,8 +24,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush Percent10(Color foreColor)
- => new PatternBrush(Brushes.Percent10(foreColor, Color.Transparent));
+ public static PatternBrush Percent10(Rgba32 foreColor)
+ => new PatternBrush(Brushes.Percent10(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Percent10 Hatch Pattern with
@@ -34,8 +34,8 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush Percent10(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.Percent10(foreColor, backColor));
+ public static PatternBrush Percent10(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.Percent10(foreColor, backColor));
///
/// Create as brush that will paint a Percent20 Hatch Pattern with
@@ -43,8 +43,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush Percent20(Color foreColor)
- => new PatternBrush(Brushes.Percent20(foreColor, Color.Transparent));
+ public static PatternBrush Percent20(Rgba32 foreColor)
+ => new PatternBrush(Brushes.Percent20(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Percent20 Hatch Pattern with
@@ -53,8 +53,8 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush Percent20(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.Percent20(foreColor, backColor));
+ public static PatternBrush Percent20(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.Percent20(foreColor, backColor));
///
/// Create as brush that will paint a Horizontal Hatch Pattern with
@@ -62,8 +62,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush Horizontal(Color foreColor)
- => new PatternBrush(Brushes.Horizontal(foreColor, Color.Transparent));
+ public static PatternBrush Horizontal(Rgba32 foreColor)
+ => new PatternBrush(Brushes.Horizontal(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Horizontal Hatch Pattern with
@@ -72,8 +72,8 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush Horizontal(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.Horizontal(foreColor, backColor));
+ public static PatternBrush Horizontal(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.Horizontal(foreColor, backColor));
///
/// Create as brush that will paint a Min Hatch Pattern with
@@ -81,8 +81,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush Min(Color foreColor)
- => new PatternBrush(Brushes.Min(foreColor, Color.Transparent));
+ public static PatternBrush Min(Rgba32 foreColor)
+ => new PatternBrush(Brushes.Min(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Min Hatch Pattern with
@@ -91,8 +91,8 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush Min(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.Min(foreColor, backColor));
+ public static PatternBrush Min(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.Min(foreColor, backColor));
///
/// Create as brush that will paint a Vertical Hatch Pattern with
@@ -100,8 +100,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush Vertical(Color foreColor)
- => new PatternBrush(Brushes.Vertical(foreColor, Color.Transparent));
+ public static PatternBrush Vertical(Rgba32 foreColor)
+ => new PatternBrush(Brushes.Vertical(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Vertical Hatch Pattern with
@@ -110,8 +110,8 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush Vertical(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.Vertical(foreColor, backColor));
+ public static PatternBrush Vertical(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.Vertical(foreColor, backColor));
///
/// Create as brush that will paint a Forward Diagonal Hatch Pattern with
@@ -119,8 +119,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush ForwardDiagonal(Color foreColor)
- => new PatternBrush(Brushes.ForwardDiagonal(foreColor, Color.Transparent));
+ public static PatternBrush ForwardDiagonal(Rgba32 foreColor)
+ => new PatternBrush(Brushes.ForwardDiagonal(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Forward Diagonal Hatch Pattern with
@@ -129,8 +129,8 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush ForwardDiagonal(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.ForwardDiagonal(foreColor, backColor));
+ public static PatternBrush ForwardDiagonal(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.ForwardDiagonal(foreColor, backColor));
///
/// Create as brush that will paint a Backward Diagonal Hatch Pattern with
@@ -138,8 +138,8 @@ namespace ImageSharp.Drawing.Brushes
///
/// Color of the foreground.
/// A Brush
- public static PatternBrush BackwardDiagonal(Color foreColor)
- => new PatternBrush(Brushes.BackwardDiagonal(foreColor, Color.Transparent));
+ public static PatternBrush BackwardDiagonal(Rgba32 foreColor)
+ => new PatternBrush(Brushes.BackwardDiagonal(foreColor, Rgba32.Transparent));
///
/// Create as brush that will paint a Backward Diagonal Hatch Pattern with
@@ -148,7 +148,7 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the foreground.
/// Color of the background.
/// A Brush
- public static PatternBrush BackwardDiagonal(Color foreColor, Color backColor)
- => new PatternBrush(Brushes.BackwardDiagonal(foreColor, backColor));
+ public static PatternBrush BackwardDiagonal(Rgba32 foreColor, Rgba32 backColor)
+ => new PatternBrush(Brushes.BackwardDiagonal(foreColor, backColor));
}
}
\ No newline at end of file
diff --git a/src/ImageSharp.Drawing/Brushes/ImageBrush.cs b/src/ImageSharp.Drawing/Brushes/ImageBrush.cs
index a7124bfe8..84004a48d 100644
--- a/src/ImageSharp.Drawing/Brushes/ImageBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/ImageBrush.cs
@@ -6,15 +6,15 @@
namespace ImageSharp.Drawing.Brushes
{
///
- /// Provides an implementation of a solid brush for painting with repeating images. The brush uses for painting.
+ /// Provides an implementation of a solid brush for painting with repeating images. The brush uses for painting.
///
- public class ImageBrush : ImageBrush
+ public class ImageBrush : ImageBrush
{
///
/// Initializes a new instance of the class.
///
/// The image to paint.
- public ImageBrush(IImageBase image)
+ public ImageBrush(IImageBase image)
: base(image)
{
}
diff --git a/src/ImageSharp.Drawing/Brushes/PatternBrush.cs b/src/ImageSharp.Drawing/Brushes/PatternBrush.cs
index 5093a7df0..8884d1e02 100644
--- a/src/ImageSharp.Drawing/Brushes/PatternBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/PatternBrush.cs
@@ -6,9 +6,9 @@
namespace ImageSharp.Drawing.Brushes
{
///
- /// Provides an implementation of a pattern brush for painting patterns. The brush use for painting.
+ /// Provides an implementation of a pattern brush for painting patterns. The brush use for painting.
///
- public class PatternBrush : PatternBrush
+ public class PatternBrush : PatternBrush
{
///
/// Initializes a new instance of the class.
@@ -16,7 +16,7 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the fore.
/// Color of the back.
/// The pattern.
- public PatternBrush(Color foreColor, Color backColor, bool[,] pattern)
+ public PatternBrush(Rgba32 foreColor, Rgba32 backColor, bool[,] pattern)
: base(foreColor, backColor, pattern)
{
}
@@ -25,7 +25,7 @@ namespace ImageSharp.Drawing.Brushes
/// Initializes a new instance of the class.
///
/// The brush.
- internal PatternBrush(PatternBrush brush)
+ internal PatternBrush(PatternBrush brush)
: base(brush)
{
}
diff --git a/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs b/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs
index 0452a3f01..b18800371 100644
--- a/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs
@@ -8,7 +8,7 @@ namespace ImageSharp.Drawing.Brushes
///
/// Provides an implementation of a recolor brush for painting color changes.
///
- public class RecolorBrush : RecolorBrush
+ public class RecolorBrush : RecolorBrush
{
///
/// Initializes a new instance of the class.
@@ -16,7 +16,7 @@ namespace ImageSharp.Drawing.Brushes
/// Color of the source.
/// Color of the target.
/// The threshold.
- public RecolorBrush(Color sourceColor, Color targetColor, float threshold)
+ public RecolorBrush(Rgba32 sourceColor, Rgba32 targetColor, float threshold)
: base(sourceColor, targetColor, threshold)
{
}
diff --git a/src/ImageSharp.Drawing/Brushes/SolidBrush.cs b/src/ImageSharp.Drawing/Brushes/SolidBrush.cs
index 123d8a7e3..7c65d782a 100644
--- a/src/ImageSharp.Drawing/Brushes/SolidBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/SolidBrush.cs
@@ -6,15 +6,15 @@
namespace ImageSharp.Drawing.Brushes
{
///
- /// Provides an implementation of a solid brush for painting solid color areas. The brush uses for painting.
+ /// Provides an implementation of a solid brush for painting solid color areas. The brush uses for painting.
///
- public class SolidBrush : SolidBrush
+ public class SolidBrush : SolidBrush
{
///
/// Initializes a new instance of the class.
///
/// The color.
- public SolidBrush(Color color)
+ public SolidBrush(Rgba32 color)
: base(color)
{
}
diff --git a/src/ImageSharp.Drawing/Pens/Pen.cs b/src/ImageSharp.Drawing/Pens/Pen.cs
index 09fe89419..991ee14de 100644
--- a/src/ImageSharp.Drawing/Pens/Pen.cs
+++ b/src/ImageSharp.Drawing/Pens/Pen.cs
@@ -6,16 +6,16 @@
namespace ImageSharp.Drawing.Pens
{
///
- /// Represents a in the color space.
+ /// Represents a in the color space.
///
- public class Pen : Pen
+ public class Pen : Pen
{
///
/// Initializes a new instance of the class.
///
/// The color.
/// The width.
- public Pen(Color color, float width)
+ public Pen(Rgba32 color, float width)
: base(color, width)
{
}
@@ -25,7 +25,7 @@ namespace ImageSharp.Drawing.Pens
///
/// The brush.
/// The width.
- public Pen(IBrush brush, float width)
+ public Pen(IBrush brush, float width)
: base(brush, width)
{
}
@@ -36,7 +36,7 @@ namespace ImageSharp.Drawing.Pens
/// The brush.
/// The width.
/// The pattern.
- public Pen(IBrush brush, float width, float[] pattern)
+ public Pen(IBrush brush, float width, float[] pattern)
: base(brush, width, pattern)
{
}
@@ -45,7 +45,7 @@ namespace ImageSharp.Drawing.Pens
/// Initializes a new instance of the class.
///
/// The pen.
- internal Pen(Pen pen)
+ internal Pen(Pen pen)
: base(pen)
{
}
diff --git a/src/ImageSharp.Drawing/Pens/Pens.cs b/src/ImageSharp.Drawing/Pens/Pens.cs
index 039b7113f..532774f22 100644
--- a/src/ImageSharp.Drawing/Pens/Pens.cs
+++ b/src/ImageSharp.Drawing/Pens/Pens.cs
@@ -16,7 +16,7 @@ namespace ImageSharp.Drawing.Pens
/// The color.
/// The width.
/// The Pen
- public static Pen Solid(Color color, float width) => new Pen(color, width);
+ public static Pen Solid(Rgba32 color, float width) => new Pen(color, width);
///
/// Create a solid pen with out any drawing patterns
@@ -24,7 +24,7 @@ namespace ImageSharp.Drawing.Pens
/// The brush.
/// The width.
/// The Pen
- public static Pen Solid(IBrush brush, float width) => new Pen(brush, width);
+ public static Pen Solid(IBrush brush, float width) => new Pen(brush, width);
///
/// Create a pen with a 'Dash' drawing patterns
@@ -32,7 +32,7 @@ namespace ImageSharp.Drawing.Pens
/// The color.
/// The width.
/// The Pen
- public static Pen Dash(Color color, float width) => new Pen(Pens.Dash(color, width));
+ public static Pen Dash(Rgba32 color, float width) => new Pen(Pens.Dash(color, width));
///
/// Create a pen with a 'Dash' drawing patterns
@@ -40,7 +40,7 @@ namespace ImageSharp.Drawing.Pens
/// The brush.
/// The width.
/// The Pen
- public static Pen Dash(IBrush brush, float width) => new Pen(Pens.Dash(brush, width));
+ public static Pen Dash(IBrush brush, float width) => new Pen(Pens.Dash(brush, width));
///
/// Create a pen with a 'Dot' drawing patterns
@@ -48,7 +48,7 @@ namespace ImageSharp.Drawing.Pens
/// The color.
/// The width.
/// The Pen
- public static Pen Dot(Color color, float width) => new Pen(Pens.Dot(color, width));
+ public static Pen Dot(Rgba32 color, float width) => new Pen(Pens.Dot(color, width));
///
/// Create a pen with a 'Dot' drawing patterns
@@ -56,7 +56,7 @@ namespace ImageSharp.Drawing.Pens
/// The brush.
/// The width.
/// The Pen
- public static Pen Dot(IBrush brush, float width) => new Pen(Pens.Dot(brush, width));
+ public static Pen Dot(IBrush brush, float width) => new Pen(Pens.Dot(brush, width));
///
/// Create a pen with a 'Dash Dot' drawing patterns
@@ -64,7 +64,7 @@ namespace ImageSharp.Drawing.Pens
/// The color.
/// The width.
/// The Pen
- public static Pen DashDot(Color color, float width) => new Pen(Pens.DashDot(color, width));
+ public static Pen DashDot(Rgba32 color, float width) => new Pen(Pens.DashDot(color, width));
///
/// Create a pen with a 'Dash Dot' drawing patterns
@@ -72,7 +72,7 @@ namespace ImageSharp.Drawing.Pens
/// The brush.
/// The width.
/// The Pen
- public static Pen DashDot(IBrush brush, float width) => new Pen(Pens.DashDot(brush, width));
+ public static Pen DashDot(IBrush brush, float width) => new Pen(Pens.DashDot(brush, width));
///
/// Create a pen with a 'Dash Dot Dot' drawing patterns
@@ -80,7 +80,7 @@ namespace ImageSharp.Drawing.Pens
/// The color.
/// The width.
/// The Pen
- public static Pen DashDotDot(Color color, float width) => new Pen(Pens.DashDotDot(color, width));
+ public static Pen DashDotDot(Rgba32 color, float width) => new Pen(Pens.DashDotDot(color, width));
///
/// Create a pen with a 'Dash Dot Dot' drawing patterns
@@ -88,6 +88,6 @@ namespace ImageSharp.Drawing.Pens
/// The brush.
/// The width.
/// The Pen
- public static Pen DashDotDot(IBrush brush, float width) => new Pen(Pens.DashDotDot(brush, width));
+ public static Pen DashDotDot(IBrush brush, float width) => new Pen(Pens.DashDotDot(brush, width));
}
}
\ No newline at end of file
diff --git a/src/ImageSharp/Colors/Color.Definitions.cs b/src/ImageSharp/Colors/Color.Definitions.cs
deleted file mode 100644
index 4bc0d486a..000000000
--- a/src/ImageSharp/Colors/Color.Definitions.cs
+++ /dev/null
@@ -1,728 +0,0 @@
-//
-// Copyright (c) James Jackson-South and contributors.
-// Licensed under the Apache License, Version 2.0.
-//
-
-namespace ImageSharp
-{
- ///
- /// 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.
- ///
- ///
- /// 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.
- ///
- public partial struct Color
- {
- ///
- /// Represents a matching the W3C definition that has an hex value of #F0F8FF.
- ///
- public static readonly Color AliceBlue = NamedColors.AliceBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FAEBD7.
- ///
- public static readonly Color AntiqueWhite = NamedColors.AntiqueWhite;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FFFF.
- ///
- public static readonly Color Aqua = NamedColors.Aqua;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #7FFFD4.
- ///
- public static readonly Color Aquamarine = NamedColors.Aquamarine;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F0FFFF.
- ///
- public static readonly Color Azure = NamedColors.Azure;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F5F5DC.
- ///
- public static readonly Color Beige = NamedColors.Beige;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFE4C4.
- ///
- public static readonly Color Bisque = NamedColors.Bisque;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #000000.
- ///
- public static readonly Color Black = NamedColors.Black;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFEBCD.
- ///
- public static readonly Color BlanchedAlmond = NamedColors.BlanchedAlmond;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #0000FF.
- ///
- public static readonly Color Blue = NamedColors.Blue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8A2BE2.
- ///
- public static readonly Color BlueViolet = NamedColors.BlueViolet;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #A52A2A.
- ///
- public static readonly Color Brown = NamedColors.Brown;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DEB887.
- ///
- public static readonly Color BurlyWood = NamedColors.BurlyWood;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #5F9EA0.
- ///
- public static readonly Color CadetBlue = NamedColors.CadetBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #7FFF00.
- ///
- public static readonly Color Chartreuse = NamedColors.Chartreuse;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #D2691E.
- ///
- public static readonly Color Chocolate = NamedColors.Chocolate;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF7F50.
- ///
- public static readonly Color Coral = NamedColors.Coral;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #6495ED.
- ///
- public static readonly Color CornflowerBlue = NamedColors.CornflowerBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFF8DC.
- ///
- public static readonly Color Cornsilk = NamedColors.Cornsilk;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DC143C.
- ///
- public static readonly Color Crimson = NamedColors.Crimson;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FFFF.
- ///
- public static readonly Color Cyan = NamedColors.Cyan;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00008B.
- ///
- public static readonly Color DarkBlue = NamedColors.DarkBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #008B8B.
- ///
- public static readonly Color DarkCyan = NamedColors.DarkCyan;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #B8860B.
- ///
- public static readonly Color DarkGoldenrod = NamedColors.DarkGoldenrod;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #A9A9A9.
- ///
- public static readonly Color DarkGray = NamedColors.DarkGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #006400.
- ///
- public static readonly Color DarkGreen = NamedColors.DarkGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #BDB76B.
- ///
- public static readonly Color DarkKhaki = NamedColors.DarkKhaki;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8B008B.
- ///
- public static readonly Color DarkMagenta = NamedColors.DarkMagenta;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #556B2F.
- ///
- public static readonly Color DarkOliveGreen = NamedColors.DarkOliveGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF8C00.
- ///
- public static readonly Color DarkOrange = NamedColors.DarkOrange;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #9932CC.
- ///
- public static readonly Color DarkOrchid = NamedColors.DarkOrchid;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8B0000.
- ///
- public static readonly Color DarkRed = NamedColors.DarkRed;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #E9967A.
- ///
- public static readonly Color DarkSalmon = NamedColors.DarkSalmon;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8FBC8B.
- ///
- public static readonly Color DarkSeaGreen = NamedColors.DarkSeaGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #483D8B.
- ///
- public static readonly Color DarkSlateBlue = NamedColors.DarkSlateBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #2F4F4F.
- ///
- public static readonly Color DarkSlateGray = NamedColors.DarkSlateGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00CED1.
- ///
- public static readonly Color DarkTurquoise = NamedColors.DarkTurquoise;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #9400D3.
- ///
- public static readonly Color DarkViolet = NamedColors.DarkViolet;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF1493.
- ///
- public static readonly Color DeepPink = NamedColors.DeepPink;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00BFFF.
- ///
- public static readonly Color DeepSkyBlue = NamedColors.DeepSkyBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #696969.
- ///
- public static readonly Color DimGray = NamedColors.DimGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #1E90FF.
- ///
- public static readonly Color DodgerBlue = NamedColors.DodgerBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #B22222.
- ///
- public static readonly Color Firebrick = NamedColors.Firebrick;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFAF0.
- ///
- public static readonly Color FloralWhite = NamedColors.FloralWhite;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #228B22.
- ///
- public static readonly Color ForestGreen = NamedColors.ForestGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF00FF.
- ///
- public static readonly Color Fuchsia = NamedColors.Fuchsia;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DCDCDC.
- ///
- public static readonly Color Gainsboro = NamedColors.Gainsboro;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F8F8FF.
- ///
- public static readonly Color GhostWhite = NamedColors.GhostWhite;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFD700.
- ///
- public static readonly Color Gold = NamedColors.Gold;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DAA520.
- ///
- public static readonly Color Goldenrod = NamedColors.Goldenrod;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #808080.
- ///
- public static readonly Color Gray = NamedColors.Gray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #008000.
- ///
- public static readonly Color Green = NamedColors.Green;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #ADFF2F.
- ///
- public static readonly Color GreenYellow = NamedColors.GreenYellow;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F0FFF0.
- ///
- public static readonly Color Honeydew = NamedColors.Honeydew;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF69B4.
- ///
- public static readonly Color HotPink = NamedColors.HotPink;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #CD5C5C.
- ///
- public static readonly Color IndianRed = NamedColors.IndianRed;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #4B0082.
- ///
- public static readonly Color Indigo = NamedColors.Indigo;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFFF0.
- ///
- public static readonly Color Ivory = NamedColors.Ivory;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F0E68C.
- ///
- public static readonly Color Khaki = NamedColors.Khaki;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #E6E6FA.
- ///
- public static readonly Color Lavender = NamedColors.Lavender;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFF0F5.
- ///
- public static readonly Color LavenderBlush = NamedColors.LavenderBlush;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #7CFC00.
- ///
- public static readonly Color LawnGreen = NamedColors.LawnGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFACD.
- ///
- public static readonly Color LemonChiffon = NamedColors.LemonChiffon;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #ADD8E6.
- ///
- public static readonly Color LightBlue = NamedColors.LightBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F08080.
- ///
- public static readonly Color LightCoral = NamedColors.LightCoral;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #E0FFFF.
- ///
- public static readonly Color LightCyan = NamedColors.LightCyan;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FAFAD2.
- ///
- public static readonly Color LightGoldenrodYellow = NamedColors.LightGoldenrodYellow;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #D3D3D3.
- ///
- public static readonly Color LightGray = NamedColors.LightGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #90EE90.
- ///
- public static readonly Color LightGreen = NamedColors.LightGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFB6C1.
- ///
- public static readonly Color LightPink = NamedColors.LightPink;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFA07A.
- ///
- public static readonly Color LightSalmon = NamedColors.LightSalmon;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #20B2AA.
- ///
- public static readonly Color LightSeaGreen = NamedColors.LightSeaGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #87CEFA.
- ///
- public static readonly Color LightSkyBlue = NamedColors.LightSkyBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #778899.
- ///
- public static readonly Color LightSlateGray = NamedColors.LightSlateGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #B0C4DE.
- ///
- public static readonly Color LightSteelBlue = NamedColors.LightSteelBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFFE0.
- ///
- public static readonly Color LightYellow = NamedColors.LightYellow;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FF00.
- ///
- public static readonly Color Lime = NamedColors.Lime;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #32CD32.
- ///
- public static readonly Color LimeGreen = NamedColors.LimeGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FAF0E6.
- ///
- public static readonly Color Linen = NamedColors.Linen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF00FF.
- ///
- public static readonly Color Magenta = NamedColors.Magenta;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #800000.
- ///
- public static readonly Color Maroon = NamedColors.Maroon;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #66CDAA.
- ///
- public static readonly Color MediumAquamarine = NamedColors.MediumAquamarine;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #0000CD.
- ///
- public static readonly Color MediumBlue = NamedColors.MediumBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #BA55D3.
- ///
- public static readonly Color MediumOrchid = NamedColors.MediumOrchid;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #9370DB.
- ///
- public static readonly Color MediumPurple = NamedColors.MediumPurple;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #3CB371.
- ///
- public static readonly Color MediumSeaGreen = NamedColors.MediumSeaGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #7B68EE.
- ///
- public static readonly Color MediumSlateBlue = NamedColors.MediumSlateBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FA9A.
- ///
- public static readonly Color MediumSpringGreen = NamedColors.MediumSpringGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #48D1CC.
- ///
- public static readonly Color MediumTurquoise = NamedColors.MediumTurquoise;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #C71585.
- ///
- public static readonly Color MediumVioletRed = NamedColors.MediumVioletRed;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #191970.
- ///
- public static readonly Color MidnightBlue = NamedColors.MidnightBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F5FFFA.
- ///
- public static readonly Color MintCream = NamedColors.MintCream;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFE4E1.
- ///
- public static readonly Color MistyRose = NamedColors.MistyRose;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFE4B5.
- ///
- public static readonly Color Moccasin = NamedColors.Moccasin;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFDEAD.
- ///
- public static readonly Color NavajoWhite = NamedColors.NavajoWhite;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #000080.
- ///
- public static readonly Color Navy = NamedColors.Navy;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FDF5E6.
- ///
- public static readonly Color OldLace = NamedColors.OldLace;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #808000.
- ///
- public static readonly Color Olive = NamedColors.Olive;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #6B8E23.
- ///
- public static readonly Color OliveDrab = NamedColors.OliveDrab;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFA500.
- ///
- public static readonly Color Orange = NamedColors.Orange;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF4500.
- ///
- public static readonly Color OrangeRed = NamedColors.OrangeRed;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DA70D6.
- ///
- public static readonly Color Orchid = NamedColors.Orchid;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #EEE8AA.
- ///
- public static readonly Color PaleGoldenrod = NamedColors.PaleGoldenrod;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #98FB98.
- ///
- public static readonly Color PaleGreen = NamedColors.PaleGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #AFEEEE.
- ///
- public static readonly Color PaleTurquoise = NamedColors.PaleTurquoise;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DB7093.
- ///
- public static readonly Color PaleVioletRed = NamedColors.PaleVioletRed;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFEFD5.
- ///
- public static readonly Color PapayaWhip = NamedColors.PapayaWhip;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFDAB9.
- ///
- public static readonly Color PeachPuff = NamedColors.PeachPuff;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #CD853F.
- ///
- public static readonly Color Peru = NamedColors.Peru;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFC0CB.
- ///
- public static readonly Color Pink = NamedColors.Pink;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DDA0DD.
- ///
- public static readonly Color Plum = NamedColors.Plum;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #B0E0E6.
- ///
- public static readonly Color PowderBlue = NamedColors.PowderBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #800080.
- ///
- public static readonly Color Purple = NamedColors.Purple;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #663399.
- ///
- public static readonly Color RebeccaPurple = NamedColors.RebeccaPurple;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF0000.
- ///
- public static readonly Color Red = NamedColors.Red;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #BC8F8F.
- ///
- public static readonly Color RosyBrown = NamedColors.RosyBrown;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #4169E1.
- ///
- public static readonly Color RoyalBlue = NamedColors.RoyalBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8B4513.
- ///
- public static readonly Color SaddleBrown = NamedColors.SaddleBrown;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FA8072.
- ///
- public static readonly Color Salmon = NamedColors.Salmon;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F4A460.
- ///
- public static readonly Color SandyBrown = NamedColors.SandyBrown;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #2E8B57.
- ///
- public static readonly Color SeaGreen = NamedColors.SeaGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFF5EE.
- ///
- public static readonly Color SeaShell = NamedColors.SeaShell;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #A0522D.
- ///
- public static readonly Color Sienna = NamedColors.Sienna;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #C0C0C0.
- ///
- public static readonly Color Silver = NamedColors.Silver;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #87CEEB.
- ///
- public static readonly Color SkyBlue = NamedColors.SkyBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #6A5ACD.
- ///
- public static readonly Color SlateBlue = NamedColors.SlateBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #708090.
- ///
- public static readonly Color SlateGray = NamedColors.SlateGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFAFA.
- ///
- public static readonly Color Snow = NamedColors.Snow;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FF7F.
- ///
- public static readonly Color SpringGreen = NamedColors.SpringGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #4682B4.
- ///
- public static readonly Color SteelBlue = NamedColors.SteelBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #D2B48C.
- ///
- public static readonly Color Tan = NamedColors.Tan;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #008080.
- ///
- public static readonly Color Teal = NamedColors.Teal;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #D8BFD8.
- ///
- public static readonly Color Thistle = NamedColors.Thistle;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF6347.
- ///
- public static readonly Color Tomato = NamedColors.Tomato;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFFFF.
- ///
- public static readonly Color Transparent = NamedColors.Transparent;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #40E0D0.
- ///
- public static readonly Color Turquoise = NamedColors.Turquoise;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #EE82EE.
- ///
- public static readonly Color Violet = NamedColors.Violet;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F5DEB3.
- ///
- public static readonly Color Wheat = NamedColors.Wheat;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFFFF.
- ///
- public static readonly Color White = NamedColors.White;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F5F5F5.
- ///
- public static readonly Color WhiteSmoke = NamedColors.WhiteSmoke;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFFF00.
- ///
- public static readonly Color Yellow = NamedColors.Yellow;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #9ACD32.
- ///
- public static readonly Color YellowGreen = NamedColors.YellowGreen;
- }
-}
\ No newline at end of file
diff --git a/src/ImageSharp/Colors/ColorConstants.cs b/src/ImageSharp/Colors/ColorConstants.cs
index 1397b6da6..3dba721aa 100644
--- a/src/ImageSharp/Colors/ColorConstants.cs
+++ b/src/ImageSharp/Colors/ColorConstants.cs
@@ -16,163 +16,163 @@ namespace ImageSharp
///
/// Provides a lazy, one time method of returning the colors.
///
- private static readonly Lazy SafeColors = new Lazy(GetWebSafeColors);
+ private static readonly Lazy SafeColors = new Lazy(GetWebSafeColors);
///
/// Gets a collection of named, web safe, colors as defined in the CSS Color Module Level 4.
///
- public static Color[] WebSafeColors => SafeColors.Value;
+ public static Rgba32[] WebSafeColors => SafeColors.Value;
///
/// Returns an array of web safe colors.
///
/// The
- private static Color[] GetWebSafeColors()
+ private static Rgba32[] GetWebSafeColors()
{
- return new List
+ return new List
{
- 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
+ Rgba32.AliceBlue,
+ Rgba32.AntiqueWhite,
+ Rgba32.Aqua,
+ Rgba32.Aquamarine,
+ Rgba32.Azure,
+ Rgba32.Beige,
+ Rgba32.Bisque,
+ Rgba32.Black,
+ Rgba32.BlanchedAlmond,
+ Rgba32.Blue,
+ Rgba32.BlueViolet,
+ Rgba32.Brown,
+ Rgba32.BurlyWood,
+ Rgba32.CadetBlue,
+ Rgba32.Chartreuse,
+ Rgba32.Chocolate,
+ Rgba32.Coral,
+ Rgba32.CornflowerBlue,
+ Rgba32.Cornsilk,
+ Rgba32.Crimson,
+ Rgba32.Cyan,
+ Rgba32.DarkBlue,
+ Rgba32.DarkCyan,
+ Rgba32.DarkGoldenrod,
+ Rgba32.DarkGray,
+ Rgba32.DarkGreen,
+ Rgba32.DarkKhaki,
+ Rgba32.DarkMagenta,
+ Rgba32.DarkOliveGreen,
+ Rgba32.DarkOrange,
+ Rgba32.DarkOrchid,
+ Rgba32.DarkRed,
+ Rgba32.DarkSalmon,
+ Rgba32.DarkSeaGreen,
+ Rgba32.DarkSlateBlue,
+ Rgba32.DarkSlateGray,
+ Rgba32.DarkTurquoise,
+ Rgba32.DarkViolet,
+ Rgba32.DeepPink,
+ Rgba32.DeepSkyBlue,
+ Rgba32.DimGray,
+ Rgba32.DodgerBlue,
+ Rgba32.Firebrick,
+ Rgba32.FloralWhite,
+ Rgba32.ForestGreen,
+ Rgba32.Fuchsia,
+ Rgba32.Gainsboro,
+ Rgba32.GhostWhite,
+ Rgba32.Gold,
+ Rgba32.Goldenrod,
+ Rgba32.Gray,
+ Rgba32.Green,
+ Rgba32.GreenYellow,
+ Rgba32.Honeydew,
+ Rgba32.HotPink,
+ Rgba32.IndianRed,
+ Rgba32.Indigo,
+ Rgba32.Ivory,
+ Rgba32.Khaki,
+ Rgba32.Lavender,
+ Rgba32.LavenderBlush,
+ Rgba32.LawnGreen,
+ Rgba32.LemonChiffon,
+ Rgba32.LightBlue,
+ Rgba32.LightCoral,
+ Rgba32.LightCyan,
+ Rgba32.LightGoldenrodYellow,
+ Rgba32.LightGray,
+ Rgba32.LightGreen,
+ Rgba32.LightPink,
+ Rgba32.LightSalmon,
+ Rgba32.LightSeaGreen,
+ Rgba32.LightSkyBlue,
+ Rgba32.LightSlateGray,
+ Rgba32.LightSteelBlue,
+ Rgba32.LightYellow,
+ Rgba32.Lime,
+ Rgba32.LimeGreen,
+ Rgba32.Linen,
+ Rgba32.Magenta,
+ Rgba32.Maroon,
+ Rgba32.MediumAquamarine,
+ Rgba32.MediumBlue,
+ Rgba32.MediumOrchid,
+ Rgba32.MediumPurple,
+ Rgba32.MediumSeaGreen,
+ Rgba32.MediumSlateBlue,
+ Rgba32.MediumSpringGreen,
+ Rgba32.MediumTurquoise,
+ Rgba32.MediumVioletRed,
+ Rgba32.MidnightBlue,
+ Rgba32.MintCream,
+ Rgba32.MistyRose,
+ Rgba32.Moccasin,
+ Rgba32.NavajoWhite,
+ Rgba32.Navy,
+ Rgba32.OldLace,
+ Rgba32.Olive,
+ Rgba32.OliveDrab,
+ Rgba32.Orange,
+ Rgba32.OrangeRed,
+ Rgba32.Orchid,
+ Rgba32.PaleGoldenrod,
+ Rgba32.PaleGreen,
+ Rgba32.PaleTurquoise,
+ Rgba32.PaleVioletRed,
+ Rgba32.PapayaWhip,
+ Rgba32.PeachPuff,
+ Rgba32.Peru,
+ Rgba32.Pink,
+ Rgba32.Plum,
+ Rgba32.PowderBlue,
+ Rgba32.Purple,
+ Rgba32.RebeccaPurple,
+ Rgba32.Red,
+ Rgba32.RosyBrown,
+ Rgba32.RoyalBlue,
+ Rgba32.SaddleBrown,
+ Rgba32.Salmon,
+ Rgba32.SandyBrown,
+ Rgba32.SeaGreen,
+ Rgba32.SeaShell,
+ Rgba32.Sienna,
+ Rgba32.Silver,
+ Rgba32.SkyBlue,
+ Rgba32.SlateBlue,
+ Rgba32.SlateGray,
+ Rgba32.Snow,
+ Rgba32.SpringGreen,
+ Rgba32.SteelBlue,
+ Rgba32.Tan,
+ Rgba32.Teal,
+ Rgba32.Thistle,
+ Rgba32.Tomato,
+ Rgba32.Transparent,
+ Rgba32.Turquoise,
+ Rgba32.Violet,
+ Rgba32.Wheat,
+ Rgba32.White,
+ Rgba32.WhiteSmoke,
+ Rgba32.Yellow,
+ Rgba32.YellowGreen
}.ToArray();
}
}
diff --git a/src/ImageSharp/Colors/ColorVector.Definitions.cs b/src/ImageSharp/Colors/ColorVector.Definitions.cs
deleted file mode 100644
index 150b7209c..000000000
--- a/src/ImageSharp/Colors/ColorVector.Definitions.cs
+++ /dev/null
@@ -1,728 +0,0 @@
-//
-// Copyright (c) James Jackson-South and contributors.
-// Licensed under the Apache License, Version 2.0.
-//
-
-namespace ImageSharp
-{
- ///
- /// Unpacked pixel type containing four 16-bit floating-point values typically ranging from 0 to 1.
- /// The color components are stored in red, green, blue, and alpha order.
- ///
- ///
- /// 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.
- ///
- public partial struct ColorVector
- {
- ///
- /// Represents a matching the W3C definition that has an hex value of #F0F8FF.
- ///
- public static readonly ColorVector AliceBlue = NamedColors.AliceBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FAEBD7.
- ///
- public static readonly ColorVector AntiqueWhite = NamedColors.AntiqueWhite;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FFFF.
- ///
- public static readonly ColorVector Aqua = NamedColors.Aqua;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #7FFFD4.
- ///
- public static readonly ColorVector Aquamarine = NamedColors.Aquamarine;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F0FFFF.
- ///
- public static readonly ColorVector Azure = NamedColors.Azure;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #F5F5DC.
- ///
- public static readonly ColorVector Beige = NamedColors.Beige;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFE4C4.
- ///
- public static readonly ColorVector Bisque = NamedColors.Bisque;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #000000.
- ///
- public static readonly ColorVector Black = NamedColors.Black;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFEBCD.
- ///
- public static readonly ColorVector BlanchedAlmond = NamedColors.BlanchedAlmond;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #0000FF.
- ///
- public static readonly ColorVector Blue = NamedColors.Blue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8A2BE2.
- ///
- public static readonly ColorVector BlueViolet = NamedColors.BlueViolet;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #A52A2A.
- ///
- public static readonly ColorVector Brown = NamedColors.Brown;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DEB887.
- ///
- public static readonly ColorVector BurlyWood = NamedColors.BurlyWood;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #5F9EA0.
- ///
- public static readonly ColorVector CadetBlue = NamedColors.CadetBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #7FFF00.
- ///
- public static readonly ColorVector Chartreuse = NamedColors.Chartreuse;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #D2691E.
- ///
- public static readonly ColorVector Chocolate = NamedColors.Chocolate;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF7F50.
- ///
- public static readonly ColorVector Coral = NamedColors.Coral;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #6495ED.
- ///
- public static readonly ColorVector CornflowerBlue = NamedColors.CornflowerBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FFF8DC.
- ///
- public static readonly ColorVector Cornsilk = NamedColors.Cornsilk;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #DC143C.
- ///
- public static readonly ColorVector Crimson = NamedColors.Crimson;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00FFFF.
- ///
- public static readonly ColorVector Cyan = NamedColors.Cyan;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #00008B.
- ///
- public static readonly ColorVector DarkBlue = NamedColors.DarkBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #008B8B.
- ///
- public static readonly ColorVector DarkCyan = NamedColors.DarkCyan;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #B8860B.
- ///
- public static readonly ColorVector DarkGoldenrod = NamedColors.DarkGoldenrod;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #A9A9A9.
- ///
- public static readonly ColorVector DarkGray = NamedColors.DarkGray;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #006400.
- ///
- public static readonly ColorVector DarkGreen = NamedColors.DarkGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #BDB76B.
- ///
- public static readonly ColorVector DarkKhaki = NamedColors.DarkKhaki;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8B008B.
- ///
- public static readonly ColorVector DarkMagenta = NamedColors.DarkMagenta;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #556B2F.
- ///
- public static readonly ColorVector DarkOliveGreen = NamedColors.DarkOliveGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #FF8C00.
- ///
- public static readonly ColorVector DarkOrange = NamedColors.DarkOrange;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #9932CC.
- ///
- public static readonly ColorVector DarkOrchid = NamedColors.DarkOrchid;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8B0000.
- ///
- public static readonly ColorVector DarkRed = NamedColors.DarkRed;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #E9967A.
- ///
- public static readonly ColorVector DarkSalmon = NamedColors.DarkSalmon;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #8FBC8B.
- ///
- public static readonly ColorVector DarkSeaGreen = NamedColors.DarkSeaGreen;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #483D8B.
- ///
- public static readonly ColorVector DarkSlateBlue = NamedColors.DarkSlateBlue;
-
- ///
- /// Represents a matching the W3C definition that has an hex value of #2F4F4F.
- ///
- public static readonly ColorVector DarkSlateGray = NamedColors.DarkSlateGray;
-
- ///
- /// Represents a