how can you output a changing text, which comes via a serial interface on the screen output? the problem is that the first text always stops and then it runs into each other.
I guess you’re not clearing the previous display? if yes, juts put background(0) to clear, put it before the text being drawn onto the screen. I’m not very sure, can you post the working code? just a bit to show the problem.
hi thanks for the answer and sorry for the bad description.
i’m doing a radar project, with the arduino i send distance to processing and i want to show it there. because background(0) i want to leave it that way, that’s just the background color, right?
i just tried to make an example:
int test;
void setup(){
size(1000, 1000);
}
void draw(){
int test=5*5;
textSize(100);
fill(0, 139, 0, 139);
text(test, 300,300);
}
that’s how it works. but the measured distance always changes or stays away.
I’ll take a picture later to pinpoint the problem.