when you learn to format your code? please repair above post!
PFont letterGothic;
//letterGothic = loadFont("NotoNastaliqUrdu-48.vlw");
//textFont(letterGothic,32);
String[] nouns = {"monkey", "space", "cowboy", "King", "nut"};
String[]adjectives = {"crazy", "spinning", "bubbly", "stinky", "smelly", "unreal", "slow", "purple"};
int n, m;
void shuffle() {
n = int(random(5));
m = int(random(8));
}
void setup() {
size(500, 500, P2D);
background(50, 100, 150);
fill(0, 0, 200);
textSize(32);
//textAlign(CENTER);
}
void draw() {
background(200, 200, 0);
text(nouns[n], 45, 60);
text(adjectives[m], 245, 60);
}
void mousePressed() {
shuffle();
}
now that part with random text / words from a list is easy,
still, if you want the user to type ( edit ) some text
i recommend you start with that little part first
( no array, no show… )