Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup () {
- size(600, 800);
- }
- void draw() {
- background(0, 0, 153);
- //first petal
- fill(255, 255, 255);
- pushMatrix();
- translate(360-90-30, 300-95-95-0);
- for (int i=0; i <9; i++) {
- translate(130, 0);
- ellipse(0, 10, 100, 200);
- rotate (TWO_PI/9);
- }
- popMatrix();
- //face
- fill(255, 219, 77);
- ellipse(300, 300, 300, 300);
- noStroke();
- //eyes
- fill(38, 38, 38);
- ellipse(255, 265, 30, 55);
- ellipse(345, 265, 30, 55);
- //mouth
- arc(300, 340, 65, 90, 0, 90);
- }
- //draw green stem
- stroke(0, 128, 0);
- line(100, 100, 100, 300);
- //leafs
- ellipse(105, 200, 10, 10);
- ellipse(95, 225, 10, 10);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement