Hi! As a beginner I stucked at my test code, however it's quite simple. Here it is:
int a =0;
int b = 0;
int c = 0;
int d = 0;
void setup()
{
size(500,500);
}
void draw()
{
background(255);
line(c,d,a,b);
}
void mouseMoved()
{
a = mouseX;
b = mouseY;
}
void mouseClicked()
{
c = a;
d = b;
}
I would like to mark points on a picture, without processing redraw the already marked points and the lines between these points. I've tried the redraw function to, but did not solved my problem.
Hi! My processing Sketch read from a log file and draw the datas in a koordinate sytem. I made a cursor with a vertical and a horizontal line, that cross each other, where the mouse is. But!
If I read a data, and draw it, then it will disappear, because of the background command, but if I do not use background() the program leave the previously cursor lines and it will be a mess.
How can I clear the cursor lines, without clear the data lines?
In my simulation, I have many data (numbers that represents percentages) in a log file, that I would like to draw. There is no problem until I reach the other side of the sketch window. Then I can not see my data.
I need something, that continues the drawing that basically invisible in a static for example 500,500 window (size(500,500), and does not drop my first values, so I can scroll back to any previous data.