It’s working, but I think square.png is causing the confusion. The image is 300x300 pixels, of which the edges are fully transparent. If these weren’t, the circle would vanish every now and then. The centre of the squared image is opaque though.
Try using this image instead, where the entire image is transparent:
You’re right, the moment it gets behind the circle it gets blocked as well. Similar to the screenshot you’ve send. And the circle image is transparent, so that can’t be it
Thanks Tiemen, hint(ENABLE_DEPTH_SORT); works on the sketch above, but doesn’t work on my other messier sketch which has 150+ img doing rotating, but Waboqueox’s suggestion does work! when added
Have you tried doing a resetMatrix https://processing.org/reference/resetMatrix_.html
Since the result isn’t clearly in displaying alpha. And you might want to use .svg instead of .png, I don’t know if .png is alpha processed with or without, while .svg is define for alpha masking. Hope this helps.