We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Here is an example of circles and text drawn to a PGraphics buffer (top), and just regular circles/text on the side. Why is there such a huge difference in quality/appearance? There is no difference in code between the two asides from appending canvas.
for (int x = 1; x < width/M; x ++) {
if (line) {
canvas.line(x*M, 0, x*M, canvasHeight);
}
canvas.textSize(10);
canvas.textAlign(CENTER, CENTER);
canvas.text(x + "m", x*M, 25*cm);
canvas.ellipse(x*M, 50*cm, 20*cm, 20*cm);
}
Answers
Hard to tell from the tiny picture and tiny code snippet but it looks like alpha buildup. Check the common question about why do my graphics looks so blocky.
That makes sense, I forgot the PGraphics doesn't reset each frame so background only affects the regular stuff.
Direct link to alpha buildup FAQ: