Files
UoL/CM2030 Graphics Programming/Topic 11/11.1.2 Intro 3D graphics/sketch.js
2021-07-18 19:05:19 -05:00

15 lines
267 B
JavaScript

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);
}