Creates a new linear gradient pattern
X coordinate of the start point
Y coordinate of the start point
X coordinate of the end point
Y coordinate of the end point
Adds an opaque color stop to the gradient at the given offset
Offset position of the stop, between 0 and 1
Red component, between 0 and 1
Green component, between 0 and 1
Blue component, between 0 and 1
Adds a color stop to the gradient at the given offset
Offset position of the stop, between 0 and 1
Red component, between 0 and 1
Green component, between 0 and 1
Blue component, between 0 and 1
Alpha component, between 0 and 1
A pattern for linear gradients