Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void drawIceCream(float xvalue, float yvalue){
- fill(255);
- ellipse(xvalue, yvalue - 30, 14, 14);
- fill(#715B00);
- ellipse(xvalue - 4, yvalue - 24, 14, 14);
- fill(#FFAAB4);
- ellipse(xvalue + 4, yvalue - 24, 14, 14);
- fill (#AF8E09);
- triangle (xvalue, yvalue, xvalue - 10, yvalue - 20, xvalue + 10, yvalue - 20);
- }
- void drawStickFigure(float xvalue, float yvalue){
- fill (255);
- stroke (0);
- ellipse (xvalue, yvalue - 45, 20, 20);
- line (xvalue, yvalue - 35, xvalue, yvalue - 15);
- line (xvalue - 12, yvalue - 25, xvalue + 12, yvalue - 25);
- line (xvalue, yvalue - 15, xvalue - 5, yvalue);
- line (xvalue, yvalue - 15, xvalue + 5, yvalue);
- }
- void drawBoxy(float x, float y) { // He's 20 by 40; x and y are the middle of his feet.
- // Changes fill color to white.
- stroke(0);
- // Body
- fill(#98673F); // Hair color
- rect(x-10, y-40, 20, 5); // Hair
- fill(#E3D5B9); // Face color
- rect(x-10, y-35, 20, 10); // Face
- fill(#117635); // Shirt color
- rect(x-10, y-25, 20, 10); // Shirt
- fill(#111F76); // Pants color
- rect(x-10, y-15, 20, 10); // Pants
- fill(0); // Shoes color
- rect(x-10, y-5, 20, 5); // Shoes
- // Eyes
- fill(255); // Eye color
- ellipse(x-4, y-31, 2, 2); // Left eye
- ellipse(x+4, y-31, 2, 2); // Right eye
- fill(255); // Resetting fill to default white
- }
- void drawEllipse(float xvalue, float yvalue){
- ellipse (xvalue, yvalue - 15, 20, 30);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement