Janet Lee- Project 04- String Art

sketch

function setup() {
    createCanvas(640,480);

}

function draw() {
    background ("#EDE4E3");
    //lightblue curve
    for (var i = 1; i <640; i+=10){
        stroke ("#A0E0E3");
        strokeWeight (2);
        line (i,70,width-70,i);
      }
      //red curve
    for (var a = 1; a<640; a+=7){
        stroke("#FD7950");
        strokeWeight(1);
        line(a,height-60,50,a);
      }
      //yellow curve
    for (var b = 1; b <640; b+=9) {
        stroke("#FCE6A9");
        strokeWeight(3);
        line(b,height-20,30,b);
    }
    //turquoise curve
    for (var c = 1; c <640; c +=3) {
      stroke("#41909E");
      strokeWeight(1);
      line (c,20,width-10,c);
    }
    //flower spinning
    push();
    translate(width/2,height/2);
    rotate(millis()/1000);
    push();
    fill("#215A6D");
    noStroke();
    rotate (radians(30));
    ellipse (0,0,20,100);
    noStroke();
    rotate (radians(30));
    ellipse (0,0,20,100);
    noStroke();
    rotate (radians(30));
    ellipse (0,0,20,100);
    noStroke();
    rotate (radians(30));
    ellipse (0,0,20,100);
    noStroke();
    rotate (radians(30));
    ellipse (0,0,20,100);
    noStroke();
    rotate (radians(30));
    ellipse (0,0,20,100);
    pop();
    pop();
}

Leave a Reply