xxxxxxxxxx
27
function setup() {
createCanvas(600, 600);
}
console.log(13/2);
function draw() {
background(0,0,0);
// customizing our text
textFont("Anonymous Pro", "Courier", "monospace"); // you can use a category of font to use system defaults
textAlign(LEFT, CENTER);
textStyle(NORMAL);
textSize(24);
// displaying text
if (second() % 2 === 0) {
fill(60, 60, 60);
} else {
fill(140, 255, 167);
}
if (hour() > 12) {
text("Almost time to go home...", 80, minute() * 10);
} else {
text("Just getting started!!!", 80, minute() * 10);
}
}