Gradient.newLinear

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.gradient.Gradient.addColorStop.

More...
class Gradient
static
newLinear
(
double x0
,
double y0
,
double x1
,
double y1
)

Parameters

x0 double

X coordinate of the starting point

y0 double

Y coordinate of the starting point

x1 double

X coordinate of the end point

y1 double

Y coordinate of the end point

Return Value

Type: gtk.gradient.Gradient

A newly created #GtkGradient

Detailed Description

Deprecated: #GtkGradient is deprecated.