Filling the overlap of 2 circles

Hi everyone!

So I was wondering if its possible to fill the part that is overlaping of 2 circles overlaping and leave the rest white or in a different color.

The problem extends a little from this, but I feel that if I knew how to do this I’d know how to solve the actual problem.

Thanks guys!

1 Like

What first comes to mind

Make a PGraphics of the same size as your window

put the 2 circles with fill(55, 60);

you will have a mixed color in the overlap area

Find this color C1 by using get on the point between the 2 centers

Now check each pixel of both circles using get
and if equal C1 use set on the original Sketch
(same position) - or put in an Arraylist of PVector