Skip to content

Instantly share code, notes, and snippets.

@milligramme
Created November 10, 2017 23:25
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 milligramme/224246386dd4c95cc81dd4976caab439 to your computer and use it in GitHub Desktop.
Save milligramme/224246386dd4c95cc81dd4976caab439 to your computer and use it in GitHub Desktop.
void setup() {
size(screen.width, screen.height,P3D);
smooth();
frameRate(60);
}
void draw() {
background(2,5,2);
translate(150, 240, 100*sin(radians(frameCount%360)));
//println(mouseY);
strokeWeight(5);
rotateY(radians(frameCount%360));
rotateZ(random(PI/160));
stroke(255);
noFill();
box(150);
if (frameCount%160 > 20){
sphereDetail(10);
}
else {
sphereDetail(14);
}
sphere(50);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment