From 6b51977c6cea15ce9aef7ca6a915374a8a0ed9af Mon Sep 17 00:00:00 2001 From: Lev Date: Sun, 18 Jul 2021 19:05:19 -0500 Subject: [PATCH] Update complted 3D system intro --- .../Topic 11/11.1.2 Intro 3D graphics/sketch.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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