xxxxxxxxxx
33
clicked = false;
checking = true
function setup() {
createCanvas(windowWidth, windowHeight);
}
function draw() {
background(250);
textFont("Georgia");
textSize(width/35);
textAlign(CENTER);
if(checking)
{
// text("hello!",width/2,height*.1)
text("this is a collaborative flipbook",width/2,height*.2)
text("the previous drawing will display in grey ",width/2,height*.3);
text("(you may need to wait for a second)",width/2,height*.4);
text("draw with the mouse",width/2,height*.5);
text("when you're done with a frame press the right arrow key to submit",width/2,height*.6);
text("press space to finish, and play the whole animation ",width/2,height*.7);
text("(to see your contribution you may need to refresh)",width/2,height*.8);
text("if you don't see anything, try zooming out on your browser (and refreshing)",width/2,height*.9);
}
}
function keyPressed(){
if(key == "h"){
checking = !checking;
}
}