Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Creates a normalized color from byte channel values.

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

public static InnoEngine.Mathematics.Color InnoEngine.Mathematics.Color.FromBytes(byte r, byte g, byte b, byte a = 255)

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.

A color with each byte channel divided by 255.