Advertisement
MrsMcLead

Processing 3D

Apr 23rd, 2015
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. void setup()
  2. {
  3.  size(900,900,P3D);
  4. }
  5.  
  6. void draw()
  7. {
  8.  background(100);
  9.  pushMatrix();
  10.  translate(400,400,0);
  11.  rotateX(mouseY/100);
  12.  rotateY(mouseX/100);
  13.  fill(#ffff00);
  14.  box(100);
  15.  popMatrix();
  16.  pushMatrix();
  17.  translate(400,400,0);
  18.  fill(#3d0734);
  19.  sphere(75);
  20.  popMatrix();
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement