Refine Your Program Part 1



Unit 1: Progress

 25%

 

Simple Program Example Backup

 

Copy and Paste the code below into your processing






function setup() {     //drawing size

  createCanvas(400, 400);

}



//-------------------------------------

 

function draw() {      //this is where the drawing goes

  

  background(220);    //background color

  

  fill("white");

  ellipse(230,200,50,50);      //left eyeball

  

  fill("black");              //fill color black

  ellipse(230,200,25,25);      //left pupil

  

  fill("white");

  ellipse(300,200,50,50);      //right eyeball

  

  fill("black");              //fill color black

  ellipse(300,200,25,25);      //right pupil

 

  

}




//-------------------------------------

 

Previous Next