Color Constructors
Definition
Namespace: Brine2D.Core
| Overloads | |
|---|---|
| Color\(byte, byte, byte, byte\) | Creates a new color from RGBA byte values \(0\-255\). |
| Color\(float, float, float, float\) | Creates a new color from normalized float values \(0\.0\-1\.0\). |
| Color\(uint\) | Creates a new color from an integer RGBA value \(0xRRGGBBAA format\). |
Color\(byte, byte, byte, byte\) Constructor
Creates a new color from RGBA byte values \(0\-255\).
Parameters
Red component \(0\-255\).
Green component \(0\-255\).
Blue component \(0\-255\).
Alpha component \(0\-255, default: 255 = opaque\).
Color\(float, float, float, float\) Constructor
Creates a new color from normalized float values \(0\.0\-1\.0\).
Parameters
Red component \(0\.0\-1\.0\).
Green component \(0\.0\-1\.0\).
Blue component \(0\.0\-1\.0\).
Alpha component \(0\.0\-1\.0, default: 1\.0 = opaque\).
Color\(uint\) Constructor
Creates a new color from an integer RGBA value \(0xRRGGBBAA format\).
Parameters
rgba System.UInt32
Packed RGBA value \(e\.g\., 0xFF0000FF for red\).