We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to draw the space around a circle - so the actual circle is transparent but the area around it is black. I am trying to make a scope to look through, if anyone has any other ideas on how to do this then please let me know.
Answers
I believe this is what you are looking for: https://forum.processing.org/two/discussion/comment/76980/#Comment_76980
https://forum.processing.org/two/discussion/18819/how-to-copy-a-triangle-out-of-an-image
Kf
yes - this worked for me - it's just a bit slow when you want to mask a part of an image where the mouse co-ordinates are.
Many thanks.
@gemstormer -- well, there are various ways that you could try optimizing the masking process (untested).
For example, cropping a square of size m*n from your source image mouseX,mouseY and then masking only that with a tight circle. Now instead of masking the full screen, you are just drawing a black background and masking an area the size of your scope sight.