diff --git a/CM2030 Graphics Programming/Topic 11/11.1.2 Intro 3D graphics/sketch.js b/CM2030 Graphics Programming/Topic 11/11.1.2 Intro 3D graphics/sketch.js index 475b674..502f3a1 100644 --- a/CM2030 Graphics Programming/Topic 11/11.1.2 Intro 3D graphics/sketch.js +++ b/CM2030 Graphics Programming/Topic 11/11.1.2 Intro 3D graphics/sketch.js @@ -1,7 +1,15 @@ function setup() { - + createCanvas(500, 500, WEBGL); + angleMode(DEGREES); } function draw() { - + background(125); + rectMode(CENTER); + //rotateX(frameCount); + rotateY(frameCount); + translate(200, 0, 0); + //rotateZ(frameCount); + rect(0, 0, 100, 100); + box(75); } \ No newline at end of file