Files
UoL/CM2030 Graphics Programming/Topic 1/1.3.1a/sketch.js
2021-04-17 16:55:41 -05:00

15 lines
214 B
JavaScript

function setup() {
createCanvas(720, 400);
}
function draw()
{
background(220);
fill(0);
translate(60, 60);
rect(10, 10, 100, 100);
ellipse(0, 0, 20, 20);
ellipse(-60, -60, 20, 20);
}