Java Reference
In-Depth Information
proportional: true
stops: [
Stop{
offset: 0.0
color: Color.BLUE
},
Stop{
offset: 1.0
color: Color.YELLOW
},
]
}
}
var v1 = VBox{
nodeHPos: HPos.CENTER
content: [rect1, Label{text:"Proportional Linear"}]
}
var rect2 = Rectangle{
width: 100
height: 100
fill: LinearGradient{
proportional: false
startX: 20
endX: 80
startY: 0
endY: 0
stops: [
Stop{
offset: 0.0
color: Color.BLUE
},
Stop{
offset: 1.0
color: Color.YELLOW
},
]
}
}
var v2 = VBox{
nodeHPos: HPos.CENTER
content: [rect2, Label{text:"Fixed Width Linear"}]
}
var rect3 = Rectangle{
width: 100
height: 100
fill: RadialGradient{
proportional: true
stops: [
Stop{
offset: 0.0
color: Color.BLUE
Search WWH ::




Custom Search