Gradient
classin packageklyn.gui.windows
public abstract class Gradient:
Gradient
Base class for paint gradients.
gradient = LinearGradient(0, 0, 160, 0)
gradient.addStop(0.0, Color.white())
gradient.addStop(1.0, Color(37, 99, 235, 1.0))
Methods
Modifier and Type Member Description
public addStop
addStop(offset as Double, color as Color) as Gradient:
Appends a color stop to the gradient.
public clearStops
clearStops() as Void:
Removes all color stops.
public kind
kind() as String:
Returns the gradient kind.
public stops
stops() as ArrayList<GradientStop>:
Returns the configured color stops.
public stopsDescription
stopsDescription() as String:
Returns a short human-readable description of the stops.
public override toString
toString() as String:
No summary.