We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a sketch, in wich I overlay some shapes with opacity. Is there a way to tell the program to replace the pixel color generated from the overlay, with a new color?
Answers
How can I make the intersection area, red?
Here's an example sketch:
But what i need is to:
Make the intersection of two objects, an X color, and the intersection of three objects, a Y color.
Here's another example sketch:
There's no automatic way to do this in Processing that I can think of. You could possibly be very clever with color choice and alpha to get the desired results. . but you could use arc() to draw just the intersection part! Look at OPEN!
https://processing.org/reference/arc_.html