Class Color
- Namespace
- Axolotl2D
- Assembly
- Axolotl2D.dll
Represents a color in the game.
public class Color
- Inheritance
-
Color
- Inherited Members
Constructors
Color(float, float, float, float)
Initialize a new Color object.
public Color(float r, float g, float b, float a)
Parameters
Properties
A
The alpha component of the color.
public float A { get; }
Property Value
B
The blue component of the color.
public float B { get; }
Property Value
Black
#000000
public static Color Black { get; }
Property Value
Blue
#0000FF
public static Color Blue { get; }
Property Value
Brown
#A52A2A
public static Color Brown { get; }
Property Value
Cyan
#FF00FF
public static Color Cyan { get; }
Property Value
DarkGray
#404040
public static Color DarkGray { get; }
Property Value
G
The green component of the color.
public float G { get; }
Property Value
Gray
#808080
public static Color Gray { get; }
Property Value
Green
#00FF00
public static Color Green { get; }
Property Value
LightGray
#C0C0C0
public static Color LightGray { get; }
Property Value
Magenta
#FF00FF
public static Color Magenta { get; }
Property Value
Orange
#FFA500
public static Color Orange { get; }
Property Value
R
The red component of the color.
public float R { get; }
Property Value
RamptoerismeBlue
#0023FF
public static Color RamptoerismeBlue { get; }
Property Value
Red
#FF0000
public static Color Red { get; }
Property Value
Transparent
#00000000
public static Color Transparent { get; }
Property Value
Value
The numeric value of the color.
public uint Value { get; }
Property Value
White
#FFFFFF
public static Color White { get; }
Property Value
Yellow
#FFFF00
public static Color Yellow { get; }
Property Value
Methods
FromHTML(string)
Create a new color from a HTML color string.
public static Color FromHTML(string html)
Parameters
html
stringThe HTML color to parse
Returns
- Color
The new color
Exceptions
FromRGB(float, float, float)
Create a new color from RGB values.
public static Color FromRGB(float r, float g, float b)
Parameters
Returns
- Color
The new Color