Using this method rather than 'LOCATE' to check for overlapping is much simpler. The ISITIN subroutine can be easily accessed and you don't have to use a color locate command to check every pixel (plotted point) to see if something is there. Now that I've given you some ammunition, you can put it to work. I'd be very interested to see the kind of applications you can mold this to, or any improvements you may suggest.
"BOXES & SQUARES" DEMO
Note: hit any key to stop