Jess Medenbach – String Drawing

assignment-05

//Jessica Medenbach
//jmmedenb@andrew.cmu.edu
//Section C (1:30PM)


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

function draw() {
  background(240,0,0);
  for (var i = 20; i < 480; i += 5){

  //curve1
  stroke(255);
  strokeWeight(1);
  line( i + 100, 400, i / 20,QUARTER_PI*i);
  //curve2
  stroke(240,240,0);
  line( i - 150, 150, i ,QUARTER_PI*i);
  //curve3
  stroke(240,0,220);
  strokeWeight(3);
  //curve4
  line( i+150, i, i ,QUARTER_PI);
  stroke(100,200,220);
  //curve5
  line(height-i+200, i, i ,QUARTER_PI*i);
  stroke(50,50,150);
  //horn
  fill(255,240,0);
  ellipse(i+100, height/2, i/20, QUARTER_PI*i);

  }
}






  












   




    




    

Experimenting with different curves and colors, using both lines and ellipse with quarter_pi.

Leave a Reply