Cefer

Solo disponible en BuenasTareas
  • Páginas : 3 (539 palabras )
  • Descarga(s) : 0
  • Publicado : 1 de junio de 2011
Leer documento completo
Vista previa del texto
#include <winbgim.h>
#include <stdlib.h>

int i,a,c,d;
main()
{

initwindow(800,600);
for (i=1;i<120;i++)//FONDO RAYADO
{
a=a+5;
setcolor(WHITE);rectangle(0+a,0+a,800-a,600+a);
system("Sleep(1)");
}

for (i=1;i<55;i++)//CARA
{
setcolor(LIGHTMAGENTA);
ellipse(600,300,0,359,55-i,70-i);
setcolor(YELLOW);
ellipse(600,285,0,185,50-i,65-i);//CABELLOsystem("Sleep(1)");
}

for (i=1;i<20;i++)//NIÑO ROSTRO
{
setcolor(BLACK);
ellipse(575,300,0,359,10-i,15-i);
ellipse(625,300,0,359,10-i,15-i);
ellipse(600,345,0,359,28-i,15-i);
}

for(i=1;i<13;i++)//GIÑO
{
setcolor(LIGHTMAGENTA);
ellipse(575,300,0,359,35-i,15-i);
ellipse(625,300,0,359,35-i,15-i);
ellipse(600,360,0,359,15-i,13-i);
system("Sleep(1)");
system("Sleep(1)");system("Sleep(1)");
}

ellipse(600,440,0,183,60-i,78-i);//ROPA
for (i=1;i<60;i++)//NIÑO CUERPO
{
setcolor(LIGHTMAGENTA);
ellipse(600,440,0,359,53-i,70-i);
setcolor(BLUE);ellipse(600,440,0,200,53-i,70-i);
system("Sleep(1)");
}

for (i=1;i<19;i++)//NIÑO EXTREMI
{
setcolor(LIGHTMAGENTA);
ellipse(580,515,0,359,10-i,30-i);//RODILLAS
ellipse(619,515,0,359,10-i,30-i);

setcolor(RED);ellipse(565,540,0,359,25-i,9-i);//PIEZ
ellipse(629,540,0,359,25-i,9-i);
system("Sleep(1)");
}

for (i=1;i<51;i++)//SEMAFORO ARRIBA
{
setcolor(BLACK);
rectangle(150+i,25+i,250-i,350+i);system("Sleep(1)");
}

for (i=1;i<21;i++)//SEMAFORO ABAJO
{
setcolor(BLACK);
rectangle(180+i,380+i,220-i,550+i);
system("Sleep(1)");
}

for (i=1;i<40;i++)//SUELO
{
setcolor(GREEN);rectangle(0+i,550+i,800-i,600+i);
system("Sleep(1)");
}

for (i=1;i<45;i++)//PASTO
{

setcolor(GREEN);
rectangle(0+c,510+i,1+c,600);
c=c+40;
rectangle(1+d,600,0+d,510+i);
c=c+40;system("Sleep(1)");
system("Sleep(1)");
}

for (i=1;i<45;i++)//SEMAFORO VERDE
{
setcolor(GREEN);
setfillstyle(SOLID_FILL,BLACK);
circle(200,280,45-i);
system("Sleep(1)");...
tracking img