There are 4 Layer2D nodes. Each new Layer2D is nested as a child of the one above. They are all positioned at 0,0 but their sizes are 1.6x0.8, 1.2x0.6, 0.8x0.4 and 0.4x0.2 respectively. Each Layer2D contains a child Rectangle node of size 2.0x1.0. Only the parts of those Rectangles that lie within the Layer2D should be seen. The inner most Rectangle has a TouchSensor and the color of the innermost Rectangle will be changed if the pointer (mouse) is moved over it. The Rectangle should not be sensed outside of that Layer i.e. it is 2.0x1.0 but 'clipped' to size by the Layer2D down to 0.4x0.2
Snapshot of screen
![]() |