This structure has been designed to extend Mogre's native Colourvalue structure. It has static fields for all known colors and convert .Net colors to ogre colours (and vise versa).
Most of the helper class is based on Axiom's colourvalue class.

How to add to your project

The helper class is a single code file. There is a VB.Net and a C# version available.
Name the code file: ColorEx.vb or ColorEx.cs

using Microsoft.VisualBasic;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
#region "LGPL License"
//
//Axiom Graphics Engine Library
//Copyright (C) 2003-2006 Axiom Project Team
//
//The overall design, and a majority of the core engine and rendering code 
//contained within this library is a derivative of the open source Object Oriented 
//Graphics Engine OGRE, which can be found at http://ogre.sourceforge.net.  
//Many thanks to the OGRE team for maintaining such a high quality project.
//
//This library is free software; you can redistribute it and/or
//modify it under the terms of the GNU Lesser General Public
//License as published by the Free Software Foundation; either
//version 2.1 of the License, or (at your option) any later version.
//
//This library is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
//Lesser General Public License for more details.
//
//You should have received a copy of the GNU Lesser General Public
//License along with this library; if not, write to the Free Software
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//

#endregion

#region "SVN Version Information"
// <file>
//     <license see="http://axiomengine.sf.net/wiki/index.php/license.txt"/>
//     <id value="$Id: colourvalue.cs 1756 2009-09-10 10:15:10Z borrillis $"/>
// </file>
#endregion

#region "Namespace Declarations"
using Mogre;
#endregion
/// <summary>
///		This class is necessary so we can store the color components as floating 
///		point values in the range [0,1].  It serves as an intermediary to System.Drawing.Color, which
///		stores them as byte values.  This doesn't allow for slow color component
///		interpolation, because with the values always being cast back to a byte would lose
///		any small interpolated values (i.e. 223 - .25 as a byte is 223).
/// </summary>
public struct ColorEx : IComparable
{
	#region "Member variables"
	/// <summary>
	///		Alpha value [0,1].
	/// </summary>

	public float a;
	/// <summary>
	///		Red color component [0,1].
	/// </summary>

	public float r;
	/// <summary>
	///		Green color component [0,1].
	/// </summary>

	public float g;
	/// <summary>
	///		Blue color component [0,1].
	/// </summary>

	public float b;
	#endregion

	#region "Constructors"

	/// <summary>
	///	Constructor taking RGB values
	/// </summary>
	/// <param name="r">Red color component.</param>
	/// <param name="g">Green color component.</param>
	/// <param name="b">Blue color component.</param>
	public ColorEx(float r, float g, float b) : this(1f, r, g, b)
	{
	}

	/// <summary>
	/// Create a new colourvalue from a .Net color
	/// </summary>
	/// <param name="Color"></param>
	/// <remarks></remarks>
	public ColorEx(System.Drawing.Color Color) : this(Color.R, Color.G, Color.B)
	{
	}




	/// <summary>
	///		Constructor taking all component values.
	/// </summary>
	/// <param name="a">Alpha value.</param>
	/// <param name="r">Red color component.</param>
	/// <param name="g">Green color component.</param>
	/// <param name="b">Blue color component.</param>
	public ColorEx(float a, float r, float g, float b)
	{
		//Contract.Requires(a >= 0.0F AndAlso a <= 1.0F)
		//Contract.Requires(r >= 0.0F AndAlso r <= 1.0F)
		//Contract.Requires(g >= 0.0F AndAlso g <= 1.0F)
		//Contract.Requires(b >= 0.0F AndAlso b <= 1.0F)
		this.a = a;
		this.r = r;
		this.g = g;
		this.b = b;
	}

	/// <summary>
	/// Copy constructor.
	/// </summary>
	/// <param name="other">The colourvalue instance to copy</param>

	public ColorEx(ColourValue other) : this(other.a, other.r, other.g, other.b)
	{
	}
	public ColourValue FromColor(System.Drawing.Color Color)
	{
		return new ColourValue(Color.R / 255, Color.G / 255, Color.B / 255);
	}
	#endregion

	#region "Methods"

