With two objects (circles, rectangles, …) overlapping I’d like to color them in another color on the overlapping part.
For example two objects are blue and the overlapping part is orange.
- Could this be done by any filter function and the
circle()
,rect()
, …? Or drawing point by point?
I also know about drawing the forms by coding the x/y coordinates.
-
How do I get the color of a point (x, y)? I tried
brightness(get(x, y));
. Is that right? -
For setting the color of a pixel
point()
is to slow and I have to usepixels[]
, right?
Thank you for helping me with this topic.