diff --git a/VirtualPet.pde b/VirtualPet.pde index 08ca48b8..eea02785 100644 --- a/VirtualPet.pde +++ b/VirtualPet.pde @@ -1,8 +1,41 @@ - -void setup(){ - //some of your code here -} -void draw(){ - //more of your code here +void setup() +{ + size(400,400); + background(100,150,255); } +void draw() +{ + noStroke(); + fill(255,255,255); + + //beak + triangle(125,100,125,150,50,125); + + fill(255,255,0); + + //body + ellipse(200,200,200,150); + + //tail + triangle(200,150,300,200,300,125); + + //head + ellipse(125,125,100,100); + + fill(0,0,0); + + //eye (black) + ellipse(125,125,40,40); + + fill(255,255,255); + + //eye (white) + ellipse(125+10/sqrt(2),125-10/sqrt(2),20,20); + + //label + textAlign(CENTER); + textSize(24); + fill(0,0,0); + text("DUCK",200,200); +} diff --git a/index.html b/index.html index 237da25c..1908f654 100644 --- a/index.html +++ b/index.html @@ -1,21 +1,21 @@ - Title + Virtual Pet
-

Headline

+

My Virtual Pet Duck