klyn.gui.windows.GradientStop.GradientStop
constructor
public GradientStop(offset as Double = 0.0, color as Color = null)
Description

Creates a color stop with an offset saturated to [0.0, 1.0].

Parameters
ParameterDescription
offsetPosition along the gradient.
colorStop color; null selects opaque black.
Throws
  • ValueException If offset is NaN. Example: stop = GradientStop(0.5, Color.white()).