Processing text placement on output screen
in
Programming Questions
•
2 years ago
There are errors in Processing that cause output to be placed off location. Run this example:
boolean sw = true;
void setup() {
size(480,480);
}
void draw() {
fill(0);
textSize(24);
text("Draw this message repeatedly", 10, 30);
if (sw) text("Draw this message once", 10, 60);
sw = false;
noLoop(); // remove or comment out after first run
}
The on screen text in the repeated message degrades as the pixels start to mush out around the target area. It also happens when the background and fill values are changed.
Is this a bug? How does one put text on the screen that doesn't turn to mush with repeated calls to draw()?
boolean sw = true;
void setup() {
size(480,480);
}
void draw() {
fill(0);
textSize(24);
text("Draw this message repeatedly", 10, 30);
if (sw) text("Draw this message once", 10, 60);
sw = false;
noLoop(); // remove or comment out after first run
}
The on screen text in the repeated message degrades as the pixels start to mush out around the target area. It also happens when the background and fill values are changed.
Is this a bug? How does one put text on the screen that doesn't turn to mush with repeated calls to draw()?
1