If you just want a blue rectangle with holes in it, I think you can just
draw into the UIComponent
graphics.drawRect(0,0, 500, 500);
Needs to be transparent holes. How would you do that with a rectangle and drawCircle?
In theory, the drawcircle inside the rectangle cuts holes. The fill starts
from the edge of the rect until it hits the edge of the circle and starts up
again on the opposite edge of the circle.
Very correct. Only thing is, if there is a circle inside a circle or they overlap it treats that overlap as fill area. Wondering how to fix that.
Well, the fill is doing scan-line edge detection. I think drawCircle is
really a convenience for a bunch of curveTo's. If you do the math, you can
figure out how to create the bounding paths around the circles. Then
instead of drawing circles, you draw the bounding paths.