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
This comment needs review.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
color | Color |
The color of the gradient at this offset. More: [+]The color of the gradient at this offset. Profile: common |
offset | Number |
The The Profile: common |
Protected |