[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.0" ) ]
public Gradient.linear (double x0, double y0, double x1, double y1)
Creates a new linear gradient along the line defined by (x0, y0) and (x1, y1).
Gradient is deprecated.
Before using the gradient a number of stop colors must be added through add_color_stop.
x0 |
X coordinate of the starting point |
y0 |
Y coordinate of the starting point |
x1 |
X coordinate of the end point |
y1 |
Y coordinate of the end point |
A newly created Gradient |