Struct Color
- Namespace
- BasilEngine.Rendering
- Assembly
- BasilEngine.dll
[Disabled]
public struct Color
- Inherited Members
Constructors
Color(float, float, float, float)
Initializes a new Color.
public Color(float r, float g, float b, float a = 1)
Parameters
rfloatRed component (0-1).
gfloatGreen component (0-1).
bfloatBlue component (0-1).
afloatAlpha component (0-1).
Properties
A
Alpha component of the color.
public float A { get; set; }
Property Value
B
Blue component of the color.
public float B { get; set; }
Property Value
Black
Solid black color (0,0,0,1).
public static Color Black { get; }
Property Value
Blue
Solid blue color.
public static Color Blue { get; }
Property Value
G
Green component of the color.
public float G { get; set; }
Property Value
Gold
Gold color using normalized RGBA values.
public static Color Gold { get; }
Property Value
Green
Solid green color.
public static Color Green { get; }
Property Value
Magenta
Solid magenta color.
public static Color Magenta { get; }
Property Value
R
Red component of the color.
public float R { get; set; }
Property Value
Red
Solid red color.
public static Color Red { get; }
Property Value
White
Solid white color (1,1,1,1).
public static Color White { get; }
Property Value
Yellow
Solid yellow color.
public static Color Yellow { get; }
Property Value
Operators
implicit operator Color(Color32)
public static implicit operator Color(Color32 color32)
Parameters
color32Color32Color with 8-bit components.