klyn.gui.windows.Color.Color
constructor
public Color(red as Int = 0, green as Int = 0, blue as Int = 0, alpha as Double = 1.0)
Description

Constructs an RGBA color, saturating channels to their documented ranges.

Parameters
ParameterDescription
redRed intensity, saturated to [0, 255].
greenGreen intensity, saturated to [0, 255].
blueBlue intensity, saturated to [0, 255].
alphaOpacity, saturated to [0.0, 1.0].
Throws
  • ValueException If alpha is NaN. Example: accent = Color(37, 99, 235, 0.8).