Generated Object
javafx.scene.paint.LinearGradient
Value Argument
red - the red component of an rgb color using an integer in the range of 0 to 255
green - the green component of an rgb color using an integer in the range of 0 to 255
blue - the blue component of an rgb color using an integer in the range of 0 to 255
opacity - the optional opacity of a color in the range 0.0 to 1.0. If opacity is not present then the opacity will be 1.0.
Attributes
This node takes the attributes of the javafx.scene.paint.LinearGraident class. see javafx.scene.paint.LinearGradient
In addition, it takes the following attributes:
start - a list of 2 elements with the first value used to set the startX attribute of the LinearGradient and the second value to set the startY attribute.
end - a list of 2 elements with the first value used to set the endX attribute of the LinearGradient and the second value to set the endY attribute.
stops - The value of the stops attribute should be a List of 2-element Lists containing an offset and color: [[0.0, black], [1.0, red]]
Content
This node may optionally take one or more stop nodes as content.
Usage
This node creates a javafx.scene.paint.LinearGradient.