Second p5 Sketch






function setup() {

  createCanvas(1280, 720);

}

function draw() {

  background(255,48,84);

   stroke(255);

  line(250,0,90,height);

  if(mouseIsPressed ==true) {

    stroke(0,255,0);

    line(255,0,100,height);

    line(1,0,600,height);

    line(600,0,1,height);

    line(0,400,width,100);

  }

  line(0,70,width,50);

  line(255,0,100,height);

  stroke(0,0,255);

  line(100,0,50,height);

  line(0,90,width,100);

  line(0,300,width,100);

  line(50,0,350,height);

 

  line(0,0,width,height);

  line(width, 0, 0, height);

  fill(255,226,76);

  ellipse(width/2, height/2, 60,60);

}



Comments

Popular posts from this blog

Interdisciplinary Interaction Design PDF