HUT MAKING IN GRAPHICS.H

 #include <graphics.h>


int main()

{

int gd = DETECT, gm;

initgraph(&gd, &gm,(char*) "");

    rectangle(150,180,250,300);

    rectangle(250,180,420,300);

    rectangle(180,250,220,300);

    //front roof

    line(200,100,150,180);

    line(200,100,250,180);

    //side roof

    line(200,100,380,100);

    line(380,100,420,180);

    //side window

    rectangle(305,220,365,260);

    line(305,240,365,240);

    line(335,220,335,260);

    //for windilator

    circle(200,140,10);

    //chemney

    rectangle(340,70,360,100);

    rectangle(335,65,365,70);

    //smoke

    circle(345,55,7);

    circle(356,55,5);

    circle(349,44,4);

    

    //fill color in hut

    setfillstyle(HATCH_FILL,BROWN);

    floodfill(152, 182, WHITE);

    floodfill(252, 182, WHITE);

    floodfill(341,71,WHITE);

    

    setfillstyle(SLASH_FILL,BLUE);

    floodfill(182, 252, WHITE);

    

    setfillstyle(HATCH_FILL,GREEN);

    floodfill(201, 105, WHITE);

    floodfill(211, 105, WHITE);

    

    getch();


closegraph();

}









Comments

Popular posts from this blog

viral question paper for Chemistry (BSEB 12th)

bihar board 12th answer key 2022 solution download all subjects questions papers with solutions. bseb answer key 2022 12th arts, science & commerce

Modi Surname Case में राहुल गांधी की सजा रहेगी कायम, सूरत कोर्ट ने खारिज की अर्जी