> That seems overly complicated. Can you not just compare the mouse's > coordinates to the picture's location in the canvas?
I don't have a good way to know where the picture itself is - only its bounding box. So if the picture consists of a doughnut shape, I want the center of the doughnut and the region around its edge to not count as clicks on it. My first go at this was actually built on an image combinator library where each image also could report on which pixels within its bounding box were occluded, but I'd much rather re-use all the great things in pict than develop my own. So I use the location on the canvas and the size of the bounding boxes to determine which pictures to actually check, and then the drawing test to see if the mouse is actually over them. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.