let timer1 = 0
let timer2 = 0
function setup() {
createCanvas(windowWidth, windowHeight);
background(random(255),random(255),random(255))
stroke(255,50)
strokeWeight(2)
frameRate(30)
}
function draw() {
// fill(0,25) // try uncommenting this (ctrl+/)
// rect(0,0,width,height) // try uncommenting this (ctrl+/)
let x1 = second()/60*width
let x2 = minute()/60*width
let y1 = timer1/100*height
let y2 = timer2/1000*height
//quad(mouseX, mouseY, 86, 20, 69, 63, 30, 76);
line(x2,height,mouseX,mouseY)
line(32,4,mouseX,mouseY)
line(width,y2,mouseX,mouseY)
timer1 = timer1 + 1
timer2 = timer2 + 1
if (timer1 > 100) {
timer1 = 0
}
if (timer2 > 1000) {
timer2 = 0
background(random(255),random(255),random(255))
stroke(255,50)
strokeWeight(random(1,10))
}
}
function mousePressed(){
save('drawing.jpg')
}