Gtk.Gradient.new_linear
function new_linear(x0:Number, y0:Number, x1:Number, y1:Number):Gtk.Gradient {
// Gjs wrapper for gtk_gradient_new_linear()
}Creates a new linear gradient along the line defined by (x0, y0) and (x1, y1). Before using the gradient a number of stop colors must be added through Gtk.add_color_stop.
Since 3.0
- 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
- Returns
A newly created Gtk.Gradient