Synced
Color.ToBytes
Section titled “Color.ToBytes”
- Converts normalized color channels to bytes by multiplying by 255 and truncating.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime
Declaration
Section titled “Declaration”public (byte, byte, byte, byte) InnoEngine.Mathematics.Color.ToBytes()Returns
Section titled “Returns”Red, green, blue and alpha bytes. Inputs must already be finite and in [0, 1]; conversion does not clamp field writes.