Add Initial commit
This commit is contained in:
15
CM2030 Graphics Programming/Topic 1/1.3.1a/sketch.js
Normal file
15
CM2030 Graphics Programming/Topic 1/1.3.1a/sketch.js
Normal file
@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user