Java Reference
In-Depth Information
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.effect.*;
import javafx.scene.text.*;
Stage {
scene: Scene {
width: 150
height: 150
content: [
Group {
blendMode: BlendMode.ADD
content: [
Rectangle {
x: 35 y: 50
width: 75 height: 50
fill: Color.rgb(255, 0, 255, 1)
}
Text {
font: Font {
size: 52
}
x: 5, y: 95
content: "Blend"
fill: Color.rgb(0, 255, 0 , 1)
}
]
}
]
}
}
Figure 6.18 displays the resulting output.
Figure 6.18
BlendMode.ADD Effect
Search WWH ::




Custom Search