A total programming beginner that I am helping started going through the "Learning Processing" course and already found this hard to do thing.
Set operations on shapes that you could check and draw pixels differently based on.
Say two or more circles, A, B, C etc.
I want intersection of A and B to be red, A and C to be green and B and C to be blue. He tried all the blendModes and didn't figure it out.
I, with years and years of coding experience, have only found pretty hard and unsatisfying ways to do this, some included bringing in more Java, many included imperfect solutions.
For example, filter solution from this post:
#1171532567489560576 message
Is there no simple way to iterate all (or some) pixels in the window and ask "Are you part of shape X?". Or precise shape collision? Or programmable blend mode?
Thanks a lot for any answers.