Hi I would like to be abble to simulate a variation of the ambiante light.
I am displaying instruments like indicatore and LEDs. So I was thinking of adding a Black rectangle with the OPACITY set to 0.6. on top: “Z:45”
But some of the item I display include LEDs which should not be darken by the black rectangle. but is I set “Z:100” on the LED which is included into an Item, it does not work because in my opinion Z is not manage globally but only inside the same Item
Simply speaking, in the following example, I would like the Pink Rectangle to be between the blue and the green WITHOUT changing the structure.
Item {
Rectangle {
id:ired
color: "red"
width: 100; height: 100
z:50
}
Rectangle {
id:iblue
color: "blue"
x: 50; y: 50; width: 100; height: 100
z:50
}
Rectangle {
id:igreen
color: "green"
x: 75; y: 75; width: 100; height: 100
z:100
}
}
Rectangle {
id:ipink
color: "pink"
opacity:0.6
width: 200; height: 200
z:60
}
↧