Java Reference
In-Depth Information
height: 480
scene: Scene {
fill: Color.BLACK
content: [topBox,exampleGroup]
}
}
}
function reset(){
delete exampleGroup.content;
exampleGroup.scene.fill = Color.BLACK;
}
function sampleLights():Void{
reset();
var rect1 = Rectangle{
width: 100
height: 100
fill: Color.WHITE
effect: Lighting{
light: DistantLight{azimuth: 180.0, elevation: 45.0, color: Color.RED}
surfaceScale: 4;
}
}
var rect2 = Rectangle{
width: 100
height: 100
fill: Color.WHITE
effect: Lighting{
light: PointLight{x: 50.0, y: 50.0, z: 20.0, color: Color.GREEN}
surfaceScale: 4;
}
}
var rect3 = Rectangle{
width: 100
height: 100
fill: Color.WHITE
effect: Lighting{
light: SpotLight{x: 50.0, y: 30.0, z: 20.0, pointsAtX: 50.0, pointsAtY: 100.0,
color: Color.BLUE}
surfaceScale: 4;
}
}
var box = HBox{
translateX: 96
translateY: 190
spacing: 64
Search WWH ::




Custom Search