@faaip wrote:
Hey all! I'm creating a program where I'd like to create a 'spotlight'-like effect. I want to render all my graphic elements, but have it sort of darkened. Then around the mouse there should be an ellipse where the graphics are shown with full brightness. Ideally this would enable the user to "search" around the canvas. How would you do such a thing?
Something visually similar to this:
https://processing.org/examples/brightness.html
The problem with the code is just that depends calculating distance from each pixel to a location. I'd like to have multiple users and the resolution is 7800 x 2200, so there has to be a more efficient way of doing it.Best regards,
Frederik
Posts: 2
Participants: 2