Xindi Lyu-Project 05-Wall paper-Section A

sketch

 /*Xindi Lyu
 Section A
 xindil@andrew.cmu.edu
 project_05*/
 function setup() {
     createCanvas(600, 600);
     background(240);
}

 function draw() {
  background(255,243,69);
  for(var b=-600; b<600;b+=30){
    for(var c=-600;c<600;c+=15){
      var d=b+c;
      fill(0);
      ellipse(d,c,2,2);//polka dots background
    }
  }

  //ponrose triangles
  for(var a=-600; a<700; a+=200){
    for(var y=-600; y<height; y+=120){
      
 
  fill(251,51,139);
  noStroke();
  
  var x=a+y;
  quad(36+x,34+y,58+x,72+y,58+x,162+y,36+x,152+y);//pink 1
  quad(58+x,72+y,36+x,34+y,116+x,82+y,98+x,92+y);//pink 2
  

  fill(53,177,149);
  quad(58+x,72+y,78+x,82+y,78+x,130+y,58+x,162+y);//green 1
  quad(58+x,162+y,78+x,130+y,158+x,82+y,158+x,106+y);//green 2
   
   fill(173,221,255);
  quad(36+x,34+y,58+x,22+y,158+x,82+y,116+x,82+y);//purple 1
  quad(158+x,82+y,116+x,82+y,78+x,104+y,78+x,130+y);//purple 2


  //the profile lines for the triangles
  stroke(0);
  strokeWeight(1.2);
  line(58+x,22+y,36+x,34+y);
  line(36+x,34+y,36+x,152+y);
  line(36+x,152+y,56+x,162+y);
  line(158+x,106+y,56+x,162+y);
  line(158+x,82+y,158+x,106+y);
  line(58+x,22+y,158+x,82+y);
  line(58+x,162+y,58+x,72+y);
  line(58+x,72+y,98+x,92+y);
  line(98+x,92+y,78+x,104+y);
  line(78+x,104+y,78+x,82+y);
  line(78+x,130+y,158+x,82+y);
  line(78+x,104+y,78+x,130+y);
  line(116+x,82+y,78+x,104+y);
  line(116+x,82+y,36+x,34+y);

  
}
}



    
    }

For this project I was inspired by the extreme color contrast of pop art as well as the intriguing idea of “loops” within the penrose triangle.

Pop art inspiration

Leave a Reply