User:Jvanloon

From Graphic Design Arnhem
Jump to navigation Jump to search

About me

  • 23
  • redheaded
  • cool dude

Skate gif.gif

Notes

Homework

Assignment 1

my homework

 1 float inc = 0.0;
 2 
 3 void setup() {
 4   noStroke();
 5   size(600, 600, P3D);
 6 }
 7 
 8 void draw() {
 9   background(0);
10   lights();
11   inc+=0.1;
12   pushMatrix();
13   translate(width/2, height/2);
14   rotateX(inc);
15   rotateY(inc);  
16   box(150);
17   popMatrix();
18 }
 1 float inc = 0;
 2  
 3 void setup() {
 4   noStroke();
 5    size(600, 600, P3D);
 6  }
 7  
 8  void draw() {
 9    background(0);
10    lights();
11    inc+=0.1;
12    pushMatrix();
13    translate(width/2, height/2);
14    rotateX(width);
15    rotateY(inc);  
16    box(150);
17    popMatrix();
18  }
 1 float inc = 0;
 2  
 3 void setup() {
 4   noStroke();
 5    size(800, 800, P3D);
 6  }
 7  
 8  void draw() {
 9    background(0);
10    lights();
11    inc+=0.1;
12    pushMatrix();
13    translate(mouseX, mouseY);
14    rotateX(mouseX*0.01);
15    rotateY(mouseY*0.01);  
16    box(150);
17    popMatrix();
18  }