I was drawing a series of circles on top of each other with different dithering amounts to create a fade effect but I noticed that even though I set the color to white before drawing the circles, only the first circle drawn used white and the rest used black. The original method I tried was:
setColor() -> setDitherPattern() -> fillCircle() -> setDitherPattern() -> fillCircle() -> …
The way I eventually got it to work was:
setColor() -> setDitherPattern() -> fillCircle() -> setColor() -> setDitherPattern() -> fillCircle() -> …
This felt redundant since I was just setting the color to white over and over again. So my question is, is setColor() only used for a single draw call? Or is there something with setDitherPattern() that makes it act weird?