Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- size(900,900,P3D);
- }
- void draw()
- {
- background(100);
- pushMatrix();
- translate(400,400,0);
- rotateX(mouseY/100);
- rotateY(mouseX/100);
- fill(#ffff00);
- box(100);
- popMatrix();
- pushMatrix();
- translate(400,400,0);
- fill(#3d0734);
- sphere(75);
- popMatrix();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement