introduction to computation
1.10-2.9.2022
wintersession 2022

let xpos=10;
let ypos=20;
let xdistance=10;
let ydistance=20
function setup() {
createCanvas(590, 480);
}
function draw() {
background(240);
for (let lineX = 0; lineX less than or equal to 590; lineX += 10){
line(lineX, 0, lineX, height);
}
for (let lineY = 0; lineY less than or equal to 480; lineY += 20) {
line(0, lineY, width, lineY);
}
let hr=hour();
let mn=minute();
let sn=second();
noFill();
stroke(15);
ellipse (mn*10,hr*20,sn*2);
console.log (`it is ${hr}:${mn}:${sn} o'clock`);
}