LinearGradient
class in package klyn.gui.windows

    public class LinearGradient extends Gradient:

Gradient
└ LinearGradient

Linear gradient compatible with a canvas-style API.

    gradient = LinearGradient(0, 0, 200, 0)
    gradient.addStop(0.0, Color.white())
    gradient.addStop(1.0, Color(37, 99, 235, 1.0))

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | x0 `x0 as Int` | Start point X.
public property | x1 `x1 as Int` | End point X.
public property | y0 `y0 as Int` | Start point Y.
public property | y1 `y1 as Int` | End point Y.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | LinearGradient `LinearGradient(x0 as Int = 0, y0 as Int = 0, x1 as Int = 0, y1 as Int = 0):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public override | kind `kind() as String:` | No summary.

Inherited Methods
method Inherited Methods from Gradient: addStop, clearStops, kind, setColorAt, stops, stopsDescription, toString