xxxxxxxxxx
46
/*
This project comprised a series of 3 simple installations during Digital Citizenship week at a k-12 school.
During the week, every day a different statement or question was added to the script, and the school community could vote to share their habits, experiences, and concerns about their relationship with Technology.
The installations were set up using a makey makey for each script. And they were attached to arcade buttons.
*/
let shapeWidth = 40;
let avSand;
let avNavy;
let avGrass;
let avClay;
let avenuesColor;
function preload() {
myFont = loadFont('assets/Halyard Display.ttf');
}
function setup() {
createCanvas(windowWidth, windowHeight);
noStroke();
background(255);
textFont(myFont);
avSand = color('rgb(245,205,100)');
avNavy = color('rgb(39,56,121)');
avGrass = color('rgb(13,154,72)');
avClay = color('rgb(195,65,30)');
avenuesColor = [avSand,avNavy,avClay,avGrass];
fill(0);
textSize(40);
text("Click if you also have way too many tabs open.",30,80,width-30)
}
function draw() {
// keep draw() here to continue looping while waiting for clicks
}
function mousePressed() {
fill(random(avenuesColor));
ellipse(random(0, width), random(190, height), shapeWidth);
}