Skip to main content

Sketch# 3

 



let img;

let diameter;

function preload(){

  img=loadImage("images/blog.png");

}

function setup() {

  createCanvas(1280,720);

  imageMode(CENTER);

}

function draw() {

  background(255,0,245,1);//purple color

  diameter=map(mouseX,0,width,10,700);

  image(img,width/2,height/2,diameter,diameter);

  line(200,700,200,5);

  line(1060,700,1050,5);

  strokeWeight(1);

  stroke(0);

  if(mouseIsPressed){

    stroke(0);

  }else{

    stroke(255,255,0,1);

}

fill(255,255,1,255);//yellow color

  stroke(5);

ellipse(mouseX, mouseY,30,20);//moving round shape

ellipse(130,130,250,250);//static round shape upper left

fill(255,1,0,255);

ellipse(1150,498,250,255);//color red

}


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