Monthly Archives: February 2013

Code Play character (assignment 01)

//x, y position of the creature float cx, cy; void setup(){ size(700,700); background(100); smooth(); cx = width/2; cy = height/2; } void draw(){ noStroke(); fill(25); ellipse(cx, cy, 400, 400); //eyes fill(225); ellipse(cx-150, cy-150, 125, 125); ellipse(cx+150, cy-150, 125, 125); fill(25);

Code Play character (assignment 01)

//x, y position of the creature float cx, cy; void setup(){ size(700,700); background(100); smooth(); cx = width/2; cy = height/2; } void draw(){ noStroke(); fill(25); ellipse(cx, cy, 400, 400); //eyes fill(225); ellipse(cx-150, cy-150, 125, 125); ellipse(cx+150, cy-150, 125, 125); fill(25);