xxxxxxxxxx
String speech = "--\nno hablemos-\nde paz-\nsin justicia-\nni verdad--";
String[] list = split(speech, "-");
PFont f;
int index;
//variables imágenes
PImage cap;
PImage fon4;
void setup () {
size (850,550);
f=createFont("FairyTaleJF", 10);
textFont(f);
frameRate(1.2); // CAMBIAR LA VELOCIDAD
colorMode (HSB,255);
cap = loadImage("capucha.png");
fon4 = loadImage("fondo_4.png");
}
void draw () {
background(random(0,255),190, 255);
textFont(f, 100);
index++;
if (index>list.length-1){
index=1;
}
textAlign (CENTER);
text (list[index],230,250);
//IMAGENES
scale (0.25);
image (fon4, 0, 0);
image (cap,1270, 0);
}