void setup (){
size (500,500);
background (255);
}
void draw (){
flor ();
ojo1 ();
ojo2 ();
}
void flor (){
fill(252,67,4);
beginShape (POLYGON);
vertex (100,110);
vertex (110,110);
vertex (110,90);
vertex (120,90);
vertex (120,80);
vertex (130,80);
vertex (130,90);
vertex (140,90);
vertex (140,100);
vertex (150,100);
vertex (150,90);
vertex (160,90);
vertex (160,80);
vertex (170,80);
vertex (170,70);
vertex (180,70);
vertex (180,60);
vertex (200,60);
vertex (200,70);
vertex (210,70);
vertex (210,80);
vertex (220,80);
vertex (220,90);
vertex (230,90);
vertex (230,100);
vertex (240,100);
vertex (240,90);
vertex (250,90);
vertex (250,80);
vertex (260,80);
vertex (260,90);
vertex (270,90);
vertex (270,110);
vertex (280,110);
vertex (280,150);
vertex (270,150);
vertex (270,160);
vertex (260,160);
vertex (260,170);
vertex (250,170);
vertex (250,180);
vertex (230,180);
vertex (230,190);
vertex (150,190);
vertex (150,180);
vertex (130,180);
vertex (130,170);
vertex (120,170);
vertex (120,160);
vertex (110,160);
vertex (110,150);
vertex (100,150);
endShape(CLOSE);
}
void ojo1 (){
fill(0);
beginShape (POLYGON);
vertex (160,110);
vertex (180,110);
vertex (180,120);
vertex (180,120);
vertex (190,120);
vertex (190,130);
vertex (180,130);
vertex (180,120);
vertex (160,120);
vertex (160,130);
vertex (150,130);
vertex (150,120);
vertex (160,120);
vertex (160,110);
endShape(CLOSE);
}
void ojo2 (){
fill(0);
beginShape (POLYGON);
vertex (210,110);
vertex (230,110);
vertex (230,120);
vertex (230,120);
vertex (240,120);
vertex (240,130);
vertex (230,130);
vertex (230,120);
vertex (210,120);
vertex (210,130);
vertex (200,130);
vertex (200,120);
vertex (210,120);
vertex (210,110);
endShape(CLOSE);
}
No hay comentarios:
Publicar un comentario