Class Color
Methods to generate COLOURS but using the american spelling
Time will tell if this generates confusion. Perhaps I should stick with the americanised spelling
Inheritance
System.Object
Color
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public static class Color : object
Properties
AliceBlue
Declaration
public static Colour AliceBlue { get; }
Property Value
AntiqueWhite
Declaration
public static Colour AntiqueWhite { get; }
Property Value
Aqua
Declaration
public static Colour Aqua { get; }
Property Value
Aquamarine
Declaration
public static Colour Aquamarine { get; }
Property Value
Azure
Declaration
public static Colour Azure { get; }
Property Value
Beige
Declaration
public static Colour Beige { get; }
Property Value
Bisque
Declaration
public static Colour Bisque { get; }
Property Value
Black
Declaration
public static Colour Black { get; }
Property Value
BlanchedAlmond
Declaration
public static Colour BlanchedAlmond { get; }
Property Value
Blue
Declaration
public static Colour Blue { get; }
Property Value
BlueViolet
Declaration
public static Colour BlueViolet { get; }
Property Value
Brown
Declaration
public static Colour Brown { get; }
Property Value
Burlywood
Declaration
public static Colour Burlywood { get; }
Property Value
CadetBlue
Declaration
public static Colour CadetBlue { get; }
Property Value
Chartreuse
Declaration
public static Colour Chartreuse { get; }
Property Value
Chocolate
Declaration
public static Colour Chocolate { get; }
Property Value
Coral
Declaration
public static Colour Coral { get; }
Property Value
CornflowerBlue
Declaration
public static Colour CornflowerBlue { get; }
Property Value
Cornsilk
Declaration
public static Colour Cornsilk { get; }
Property Value
Crimson
Declaration
public static Colour Crimson { get; }
Property Value
Cyan
Declaration
public static Colour Cyan { get; }
Property Value
DarkBlue
Declaration
public static Colour DarkBlue { get; }
Property Value
DarkCyan
Declaration
public static Colour DarkCyan { get; }
Property Value
DarkGoldenrod
Declaration
public static Colour DarkGoldenrod { get; }
Property Value
DarkGray
Declaration
public static Colour DarkGray { get; }
Property Value
DarkGreen
Declaration
public static Colour DarkGreen { get; }
Property Value
DarkKhaki
Declaration
public static Colour DarkKhaki { get; }
Property Value
DarkMagenta
Declaration
public static Colour DarkMagenta { get; }
Property Value
DarkOliveGreen
Declaration
public static Colour DarkOliveGreen { get; }
Property Value
DarkOrange
Declaration
public static Colour DarkOrange { get; }
Property Value
DarkOrchid
Declaration
public static Colour DarkOrchid { get; }
Property Value
DarkRed
Declaration
public static Colour DarkRed { get; }
Property Value
DarkSalmon
Declaration
public static Colour DarkSalmon { get; }
Property Value
DarkSeaGreen
Declaration
public static Colour DarkSeaGreen { get; }
Property Value
DarkSlateBlue
Declaration
public static Colour DarkSlateBlue { get; }
Property Value
DarkSlateGray
Declaration
public static Colour DarkSlateGray { get; }
Property Value
DarkTurquoise
Declaration
public static Colour DarkTurquoise { get; }
Property Value
DarkViolet
Declaration
public static Colour DarkViolet { get; }
Property Value
DeepPink
Declaration
public static Colour DeepPink { get; }
Property Value
DeepSkyBlue
Declaration
public static Colour DeepSkyBlue { get; }
Property Value
DimGray
Declaration
public static Colour DimGray { get; }
Property Value
DodgerBlue
Declaration
public static Colour DodgerBlue { get; }
Property Value
Firebrick
Declaration
public static Colour Firebrick { get; }
Property Value
FloralWhite
Declaration
public static Colour FloralWhite { get; }
Property Value
ForestGreen
Declaration
public static Colour ForestGreen { get; }
Property Value
Fuchsia
Declaration
public static Colour Fuchsia { get; }
Property Value
Gainsboro
Declaration
public static Colour Gainsboro { get; }
Property Value
GhostWhite
Declaration
public static Colour GhostWhite { get; }
Property Value
Gold
Declaration
public static Colour Gold { get; }
Property Value
Goldenrod
Declaration
public static Colour Goldenrod { get; }
Property Value
Gray
Declaration
public static Colour Gray { get; }
Property Value
Green
Declaration
public static Colour Green { get; }
Property Value
GreenYellow
Declaration
public static Colour GreenYellow { get; }
Property Value
Honeydew
Declaration
public static Colour Honeydew { get; }
Property Value
HotPink
Declaration
public static Colour HotPink { get; }
Property Value
IndianRed
Declaration
public static Colour IndianRed { get; }
Property Value
Indigo
Declaration
public static Colour Indigo { get; }
Property Value
Ivory
Declaration
public static Colour Ivory { get; }
Property Value
Khaki
Declaration
public static Colour Khaki { get; }
Property Value
Lavender
Declaration
public static Colour Lavender { get; }
Property Value
LavenderBlush
Declaration
public static Colour LavenderBlush { get; }
Property Value
LawnGreen
Declaration
public static Colour LawnGreen { get; }
Property Value
LemonChiffon
Declaration
public static Colour LemonChiffon { get; }
Property Value
LightBlue
Declaration
public static Colour LightBlue { get; }
Property Value
LightCoral
Declaration
public static Colour LightCoral { get; }
Property Value
LightCyan
Declaration
public static Colour LightCyan { get; }
Property Value
LightGoldenrod
Declaration
public static Colour LightGoldenrod { get; }
Property Value
LightGray
Declaration
public static Colour LightGray { get; }
Property Value
LightGreen
Declaration
public static Colour LightGreen { get; }
Property Value
LightPink
Declaration
public static Colour LightPink { get; }
Property Value
LightSalmon
Declaration
public static Colour LightSalmon { get; }
Property Value
LightSeaGreen
Declaration
public static Colour LightSeaGreen { get; }
Property Value
LightSkyBlue
Declaration
public static Colour LightSkyBlue { get; }
Property Value
LightSlateGray
Declaration
public static Colour LightSlateGray { get; }
Property Value
LightSteelBlue
Declaration
public static Colour LightSteelBlue { get; }
Property Value
LightYellow
Declaration
public static Colour LightYellow { get; }
Property Value
Lime
Declaration
public static Colour Lime { get; }
Property Value
LimeGreen
Declaration
public static Colour LimeGreen { get; }
Property Value
Linen
Declaration
public static Colour Linen { get; }
Property Value
Magenta
Declaration
public static Colour Magenta { get; }
Property Value
Maroon
Declaration
public static Colour Maroon { get; }
Property Value
MediumAquamarine
Declaration
public static Colour MediumAquamarine { get; }
Property Value
MediumBlue
Declaration
public static Colour MediumBlue { get; }
Property Value
MediumOrchid
Declaration
public static Colour MediumOrchid { get; }
Property Value
MediumPurple
Declaration
public static Colour MediumPurple { get; }
Property Value
MediumSeaGreen
Declaration
public static Colour MediumSeaGreen { get; }
Property Value
MediumSlateBlue
Declaration
public static Colour MediumSlateBlue { get; }
Property Value
MediumSpringGreen
Declaration
public static Colour MediumSpringGreen { get; }
Property Value
MediumTurquoise
Declaration
public static Colour MediumTurquoise { get; }
Property Value
MediumVioletRed
Declaration
public static Colour MediumVioletRed { get; }
Property Value
MidnightBlue
Declaration
public static Colour MidnightBlue { get; }
Property Value
MintCream
Declaration
public static Colour MintCream { get; }
Property Value
MistyRose
Declaration
public static Colour MistyRose { get; }
Property Value
Moccasin
Declaration
public static Colour Moccasin { get; }
Property Value
NavajoWhite
Declaration
public static Colour NavajoWhite { get; }
Property Value
NavyBlue
Declaration
public static Colour NavyBlue { get; }
Property Value
OldLace
Declaration
public static Colour OldLace { get; }
Property Value
Olive
Declaration
public static Colour Olive { get; }
Property Value
OliveDrab
Declaration
public static Colour OliveDrab { get; }
Property Value
Orange
Declaration
public static Colour Orange { get; }
Property Value
OrangeRed
Declaration
public static Colour OrangeRed { get; }
Property Value
Orchid
Declaration
public static Colour Orchid { get; }
Property Value
PaleGoldenrod
Declaration
public static Colour PaleGoldenrod { get; }
Property Value
PaleGreen
Declaration
public static Colour PaleGreen { get; }
Property Value
PaleTurquoise
Declaration
public static Colour PaleTurquoise { get; }
Property Value
PaleVioletRed
Declaration
public static Colour PaleVioletRed { get; }
Property Value
PapayaWhip
Declaration
public static Colour PapayaWhip { get; }
Property Value
PeachPuff
Declaration
public static Colour PeachPuff { get; }
Property Value
Peru
Declaration
public static Colour Peru { get; }
Property Value
Pink
Declaration
public static Colour Pink { get; }
Property Value
Plum
Declaration
public static Colour Plum { get; }
Property Value
PowderBlue
Declaration
public static Colour PowderBlue { get; }
Property Value
Purple
Declaration
public static Colour Purple { get; }
Property Value
RebeccaPurple
Declaration
public static Colour RebeccaPurple { get; }
Property Value
Red
Declaration
public static Colour Red { get; }
Property Value
RosyBrown
Declaration
public static Colour RosyBrown { get; }
Property Value
RoyalBlue
Declaration
public static Colour RoyalBlue { get; }
Property Value
SaddleBrown
Declaration
public static Colour SaddleBrown { get; }
Property Value
Salmon
Declaration
public static Colour Salmon { get; }
Property Value
SandyBrown
Declaration
public static Colour SandyBrown { get; }
Property Value
SeaGreen
Declaration
public static Colour SeaGreen { get; }
Property Value
Seashell
Declaration
public static Colour Seashell { get; }
Property Value
Sienna
Declaration
public static Colour Sienna { get; }
Property Value
Silver
Declaration
public static Colour Silver { get; }
Property Value
SkyBlue
Declaration
public static Colour SkyBlue { get; }
Property Value
SlateBlue
Declaration
public static Colour SlateBlue { get; }
Property Value
SlateGray
Declaration
public static Colour SlateGray { get; }
Property Value
Snow
Declaration
public static Colour Snow { get; }
Property Value
SpringGreen
Declaration
public static Colour SpringGreen { get; }
Property Value
SteelBlue
Declaration
public static Colour SteelBlue { get; }
Property Value
Tan
Declaration
public static Colour Tan { get; }
Property Value
Teal
Declaration
public static Colour Teal { get; }
Property Value
Thistle
Declaration
public static Colour Thistle { get; }
Property Value
Tomato
Declaration
public static Colour Tomato { get; }
Property Value
Turquoise
Declaration
public static Colour Turquoise { get; }
Property Value
Violet
Declaration
public static Colour Violet { get; }
Property Value
WebGray
Declaration
public static Colour WebGray { get; }
Property Value
WebGreen
Declaration
public static Colour WebGreen { get; }
Property Value
WebMaroon
Declaration
public static Colour WebMaroon { get; }
Property Value
WebPurple
Declaration
public static Colour WebPurple { get; }
Property Value
Wheat
Declaration
public static Colour Wheat { get; }
Property Value
White
Declaration
public static Colour White { get; }
Property Value
WhiteSmoke
Declaration
public static Colour WhiteSmoke { get; }
Property Value
Yellow
Declaration
public static Colour Yellow { get; }
Property Value
YellowGreen
Declaration
public static Colour YellowGreen { get; }
Property Value
Methods
New(Single, Single, Single, Single)
Create a four component colour, with RGBA values each within 0 to 1 range
Declaration
public static Colour New(float r, float g, float b, float a)
Parameters
| Type |
Name |
Description |
| System.Single |
r |
Colour Component 0 to 1
|
| System.Single |
g |
Colour Component 0 to 1
|
| System.Single |
b |
Colour Component 0 to 1
|
| System.Single |
a |
Colour Component 0 to 1
|
Returns