	/// <summary>
	///		Returns a copy of this colourvalue instance.
	/// </summary>
	/// <returns></returns>
	public ColourValue Clone()
	{
		ColourValue retVal = new ColourValue(0, 0, 0, 0);
		retVal.a = this.a;
		retVal.r = this.r;
		retVal.g = this.g;
		retVal.b = this.g;
		return retVal;
	}

	/// <summary>
	///		Converts this instance to a <see cref="System.Drawing.Color"/> structure.
	/// </summary>
	public System.Drawing.Color ToColor()
	{
		return System.Drawing.Color.FromArgb((a * 255f), (r * 255f), (g * 255f), (b * 255f));
	}
	public int ToRGBA()
	{
		int result = 0;

		result += Convert.ToInt32((r * 255f)) << 24;
		result += Convert.ToInt32((g * 255f)) << 16;
		result += Convert.ToInt32((b * 255f)) << 8;
		result += Convert.ToInt32((a * 255f));

		return result;
	}


	/// <summary>
	///		Converts this color value to packed ABGR format.
	/// </summary>
	/// <returns></returns>
	public int ToABGR()
	{
		int result = 0;

		result += Convert.ToInt32((a * 255f)) << 24;
		result += Convert.ToInt32((b * 255f)) << 16;
		result += Convert.ToInt32((g * 255f)) << 8;
		result += Convert.ToInt32((r * 255f));

		return result;
	}

	/// <summary>
	///		Converts this color value to packed ARBG format.
	/// </summary>
	/// <returns></returns>
	public int ToARGB()
	{
		int result = 0;

		result += Convert.ToInt32((a * 255f)) << 24;
		result += Convert.ToInt32((r * 255f)) << 16;
		result += Convert.ToInt32((g * 255f)) << 8;
		result += Convert.ToInt32((b * 255f));

		return result;
	}

	/// <summary>
	///		Populates the color components in a 4 elements array in RGBA order.
	/// </summary>
	/// <remarks>
	///		Primarily used to help in OpenGL.
	/// </remarks>
	public void ToArrayRGBA(float[] vals)
	{
		vals[0] = r;
		vals[1] = g;
		vals[2] = b;
		vals[3] = a;
	}

	public ColourValue ToColorValue()
	{
		return new ColourValue(this.r, this.g, this.b);
	}

	#endregion
	public void AA()
	{
		ColourValue MyMogrePurple = new ColourValue(0.5019608f, 0f, 0.5019608f, 1f);
		Color purple = new ColorEx(MyMogrePurple).ToColor();

	}
	#region "Static color properties"

