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

<HR>
Creative Commons Copyright -- Some rights reserved.


THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.

BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS.

1. Definitions

  • "Collective Work" means a work, such as a periodical issue, anthology or encyclopedia, in which the Work in its entirety in unmodified form, along with a number of other contributions, constituting separate and independent works in themselves, are assembled into a collective whole. A work that constitutes a Collective Work will not be considered a Derivative Work (as defined below) for the purposes of this License.
  • "Derivative Work" means a work based upon the Work or upon the Work and other pre-existing works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which the Work may be recast, transformed, or adapted, except that a work that constitutes a Collective Work will not be considered a Derivative Work for the purpose of this License. For the avoidance of doubt, where the Work is a musical composition or sound recording, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered a Derivative Work for the purpose of this License.
  • "Licensor" means the individual or entity that offers the Work under the terms of this License.
  • "Original Author" means the individual or entity who created the Work.
  • "Work" means the copyrightable work of authorship offered under the terms of this License.
  • "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation.
  • "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike.

2. Fair Use Rights

Nothing in this license is intended to reduce, limit, or restrict any rights arising from fair use, first sale or other limitations on the exclusive rights of the copyright owner under copyright law or other applicable laws.

3. License Grant

Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below:

  • to reproduce the Work, to incorporate the Work into one or more Collective Works, and to reproduce the Work as incorporated in the Collective Works;
  • to create and reproduce Derivative Works;
  • to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission the Work including as incorporated in Collective Works;
  • to distribute copies or phonorecords of, display publicly, perform publicly, and perform publicly by means of a digital audio transmission Derivative Works.
  • For the avoidance of doubt, where the work is a musical composition:
    • Performance Royalties Under Blanket Licenses. Licensor waives the exclusive right to collect, whether individually or via a performance rights society (e.g. ASCAP, BMI, SESAC), royalties for the public performance or public digital performance (e.g. webcast) of the Work.
    • Mechanical Rights and Statutory Royalties. Licensor waives the exclusive right to collect, whether individually or via a music rights society or designated agent (e.g. Harry Fox Agency), royalties for any phonorecord You create from the Work ("cover version") and distribute, subject to the compulsory license created by 17 USC Section 115 of the US Copyright Act (or the equivalent in other jurisdictions).
    • Webcasting Rights and Statutory Royalties. For the avoidance of doubt, where the Work is a sound recording, Licensor waives the exclusive right to collect, whether individually or via a performance-rights society (e.g. SoundExchange), royalties for the public digital performance (e.g. webcast) of the Work, subject to the compulsory license created by 17 USC Section 114 of the US Copyright Act (or the equivalent in other jurisdictions).


The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. All rights not expressly granted by Licensor are hereby reserved.

4. Restrictions

The license granted in Section 3 above is expressly made subject to and limited by the following restrictions:

  • You may distribute, publicly display, publicly perform, or publicly digitally perform the Work only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy or phonorecord of the Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Work that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Work itself to be made subject to the terms of this License. If You create a Collective Work, upon notice from any Licensor You must, to the extent practicable, remove from the Collective Work any credit as required by clause 4(c), as requested. If You create a Derivative Work, upon notice from any Licensor You must, to the extent practicable, remove from the Derivative Work any credit as required by clause 4(c), as requested.
  • You may distribute, publicly display, publicly perform, or publicly digitally perform a Derivative Work only under the terms of this License, a later version of this License with the same License Elements as this License, or a Creative Commons iCommons license that contains the same License Elements as this License (e.g. Attribution-ShareAlike 2.5 Japan). You must include a copy of, or the Uniform Resource Identifier for, this License or other license specified in the previous sentence with every copy or phonorecord of each Derivative Work You distribute, publicly display, publicly perform, or publicly digitally perform. You may not offer or impose any terms on the Derivative Works that alter or restrict the terms of this License or the recipients' exercise of the rights granted hereunder, and You must keep intact all notices that refer to this License and to the disclaimer of warranties. You may not distribute, publicly display, publicly perform, or publicly digitally perform the Derivative Work with any technological measures that control access or use of the Work in a manner inconsistent with the terms of this License Agreement. The above applies to the Derivative Work as incorporated in a Collective Work, but this does not require the Collective Work apart from the Derivative Work itself to be made subject to the terms of this License.
  • If you distribute, publicly display, publicly perform, or publicly digitally perform the Work or any Derivative Works or Collective Works, You must keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or (ii) if the Original Author and/or Licensor designate another party or parties (e.g. a sponsor institute, publishing entity, journal) for attribution in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; the title of the Work if supplied; to the extent reasonably practicable, the Uniform Resource Identifier, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and in the case of a Derivative Work, a credit identifying the use of the Work in the Derivative Work (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). Such credit may be implemented in any reasonable manner; provided, however, that in the case of a Derivative Work or Collective Work, at a minimum such credit will appear where any other comparable authorship credit appears and in a manner at least as prominent as such other comparable authorship credit.

5. Representations, Warranties and Disclaimer

UNLESS OTHERWISE AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE MATERIALS, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.

6. Limitation on Liability.

EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

7. Termination

  • This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Derivative Works or Collective Works from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License.
  • Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above.

8. Miscellaneous

  • Each time You distribute or publicly digitally perform the Work or a Collective Work, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License.
  • Each time You distribute or publicly digitally perform a Derivative Work, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License.
  • If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
  • No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent.
  • This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You.