Ejemplo n.º 1
0
   void hiosbox(int x,int y,int h,int k){


   rectangle(x,y,h+14,k);

  int mounth=h/3;
  int mountw=k/3;
   int d=5;
   point p1={x,y+mounth};
   point p2={x+mountw/2,y+d};
   point p3={x+mountw,y+mounth};
   point p4={x+mountw/2+mountw,y+d};
   point p5={x+mountw*2,y+mounth};
   point p6={x+mountw*2+mountw/2,y+d};
   point p7={x+mountw*3,y+mounth};

   triangle(p1,p2,p3);
   triangle(p3,p4,p5);
   triangle(p5,p6,p7);

   int hutx=x+h/2;
   int huty=y+k/2;

   hut(hutx,huty,50,50);

   }
Ejemplo n.º 2
0
int main()
{
	int gdriver = DETECT, gmode = VGAMAX;
	initgraph(&gdriver, &gmode, "NONE");
	field();
	sun();
	hut();
	delay(1000);
	return 0;
}