IFD:All Hail The Pixels/designs: Difference between revisions

From Medien Wiki
No edit summary
Line 129: Line 129:
popMatrix();
popMatrix();
}
}
==Fernando Millan==
[[File:Millan_HW_2.jpg|600px|thumb|]]
void setup () {
  size(2000, 1000);
}
void draw () {
  background(20, 20, 20);
  float Mouse = 5+(mouseX/100);
  float Distance = mouseX;
  float MY = mouseY*.90;
  if (mousePressed) {
    noStroke();
  } else {
    stroke(0);
  }
  pushMatrix();
  translate(666, height*0.5);
  for (int i=30; i<MY; i+=5) {
    for (int F=0; F<Mouse; F+=1) {
      if ( i % 2 == 0) {
        fill(100, 50);
      } else {
        fill(255, 0, 0, 50);
      }
      rectMode(CENTER);
      rotate(radians(F));
      rect(i, i, 30, 30);
    }
  }
  popMatrix();
  //println (mouseY);
  //println (mouseX);
}


==Group E==
==Group E==


[[Category:== ASSIGNMENT 2 ==]]
[[Category:== ASSIGNMENT 2 ==]]

Revision as of 11:23, 14 November 2014

Group A

Group B

Group C

Group D

Maria Estel

Maria.jpg

void setup () { size(displayWidth, displayHeight); }

void draw () {

 if (mousePressed) {
   background(255,120,0);
   
   pushMatrix();
   translate(1600,700);
   for (int i=10; i<width; i+=1){
     rectMode(CENTER);
     rotate(mouseY);
     rect(i,i,20,20);
     fill(20,20,20);
     stroke(0);
   }
 }
   else {

background(20,20,20);

pushMatrix(); translate(250,250); for (int i=10; i<width; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(255,120,0); stroke(0); }

   }

popMatrix(); }

Carina Weiß

Carina.jpg

void setup () { size(displayWidth, displayHeight); }

void draw () { background(0);

pushMatrix(); translate(1500,500); for (int i=10; i<width; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(0); stroke(255,215,0); } popMatrix();

pushMatrix(); translate(450,250); for (int i=10; i<150; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(0); stroke(255); } popMatrix();

pushMatrix(); translate(250,650); for (int i=10; i<150; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(0); stroke(255); } popMatrix();

pushMatrix(); translate(1000,400); for (int i=10; i<100; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(0); stroke(255); } popMatrix();

pushMatrix(); translate(800,600); for (int i=10; i<100; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(0); stroke(255); } popMatrix();

pushMatrix(); translate(1100,700); for (int i=10; i<100; i+=1){

rectMode(CENTER); rotate(mouseY); rect(i,i,20,20); fill(0); stroke(255); } popMatrix(); }

Fernando Millan

Millan HW 2.jpg
void setup () {
 size(2000, 1000);
}
void draw () {
 background(20, 20, 20);
 float Mouse = 5+(mouseX/100);
 float Distance = mouseX;
 float MY = mouseY*.90;
 if (mousePressed) {
   noStroke();
 } else {
   stroke(0);
 }
 pushMatrix();
 translate(666, height*0.5);
 for (int i=30; i<MY; i+=5) {
   for (int F=0; F<Mouse; F+=1) {
     if ( i % 2 == 0) {
       fill(100, 50);
     } else {
       fill(255, 0, 0, 50);
     }
     rectMode(CENTER);
     rotate(radians(F));
     rect(i, i, 30, 30);
   }
 }
 popMatrix();
 //println (mouseY);
 //println (mouseX);
}


Group E