xxxxxxxxxx
32
var words = ["Minute", "Cavort","Conundrum","Edict","Accost","Indefatigable"]
var def = ["extremely small", "jump or dance around excitedly", "a confusing and difficult problem or question", "an official order or proclamation issued by a person in authority", "approach and address (someone) boldly or aggressively", "(of a person or their efforts) persisting tirelessly"]
var index = 0
function setup() {
createCanvas(450, 450);
frameRate(2)
}
function draw() {
background(255);
fill("black")
textSize(35)
text(words[index], 8, 200)
fill(135, 135, 135)
textSize(15)
text(def[index], 24, 225)
}
function mousePressed(){
index += 1
if (index == 6){
index = 0
}
loop()
}