xxxxxxxxxx
31
function setup() {
createCanvas(400, 400);
}
function draw() {
background(0);
table(200,200);
ball(200,200);
// for(let i = 0; i<3; i++){
// rect(20*i, 200, 20 ,20);
// }
// for(let i = 0; i<3;i++){
// ellipse(200, 50*i, 20, 20);
// }
}
function table(){
for(let i = 0; i<3; i++){
rect(20*i, 200, 20 ,20);
}
}
function ball(){
for(let i = 0; i<3;i++){
ellipse(200, 50*i, 20, 20);
}
}