Skip to content

Instantly share code, notes, and snippets.

@MarcScott
Created March 11, 2020 12:19
Show Gist options
  • Save MarcScott/42b44c1b98b2a56ae64806d57a1ea206 to your computer and use it in GitHub Desktop.
Save MarcScott/42b44c1b98b2a56ae64806d57a1ea206 to your computer and use it in GitHub Desktop.
angle=0
function setup() {
createCanvas(600, 600, WEBGL);
}
function draw() {
background(0);
push();
rotateX(angle)
normalMaterial()
stroke('yellow')
strokeWeight(3)
translate(0,-200);
box(50);
translate(0,400);
box(50);
translate(200,-200);
box(50);
translate(-400,0);
box(50);
angle+=0.003
pop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment