LinearGradient
classin packageklyn.gui.windows
public class LinearGradient extends Gradient:
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 |
Start point X. |
| public property |
x1 |
End point X. |
| public property |
y0 |
Start point Y. |
| public property |
y1 |
End point Y. |
Constructors
| Modifier and Type |
Member |
Description |
| public |
LinearGradient |
No summary. |
Methods
| Modifier and Type |
Member |
Description |
| public override |
kind |
No summary. |