	/// <summary>
	///		The color Transparent.
	/// </summary>
	public static ColourValue Transparent {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 0f;
			retVal.r = 1f;
			retVal.g = 1f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color AliceBlue.
	/// </summary>
	public static ColourValue AliceBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9411765f;
			retVal.g = 0.972549f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color AntiqueWhite.
	/// </summary>
	public static ColourValue AntiqueWhite {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9803922f;
			retVal.g = 0.9215686f;
			retVal.b = 0.8431373f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Aqua.
	/// </summary>
	public static ColourValue Aqua {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 1f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Aquamarine.
	/// </summary>
	public static ColourValue Aquamarine {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4980392f;
			retVal.g = 1f;
			retVal.b = 0.8313726f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Azure.
	/// </summary>
	public static ColourValue Azure {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9411765f;
			retVal.g = 1f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Beige.
	/// </summary>
	public static ColourValue Beige {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9607843f;
			retVal.g = 0.9607843f;
			retVal.b = 0.8627451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Bisque.
	/// </summary>
	public static ColourValue Bisque {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.8941177f;
			retVal.b = 0.7686275f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Black.
	/// </summary>
	public static ColourValue Black {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color BlanchedAlmond.
	/// </summary>
	public static ColourValue BlanchedAlmond {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9215686f;
			retVal.b = 0.8039216f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Blue.
	/// </summary>
	public static ColourValue Blue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color BlueViolet.
	/// </summary>
	public static ColourValue BlueViolet {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5411765f;
			retVal.g = 0.1686275f;
			retVal.b = 0.8862745f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Brown.
	/// </summary>
	public static ColourValue Brown {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6470588f;
			retVal.g = 0.1647059f;
			retVal.b = 0.1647059f;
			return retVal;
		}
	}

	/// <summary>
	///		The color BurlyWood.
	/// </summary>
	public static ColourValue BurlyWood {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8705882f;
			retVal.g = 0.7215686f;
			retVal.b = 0.5294118f;
			return retVal;
		}
	}

	/// <summary>
	///		The color CadetBlue.
	/// </summary>
	public static ColourValue CadetBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.372549f;
			retVal.g = 0.6196079f;
			retVal.b = 0.627451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Chartreuse.
	/// </summary>
	public static ColourValue Chartreuse {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4980392f;
			retVal.g = 1f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Chocolate.
	/// </summary>
	public static ColourValue Chocolate {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8235294f;
			retVal.g = 0.4117647f;
			retVal.b = 0.1176471f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Coral.
	/// </summary>
	public static ColourValue Coral {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.4980392f;
			retVal.b = 0.3137255f;
			return retVal;
		}
	}

	/// <summary>
	///		The color CornflowerBlue.
	/// </summary>
	public static ColourValue CornflowerBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.3921569f;
			retVal.g = 0.5843138f;
			retVal.b = 0.9294118f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Cornsilk.
	/// </summary>
	public static ColourValue Cornsilk {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.972549f;
			retVal.b = 0.8627451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Crimson.
	/// </summary>
	public static ColourValue Crimson {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8627451f;
			retVal.g = 0.07843138f;
			retVal.b = 0.2352941f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Cyan.
	/// </summary>
	public static ColourValue Cyan {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 1f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkBlue.
	/// </summary>
	public static ColourValue DarkBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0f;
			retVal.b = 0.5450981f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkCyan.
	/// </summary>
	public static ColourValue DarkCyan {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.5450981f;
			retVal.b = 0.5450981f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkGoldenrod.
	/// </summary>
	public static ColourValue DarkGoldenrod {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.7215686f;
			retVal.g = 0.5254902f;
			retVal.b = 0.04313726f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkGray.
	/// </summary>
	public static ColourValue DarkGray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6627451f;
			retVal.g = 0.6627451f;
			retVal.b = 0.6627451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkGreen.
	/// </summary>
	public static ColourValue DarkGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.3921569f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkKhaki.
	/// </summary>
	public static ColourValue DarkKhaki {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.7411765f;
			retVal.g = 0.7176471f;
			retVal.b = 0.4196078f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkMagenta.
	/// </summary>
	public static ColourValue DarkMagenta {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5450981f;
			retVal.g = 0f;
			retVal.b = 0.5450981f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkOliveGreen.
	/// </summary>
	public static ColourValue DarkOliveGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.3333333f;
			retVal.g = 0.4196078f;
			retVal.b = 0.1843137f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkOrange.
	/// </summary>
	public static ColourValue DarkOrange {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.5490196f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkOrchid.
	/// </summary>
	public static ColourValue DarkOrchid {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6f;
			retVal.g = 0.1960784f;
			retVal.b = 0.8f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkRed.
	/// </summary>
	public static ColourValue DarkRed {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5450981f;
			retVal.g = 0f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkSalmon.
	/// </summary>
	public static ColourValue DarkSalmon {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9137255f;
			retVal.g = 0.5882353f;
			retVal.b = 0.4784314f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkSeaGreen.
	/// </summary>
	public static ColourValue DarkSeaGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5607843f;
			retVal.g = 0.7372549f;
			retVal.b = 0.5450981f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkSlateBlue.
	/// </summary>
	public static ColourValue DarkSlateBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.282353f;
			retVal.g = 0.2392157f;
			retVal.b = 0.5450981f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkSlateGray.
	/// </summary>
	public static ColourValue DarkSlateGray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.1843137f;
			retVal.g = 0.3098039f;
			retVal.b = 0.3098039f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkTurquoise.
	/// </summary>
	public static ColourValue DarkTurquoise {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.8078431f;
			retVal.b = 0.8196079f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DarkViolet.
	/// </summary>
	public static ColourValue DarkViolet {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5803922f;
			retVal.g = 0f;
			retVal.b = 0.827451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DeepPink.
	/// </summary>
	public static ColourValue DeepPink {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.07843138f;
			retVal.b = 0.5764706f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DeepSkyBlue.
	/// </summary>
	public static ColourValue DeepSkyBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.7490196f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DimGray.
	/// </summary>
	public static ColourValue DimGray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4117647f;
			retVal.g = 0.4117647f;
			retVal.b = 0.4117647f;
			return retVal;
		}
	}

	/// <summary>
	///		The color DodgerBlue.
	/// </summary>
	public static ColourValue DodgerBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.1176471f;
			retVal.g = 0.5647059f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Firebrick.
	/// </summary>
	public static ColourValue Firebrick {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6980392f;
			retVal.g = 0.1333333f;
			retVal.b = 0.1333333f;
			return retVal;
		}
	}

	/// <summary>
	///		The color FloralWhite.
	/// </summary>
	public static ColourValue FloralWhite {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9803922f;
			retVal.b = 0.9411765f;
			return retVal;
		}
	}

	/// <summary>
	///		The color ForestGreen.
	/// </summary>
	public static ColourValue ForestGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.1333333f;
			retVal.g = 0.5450981f;
			retVal.b = 0.1333333f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Fuchsia.
	/// </summary>
	public static ColourValue Fuchsia {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Gainsboro.
	/// </summary>
	public static ColourValue Gainsboro {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8627451f;
			retVal.g = 0.8627451f;
			retVal.b = 0.8627451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color GhostWhite.
	/// </summary>
	public static ColourValue GhostWhite {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.972549f;
			retVal.g = 0.972549f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Gold.
	/// </summary>
	public static ColourValue Gold {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.8431373f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Goldenrod.
	/// </summary>
	public static ColourValue Goldenrod {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.854902f;
			retVal.g = 0.6470588f;
			retVal.b = 0.1254902f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Gray.
	/// </summary>
	public static ColourValue Gray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5019608f;
			retVal.g = 0.5019608f;
			retVal.b = 0.5019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Green.
	/// </summary>
	public static ColourValue Green {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.5019608f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color GreenYellow.
	/// </summary>
	public static ColourValue GreenYellow {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6784314f;
			retVal.g = 1f;
			retVal.b = 0.1843137f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Honeydew.
	/// </summary>
	public static ColourValue Honeydew {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9411765f;
			retVal.g = 1f;
			retVal.b = 0.9411765f;
			return retVal;
		}
	}

	/// <summary>
	///		The color HotPink.
	/// </summary>
	public static ColourValue HotPink {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.4117647f;
			retVal.b = 0.7058824f;
			return retVal;
		}
	}

	/// <summary>
	///		The color IndianRed.
	/// </summary>
	public static ColourValue IndianRed {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8039216f;
			retVal.g = 0.3607843f;
			retVal.b = 0.3607843f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Indigo.
	/// </summary>
	public static ColourValue Indigo {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.2941177f;
			retVal.g = 0f;
			retVal.b = 0.509804f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Ivory.
	/// </summary>
	public static ColourValue Ivory {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 1f;
			retVal.b = 0.9411765f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Khaki.
	/// </summary>
	public static ColourValue Khaki {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9411765f;
			retVal.g = 0.9019608f;
			retVal.b = 0.5490196f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Lavender.
	/// </summary>
	public static ColourValue Lavender {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9019608f;
			retVal.g = 0.9019608f;
			retVal.b = 0.9803922f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LavenderBlush.
	/// </summary>
	public static ColourValue LavenderBlush {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9411765f;
			retVal.b = 0.9607843f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LawnGreen.
	/// </summary>
	public static ColourValue LawnGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4862745f;
			retVal.g = 0.9882353f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LemonChiffon.
	/// </summary>
	public static ColourValue LemonChiffon {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9803922f;
			retVal.b = 0.8039216f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightBlue.
	/// </summary>
	public static ColourValue LightBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6784314f;
			retVal.g = 0.8470588f;
			retVal.b = 0.9019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightCoral.
	/// </summary>
	public static ColourValue LightCoral {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9411765f;
			retVal.g = 0.5019608f;
			retVal.b = 0.5019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightCyan.
	/// </summary>
	public static ColourValue LightCyan {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8784314f;
			retVal.g = 1f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightGoldenrodYellow.
	/// </summary>
	public static ColourValue LightGoldenrodYellow {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9803922f;
			retVal.g = 0.9803922f;
			retVal.b = 0.8235294f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightGreen.
	/// </summary>
	public static ColourValue LightGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5647059f;
			retVal.g = 0.9333333f;
			retVal.b = 0.5647059f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightGray.
	/// </summary>
	public static ColourValue LightGray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.827451f;
			retVal.g = 0.827451f;
			retVal.b = 0.827451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightPink.
	/// </summary>
	public static ColourValue LightPink {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.7137255f;
			retVal.b = 0.7568628f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightSalmon.
	/// </summary>
	public static ColourValue LightSalmon {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.627451f;
			retVal.b = 0.4784314f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightSeaGreen.
	/// </summary>
	public static ColourValue LightSeaGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.1254902f;
			retVal.g = 0.6980392f;
			retVal.b = 0.6666667f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightSkyBlue.
	/// </summary>
	public static ColourValue LightSkyBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5294118f;
			retVal.g = 0.8078431f;
			retVal.b = 0.9803922f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightSlateGray.
	/// </summary>
	public static ColourValue LightSlateGray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4666667f;
			retVal.g = 0.5333334f;
			retVal.b = 0.6f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightSteelBlue.
	/// </summary>
	public static ColourValue LightSteelBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6901961f;
			retVal.g = 0.7686275f;
			retVal.b = 0.8705882f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LightYellow.
	/// </summary>
	public static ColourValue LightYellow {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 1f;
			retVal.b = 0.8784314f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Lime.
	/// </summary>
	public static ColourValue Lime {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 1f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color LimeGreen.
	/// </summary>
	public static ColourValue LimeGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.1960784f;
			retVal.g = 0.8039216f;
			retVal.b = 0.1960784f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Linen.
	/// </summary>
	public static ColourValue Linen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9803922f;
			retVal.g = 0.9411765f;
			retVal.b = 0.9019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Magenta.
	/// </summary>
	public static ColourValue Magenta {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Maroon.
	/// </summary>
	public static ColourValue Maroon {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5019608f;
			retVal.g = 0f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumAquamarine.
	/// </summary>
	public static ColourValue MediumAquamarine {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4f;
			retVal.g = 0.8039216f;
			retVal.b = 0.6666667f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumBlue.
	/// </summary>
	public static ColourValue MediumBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0f;
			retVal.b = 0.8039216f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumOrchid.
	/// </summary>
	public static ColourValue MediumOrchid {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.7294118f;
			retVal.g = 0.3333333f;
			retVal.b = 0.827451f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumPurple.
	/// </summary>
	public static ColourValue MediumPurple {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5764706f;
			retVal.g = 0.4392157f;
			retVal.b = 0.8588235f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumSeaGreen.
	/// </summary>
	public static ColourValue MediumSeaGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.2352941f;
			retVal.g = 0.7019608f;
			retVal.b = 0.4431373f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumSlateBlue.
	/// </summary>
	public static ColourValue MediumSlateBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4823529f;
			retVal.g = 0.4078431f;
			retVal.b = 0.9333333f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumSpringGreen.
	/// </summary>
	public static ColourValue MediumSpringGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.9803922f;
			retVal.b = 0.6039216f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumTurquoise.
	/// </summary>
	public static ColourValue MediumTurquoise {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.282353f;
			retVal.g = 0.8196079f;
			retVal.b = 0.8f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MediumVioletRed.
	/// </summary>
	public static ColourValue MediumVioletRed {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.7803922f;
			retVal.g = 0.08235294f;
			retVal.b = 0.5215687f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MidnightBlue.
	/// </summary>
	public static ColourValue MidnightBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.09803922f;
			retVal.g = 0.09803922f;
			retVal.b = 0.4392157f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MintCream.
	/// </summary>
	public static ColourValue MintCream {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9607843f;
			retVal.g = 1f;
			retVal.b = 0.9803922f;
			return retVal;
		}
	}

	/// <summary>
	///		The color MistyRose.
	/// </summary>
	public static ColourValue MistyRose {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.8941177f;
			retVal.b = 0.8823529f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Moccasin.
	/// </summary>
	public static ColourValue Moccasin {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.8941177f;
			retVal.b = 0.7098039f;
			return retVal;
		}
	}

	/// <summary>
	///		The color NavajoWhite.
	/// </summary>
	public static ColourValue NavajoWhite {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.8705882f;
			retVal.b = 0.6784314f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Navy.
	/// </summary>
	public static ColourValue Navy {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0f;
			retVal.b = 0.5019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color OldLace.
	/// </summary>
	public static ColourValue OldLace {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9921569f;
			retVal.g = 0.9607843f;
			retVal.b = 0.9019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Olive.
	/// </summary>
	public static ColourValue Olive {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5019608f;
			retVal.g = 0.5019608f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color OliveDrab.
	/// </summary>
	public static ColourValue OliveDrab {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4196078f;
			retVal.g = 0.5568628f;
			retVal.b = 0.1372549f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Orange.
	/// </summary>
	public static ColourValue Orange {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.6470588f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color OrangeRed.
	/// </summary>
	public static ColourValue OrangeRed {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.2705882f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Orchid.
	/// </summary>
	public static ColourValue Orchid {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.854902f;
			retVal.g = 0.4392157f;
			retVal.b = 0.8392157f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PaleGoldenrod.
	/// </summary>
	public static ColourValue PaleGoldenrod {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9333333f;
			retVal.g = 0.9098039f;
			retVal.b = 0.6666667f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PaleGreen.
	/// </summary>
	public static ColourValue PaleGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5960785f;
			retVal.g = 0.9843137f;
			retVal.b = 0.5960785f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PaleTurquoise.
	/// </summary>
	public static ColourValue PaleTurquoise {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6862745f;
			retVal.g = 0.9333333f;
			retVal.b = 0.9333333f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PaleVioletRed.
	/// </summary>
	public static ColourValue PaleVioletRed {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8588235f;
			retVal.g = 0.4392157f;
			retVal.b = 0.5764706f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PapayaWhip.
	/// </summary>
	public static ColourValue PapayaWhip {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9372549f;
			retVal.b = 0.8352941f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PeachPuff.
	/// </summary>
	public static ColourValue PeachPuff {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.854902f;
			retVal.b = 0.7254902f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Peru.
	/// </summary>
	public static ColourValue Peru {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8039216f;
			retVal.g = 0.5215687f;
			retVal.b = 0.2470588f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Pink.
	/// </summary>
	public static ColourValue Pink {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.7529412f;
			retVal.b = 0.7960784f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Plum.
	/// </summary>
	public static ColourValue Plum {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8666667f;
			retVal.g = 0.627451f;
			retVal.b = 0.8666667f;
			return retVal;
		}
	}

	/// <summary>
	///		The color PowderBlue.
	/// </summary>
	public static ColourValue PowderBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6901961f;
			retVal.g = 0.8784314f;
			retVal.b = 0.9019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Purple.
	/// </summary>
	public static ColourValue Purple {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5019608f;
			retVal.g = 0f;
			retVal.b = 0.5019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Red.
	/// </summary>
	public static ColourValue Red {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color RosyBrown.
	/// </summary>
	public static ColourValue RosyBrown {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.7372549f;
			retVal.g = 0.5607843f;
			retVal.b = 0.5607843f;
			return retVal;
		}
	}

	/// <summary>
	///		The color RoyalBlue.
	/// </summary>
	public static ColourValue RoyalBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.254902f;
			retVal.g = 0.4117647f;
			retVal.b = 0.8823529f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SaddleBrown.
	/// </summary>
	public static ColourValue SaddleBrown {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5450981f;
			retVal.g = 0.2705882f;
			retVal.b = 0.07450981f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Salmon.
	/// </summary>
	public static ColourValue Salmon {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9803922f;
			retVal.g = 0.5019608f;
			retVal.b = 0.4470588f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SandyBrown.
	/// </summary>
	public static ColourValue SandyBrown {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9568627f;
			retVal.g = 0.6431373f;
			retVal.b = 0.3764706f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SeaGreen.
	/// </summary>
	public static ColourValue SeaGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.1803922f;
			retVal.g = 0.5450981f;
			retVal.b = 0.3411765f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SeaShell.
	/// </summary>
	public static ColourValue SeaShell {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9607843f;
			retVal.b = 0.9333333f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Sienna.
	/// </summary>
	public static ColourValue Sienna {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.627451f;
			retVal.g = 0.3215686f;
			retVal.b = 0.1764706f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Silver.
	/// </summary>
	public static ColourValue Silver {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.7529412f;
			retVal.g = 0.7529412f;
			retVal.b = 0.7529412f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SkyBlue.
	/// </summary>
	public static ColourValue SkyBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.5294118f;
			retVal.g = 0.8078431f;
			retVal.b = 0.9215686f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SlateBlue.
	/// </summary>
	public static ColourValue SlateBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4156863f;
			retVal.g = 0.3529412f;
			retVal.b = 0.8039216f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SlateGray.
	/// </summary>
	public static ColourValue SlateGray {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.4392157f;
			retVal.g = 0.5019608f;
			retVal.b = 0.5647059f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Snow.
	/// </summary>
	public static ColourValue Snow {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.9803922f;
			retVal.b = 0.9803922f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SpringGreen.
	/// </summary>
	public static ColourValue SpringGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 1f;
			retVal.b = 0.4980392f;
			return retVal;
		}
	}

	/// <summary>
	///		The color SteelBlue.
	/// </summary>
	public static ColourValue SteelBlue {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.2745098f;
			retVal.g = 0.509804f;
			retVal.b = 0.7058824f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Tan.
	/// </summary>
	public static ColourValue Tan {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8235294f;
			retVal.g = 0.7058824f;
			retVal.b = 0.5490196f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Teal.
	/// </summary>
	public static ColourValue Teal {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0f;
			retVal.g = 0.5019608f;
			retVal.b = 0.5019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Thistle.
	/// </summary>
	public static ColourValue Thistle {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.8470588f;
			retVal.g = 0.7490196f;
			retVal.b = 0.8470588f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Tomato.
	/// </summary>
	public static ColourValue Tomato {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 0.3882353f;
			retVal.b = 0.2784314f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Turquoise.
	/// </summary>
	public static ColourValue Turquoise {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.2509804f;
			retVal.g = 0.8784314f;
			retVal.b = 0.8156863f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Violet.
	/// </summary>
	public static ColourValue Violet {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9333333f;
			retVal.g = 0.509804f;
			retVal.b = 0.9333333f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Wheat.
	/// </summary>
	public static ColourValue Wheat {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9607843f;
			retVal.g = 0.8705882f;
			retVal.b = 0.7019608f;
			return retVal;
		}
	}

	/// <summary>
	///		The color White.
	/// </summary>
	public static ColourValue White {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 1f;
			retVal.b = 1f;
			return retVal;
		}
	}

	/// <summary>
	///		The color WhiteSmoke.
	/// </summary>
	public static ColourValue WhiteSmoke {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.9607843f;
			retVal.g = 0.9607843f;
			retVal.b = 0.9607843f;
			return retVal;
		}
	}

	/// <summary>
	///		The color Yellow.
	/// </summary>
	public static ColourValue Yellow {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 1f;
			retVal.g = 1f;
			retVal.b = 0f;
			return retVal;
		}
	}

	/// <summary>
	///		The color YellowGreen.
	/// </summary>
	public static ColourValue YellowGreen {
		get {
			ColourValue retVal = new ColourValue(0, 0, 0, 0);
			retVal.a = 1f;
			retVal.r = 0.6039216f;
			retVal.g = 0.8039216f;
			retVal.b = 0.1960784f;
			return retVal;
		}
	}

	//TODO : Move this to StringConverter
	public static ColourValue Parse_0_255_String(string parsableText)
	{
		ColourValue retVal = new ColourValue(0, 0, 0, 0);
		if (parsableText == null) {
			throw new ArgumentException("The parsableText parameter cannot be null.");
		}
		string[] vals = parsableText.TrimStart('(', '[', '<').TrimEnd(')', ']', '>').Split(',');
		if (vals.Length < 3) {
			throw new FormatException(string.Format("Cannot parse the text '{0}' because it must of the form (r,g,b) or (r,g,b,a)", parsableText));
		}
		//float r, g, b, a;
		try {
			retVal.r = int.Parse(vals[0].Trim()) / 255f;
			retVal.g = int.Parse(vals[1].Trim()) / 255f;
			retVal.b = int.Parse(vals[2].Trim()) / 255f;
			if (vals.Length == 4) {
				retVal.a = int.Parse(vals[3].Trim()) / 255f;
			} else {
				retVal.a = 1f;
			}
		} catch (Exception e) {
			throw new FormatException("The parts of the colourvalue in Parse_0_255 must be integers");
		}
		return retVal;
	}

	//TODO : Move this to StringConverter
	public string To_0_255_String()
	{
		return string.Format("({0},{1},{2},{3})", Convert.ToInt32((r * 255f)), Convert.ToInt32((g * 255f)), Convert.ToInt32((b * 255f)), Convert.ToInt32((a * 255f)));
	}

	#endregion

	#region "Object overloads"

	/// <summary>
	///    Override GetHashCode.
	/// </summary>
	/// <remarks>
	///    Done mainly to quash warnings, no real need for it.
	/// </remarks>
	/// <returns></returns>
	public override int GetHashCode()
	{
		return this.ToARGB();
	}

	public override string ToString()
	{
		return this.To_0_255_String();
	}

	static explicit operator ColorEx(ColourValue ColourValue)
	{
		return new ColorEx(ColourValue);
	}

	static explicit operator ColourValue(ColorEx ColorEx)
	{
		return ColorEx.ToColorValue();
	}

	static explicit operator Color(ColorEx ColorEx)
	{
		return ColorEx.ToColor();
	}

	public static Color ToColor(Mogre.ColourValue ColourValue)
	{
		return new ColorEx(ColourValue).ToColor();
	}

	public static ColourValue ToColourValue(Color Color)
	{
		return new ColorEx(Color).ToColorValue();
	}

	#endregion

	#region "IComparable Members"

	/// <summary>
	///    Used to compare 2 colourvalue objects for equality.
	/// </summary>
	/// <param name="obj">An instance of a colourvalue object to compare to this instance.</param>
	/// <returns>0 if they are equal, 1 if they are not.</returns>
	public int CompareTo(object obj)
	{
		ColourValue other = (ColourValue)obj;


		if (this.a == other.a && this.r == other.r && this.g == other.g && this.b == other.b) {
			return 0;
		}

		return 1;
	}

	#endregion
}

Example usage

Get Colourvalue

//Use ColorEx's shared fields to get our color:
Mogre.ColourValue color = ColorEx.Purple;
//Or use the constructor:
Mogre.ColourValue color = new ColorEx(System.Drawing.Color.Purple);
//Or use the constructor and call ToColourValue:
Mogre.ColourValue color = new ColorEx(System.Drawing.Color.Purple).ToColourValue;
}
Info Information
The helper class is converted to mogrecolour automatically (see above) and vice versa.

Convert a Colourvalue to .Net Color

// Mogre colourvalue (yes, that's the RGBA code for purple)
ColourValue MyMogrePurple = new ColourValue(0.5019608f, 0f, 0.5019608f, 1f);
// Now we convert this to Drawing.Color:
Color purple = new ColorEx(MyMogrePurple).ToColor;
// or shorter (but the same):
Color purple = new ColorEx(MyMogrePurple);
Info Information
There are static methods, too, but they do exactly thte same thing ;)
  • ColorEx.ToColor
  • ColorEx.ToColourValue