scroll text in small rect
in
Programming Questions
•
6 months ago
hi.
I need to write 100 lines of numbers, but the space is small .
how I can make scroll for the white rect?
PFont f;
void setup ()
{
background(0,0,0);
size(500, 500);
f = createFont("Arial",26,true);
fill (255,255,255);
rect (0,0,200,500);
fill (0,0,0);
int cuenta=0;
int linea=20;
textFont(f,20);
while (cuenta <=100)
{
text(millis(), 10, linea);
linea = linea + 20;
cuenta++;
}
}
void draw ()
{
}
thanks
1