While I'm familiar (to some degree) with the imagescollide, imagesoverlap, imagerectoverlap, imagerectcollide functions, I'm lost as to how to determine if one image is fully inside another (where both have transparency around the outer portion).
For example, I can deal with two rectangles using their respective x,y,width,height. However, if the smaller object is not a simple rectangle, but rather a hexagon or circle image, I'm not sure how to proceed.
If the larger object is also not a simple rectangle, I'm further lost.
I'm trying to code picking up an irregularly shaped card (say a hexagon shaped card) with a number of circular tokens on it. I need to detect which tokens are fully on the hex shaped card.
For example, I can deal with two rectangles using their respective x,y,width,height. However, if the smaller object is not a simple rectangle, but rather a hexagon or circle image, I'm not sure how to proceed.
If the larger object is also not a simple rectangle, I'm further lost.
I'm trying to code picking up an irregularly shaped card (say a hexagon shaped card) with a number of circular tokens on it. I need to detect which tokens are fully on the hex shaped card.