xxxxxxxxxx
let tw;
// Flashing lights should be triggered in such a way so that people can click away from them. There are many photosensitive people out there, including people with photosensitive seisures or people with me/cfs who crash from the sensory processing needed for flashing lights.
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
tw = true;
}
function draw() {
if(tw) {
background(0);
textAlign(CENTER, CENTER);
textSize(45);
fill(225);
text("Trigger Warning: Flashing Lights", width/2, height/2);
textSize(25);
text("Click to dismiss.", width/2, height/2 + 60);
}
}
function mouseClicked() {
background(0);
if(tw) {
tw = false;
}
}