Skip to main content

p5js image




function setup(){
  createCanvas(800,600);
  strokeWeight(5); //white lines and stroke around shapes 
}
function draw(){
  background(0,165,10,1); //green background
  stroke(1);
  line(100,600,100,50); //black vertical line
  if(mouseIsPressed){
    stroke(0);
  }else{
    stroke(255,255,255); // color white in upper horizontal and diagonal lines
}
fill(255,0,0); // color red of the shapes: round, rectangular
  line(800,50,50,50);
  line(1200,800,50,50);
  rect(300,200,160,85);
  rect(400,250,160,85);
  rect(550,5,160,85);
  rect(300,5,160,85)
  rect(50,10,160,85);
  rect(600,390,100,100);
  stroke(1); // black lines diagonal described below
  line(1,100,100,100); //black short horizontal line
  line(100,100,1400,880); //black diagonal line
 stroke(255); // color of stroke around moving shapes are the same as the static ones
ellipse(mouseX, mouseY,50,50);
ellipse(100,400,50,50);
ellipse(100,300,50,50);
ellipse(100,200,50,50);
ellipse(100,500,50,50);
}


Comments

Popular posts from this blog

Infographics: Oscar Claude Monet (1840-1926)

To create the Infographic, I used the application Piktochart starting from a blank canvas. I chose the background's color and opacity. Also the font size, style and the option to bold it. Comparing to the previous Infographic, I used more images and less text.   

Personal Website

homepages.utoledo.edu/mditore Critique Do not link name and last name with an artwork (p5.js) Change the location of Contact, also change the name to call it Blog Make sure that the Generative art is linked to the page or use a photograph to linked it to the p5.js site Make sure that all formatting is unified Correct grammar mistake in Animation on page 1  Photographs sizing on portfolio: Print

Drawing...

  https://fac.coloradocollege.edu/connect/dmb-collective-campfire-draw-alongs/ https://www.youtube.com/watch?v=rqfK3IihKeU&t=45s https://www.youtube.com/watch?v=glenbZKRgeU https://www.youtube.com/watch?v=Q7_cwEarGHY&t=3s