-
-
Save jkwok91/4b7df5c3f5b20e2bc287 to your computer and use it in GitHub Desktop.
lol why
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
let's generate random fucking cubes in space | |
*/ | |
void setup() { | |
size(400,400,P3D); | |
frameRate(12); | |
background(0); | |
} | |
void draw() { | |
background(0); | |
float randomr = (float)Math.random()*10; // lol types who cares | |
int bbox = width; | |
for (int i = 0; i < randomr; i++) { // lol types | |
pushMatrix(); | |
translate((float)Math.random()*bbox,(float)Math.random()*bbox, (float)(Math.random()*bbox)-(bbox/2)); // LOL FLOAT EVERYTHINGGGGGGG | |
rotateY((float)Math.random()*PI); | |
rotateX((float)Math.random()*PI); | |
box(50); | |
popMatrix(); | |
} | |
} | |
/* lol jessica why */ | |
/* lol idfk */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment