Overview
Defines one element of the ramp of colors to use on a gradient.
For more information see javafx.scene.paint.LinearGradient
and
javafx.scene.paint.RadialGradient
.
Example:
// object bounding box relative (proportional:true, default)
Rectangle {
x: 0 y: 0 width: 100 height: 100
fill: LinearGradient {
startX: 0.0
startY: 0.0
endX: 1.0
endY: 0.0
stops: [
Stop { offset: 0.0 color: Color.BLACK },
Stop { offset: 1.0 color: Color.RED }
]
}
}
Profile: common
Variable Summary
access | name | type | Can Read | Can Init | Can Write | Default Value | description |
---|---|---|---|---|---|---|---|
public-init | color | Color | null |
The color of the gradient at this offset. |
|||
public-init | offset | Number | 0.0 |
The The Profile: common |