Punching holes in a graphic
capellan2000 at gmail.com
Sun Apr 18 15:15:29 CDT 2010
Probably, changing ink effects or blendlevel to show
rectangles overlapping areas, could work in this case.
Actually, i tested the idea with two ungrouped rectangles
on different layers moving via a mousemove handler.
When i move the mouse too fast, one of the rectangles
gets behind and the effect is disconcerting or comical,
depending of your mood. :-)
In this case, i prefer, on mousedown, to hide the colored border
and show it again on mouseup and mouserelease.
The problem with this method, is that boundaries between
rounded rectangles is difficult to see, while moving the selected
In another test, i added a handler to change, on mousedown,
the blendlevel of all other rounded rectangles while
dragging around the selected rounded rectangle.
In this case, the difference on blendlevels marked clearly
the boundaries between rounded rectangles.
The blendlevel of all rounded rectangles is restored
on mouseup and mouserelease.
More information about the use-livecode