xxxxxxxxxx
float x1 = constrain (100,0,width);
float y1 = constrain (100,0,height);
PFont f;
char lletra;
int nombre;
void setup() {
size(2000, 2000);
background(255);
nombre = 0;
f = createFont("arial", 15);
textFont(f);
textAlign(CENTER, CENTER);
}
void draw() {
if (x1<950){
x1 = x1+random(1,40);
y1 = y1+random(-15,15);
}
else{
x1=100;
y1=y1+200;
}
fill(0);
textSize(random(20,50));
//////WRITE DOWN POEM IN THE ORANGE
String str = "headache, double-take, just read me for god sake. Making mistakes, eyes shake, there is no such thing as a line break";
//////WRITE DOWN POEM IN THE ORANGE
if (nombre < str.length()){
char lletra = str.charAt(nombre);
text(lletra, x1, y1);
nombre++;
}
}
function mousePressed() {
saveCanvas('writing.png')
}