Hello!
I have a program where some dots move around the screen randomly. When they go off the screen, they just come back on at the opposite edge travelling at the same speed in the same direction. At the moment, they are constrained to the screen, but I want to restrict them to within a circle, rather than a rectangle/square area. Any ideas how to do this?
I have a feeling there might be a mathsy way to restrict it, but not sure. A seemingly easier alternative would be to just fill in a shape which filled in the corners, but I don't know how to draw a filled triangle with one of the sides caved in!
Any ideas?
Can post code and/or clarification if needed.
Thanks :)
1