Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Converts normalized color channels to bytes by multiplying by 255 and truncating.

API: scripting
Project: Inno.Core.Mathematics
Scope: Runtime

public (byte, byte, byte, byte) InnoEngine.Mathematics.Color.ToBytes()

Red, green, blue and alpha bytes. Inputs must already be finite and in [0, 1]; conversion does not clamp field writes.