Monday, January 25, 2016

Simple Static Scene

//parameters of canvas
size(800, 600);
//set background color
background(255, 255, 255);
point (300, 300);
point (400, 300);
//set the circles
ellipse(300, 300, 20, 20);
ellipse(400, 300, 20, 20);
ellipse(500, 300, 20, 20);
ellipse(600, 300, 20, 20);
//fill in color for following shape
fill (255, 255, 0);
//draw pacman shape with slice in middle
arc(200, 300, 40, 40, radians(30), radians(320));
//thicker lines for future lines drawn
strokeWeight(10);
line(0, 330, 800, 330);
strokeWeight(10);
line(0, 270, 800, 270);


//put in text
textAlign(CENTER);
fill(0);
textSize(25);
text("Waka Waka Waka",width/2,360);

No comments:

Post a Comment