xxxxxxxxxx
94
let pressed = false;
let adj = ["Snarky",
"Obnoxious",
"Ecstatic",
"Avoidant",
"Playful",
"Exuberant",
"Confused",
"Dramatic",
"Boisterous",
"Emphatic",
"Meditative", "Reserved","Somber",
"Joy",
"Serenity",
"Ecstasy",
"Anticipation",
"Hysteria",
"Energized",
"Hopeful",
"Disturbed",
"Sorrow",
"Despair",
"Longing",
"Solitude",
"Freedom",
"Lightness of being",
"Expansive",
"Numb",
"Anger",
"Sadness",
"Anxiety",
"Fatigue ",
"Yearning",
"Regret" ,
"Fury",
"Disgust"
];
let tech = ["Robotic", "Computational", "Virtual", "Mechanical", "Algorithmic", "Autonomous", "Light", "Invisible", "Visual","Audio","Projection Mapped", "Artificial Intelligence","Phone", "Glitch","Arduino"];
let performance = ["Speech", "Poem", "Ballet", "Concert","Auditory","Audio", "Drama", "Video", "Instrument", "Intervention","TV Show","Installation","Empty Lot", "Live Streaming", "Stage", "Outdoor"];
let a = " ";
let b = " ";
let c = " ";
let y;
let counter = 0;
let tsz = 26;
let pairs = [];
let ct = 1;
let track = [];
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(255, 255, 0);
if(mouseIsPressed){
pressed = true;
a = adj[round(random(adj.length - 1))];
b = tech[round(random(tech.length - 1))];
c = performance[round(random(performance.length - 1))];
console.log(a + " " + b + " " + c);
}
if (pressed) {
textSize(tsz);
text(a + " " + b + " " + c, 50, 100);
} else {
textSize(tsz);
for (var i = 0; i < adj.length; i++) {
text(adj[i], 20, (i + 1) * (tsz + 5));
}
for (var i = 0; i < tech.length; i++) {
text(tech[i], width / 3, (i + 1) * (tsz + 5));
}
for (var i = 0; i < performance.length; i++) {
text(performance[i], (width / 3) * 2, (i + 1) * (tsz + 5));
}
}
}
function mousePressed() {
pressed = true;
a = adj[round(random(adj.length - 1))];
b = tech[round(random(tech.length - 1))];
c = performance[round(random(performance.length - 1))];
console.log(a + " " + b + " " + c);
}