float x;
float y;
void setup()
{
size(800, 800);
x=width/2;
y=height/2-100;
}
void draw()
{
background(0, 155, 120);
fill(0);
rect(x-150, y+300, 40, 400);
rect(x+150, y+300, 40, 400);
fill(0);
strokeWeight(20);
stroke(255);
ellipse(x, y+150, 500, 465);
noStroke();
ellipse(x+250, y, 190, 300);
ellipse(x-250, y, 190, 300);
fill(255);
rect(x, y+220, 40, 90);
rect(x-50, y+220, 40, 90);
rect(x-100, y+220, 40, 90);
rect(x-150, y+220, 40, 90);
rect(x+50, y+220, 40, 90);
rect(x+100, y+220, 40, 90);
rect(x+150, y+220, 40, 90);
rect(x+200, y+220, 40, 60);
rect(x-200, y+220, 40, 60);
rect(x, y+350, 40, 60);
rect(x-50, y+340, 40, 60);
rect(x-100, y+330, 40, 60);
rect(x-150, y+310, 40, 50);
rect(x+50, y+340, 40, 60);
rect(x+100, y+330, 40, 60);
rect(x+150, y+310, 40, 50);
rectMode(CENTER);
fill(240, 125, 255);
rect(x, y, 500, 400);
fill(255, 0, 0);
ellipse(x, y+50, 180, 180);
fill(255);
ellipse(x+30, y+10, 50, 50);
noStroke();
fill(0);
ellipse(x-100, y-150, random(150, 180),
random(150, 180));
ellipse(x+100, y-150, random(150, 180),
random(150, 180));
fill(0, random(100, 255), random(100, 255));
ellipse(x+100, y-150, random(80),
random(80));
ellipse(x-100, y-150, random(70, 80),
random(70, 80));
}

No hay comentarios:
Publicar un comentario