IBM TJ Watson Research

IBMLayer2D

IBMLayer2D.mp4

Description

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 400x200, 300x150, 200x100 and 100x50 respectively. Each Layer2D contains a child Rectangle node of size 500x250. 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 500x250 but 'clipped' to size by the Layer2D down to 100x50.

Screenshot

Snapshot of screen



Back to main index