Synced
Color.FromBytes
Section titled “Color.FromBytes”
- Creates a normalized color from byte channel values.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public static InnoEngine.Mathematics.Color InnoEngine.Mathematics.Color.FromBytes(byte r, byte g, byte b, byte a = 255)Parameters
Section titled “Parameters”Parameter r: The red byte channel.
Parameter g: The green byte channel.
Parameter b: The blue byte channel.
Parameter a: The alpha byte channel; 255 is opaque.
Returns
Section titled “Returns”A color with each byte channel divided by 255.