Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created January 31, 2015 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeroeth/e7750a7f40fc07b8517b to your computer and use it in GitHub Desktop.
Save zeroeth/e7750a7f40fc07b8517b to your computer and use it in GitHub Desktop.
threedimensional
PShape starcubes;
float delta = 0.0;
void setup() {
size(640, 360, P3D);
starcubes = loadShape("scificubes.obj");
}
void draw() {
background(102);
lights();
delta += 0.01;
translate(width/2,height/2);
rotateY(delta);
scale(50);
shape(starcubes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment