Android Symbol



//Android Symbol

#include<stdio.h>
#include<conio.h>
#include<graphics.h>
void main()
{
    int gd=DETECT,gm,x,y;
    initgraph(&gd,&gm,"C:/TC/BGI");
    x=getmaxx()/2;
    y=getmaxy()/2;

    //FACE
    setcolor(10);
    arc(300,200,0,180,50);//face
    line(250,200,350,200);//face
    setfillstyle(1,10);
    floodfill(301,199,10);//face

    //EYES

    setcolor(15);
    circle(280,175,3);//eye 1
    circle(320,175,3);//eye 2
    setfillstyle(1,15);
    floodfill(280,175,15);//eye 1
    floodfill(320,175,15);//eye 2

    //BODY

    setcolor(10);
    line(250,205,250,297);//body left
    line(250,205,350,205);//body top
    line(350,205,350,297);//body right
    line(260,308,340,308);//body bottom left
    arc(340,298,270,0,10);//body bottom right
    arc(260,298,180,270,10);//body bottom left
    setfillstyle(1,10);
    floodfill(251,208,10);//body

    //LEGS

    setcolor(10);
    line(270,308,270,328);//1 leg left
    line(290,308,290,328);//1 leg right
    arc(280,329,180,0,10);//1 leg
    line(310,308,310,328);//2 leg left
    line(330,308,330,328);//2 leg right
    arc(320,329,180,0,10);//2 leg
    setfillstyle(1,10);
    floodfill(272,310,10);//1 leg
    floodfill(312,310,10);//2 leg

    //HANDS

    setcolor(10);
    line(223,216,223,271);//1 hand left
    line(245,216,245,271);//1 hand right
    arc(234,215,0,180,11);//1 hand up
    arc(234,272,180,0,11);//1 hand down
    line(355,216,355,271);//2 hand left
    line(377,216,377,271);//2 hand right
    arc(366,215,0,180,11);//2 hand up
    arc(366,272,180,0,11);//2 hand down
    setfillstyle(1,10);
    floodfill(225,218,10);//1 hand
    floodfill(359,218,10);//2 hand

    //ANTENNA

    setcolor(10);
    line(275,134,280,154);//left 1 antenna
    line(277,132,282,153);//left 2 antenna
    arc(276,133,20,180,1);//left antenna
    line(325,134,320,154);//right 1 antenna
    line(327,135,322,155);//right 2 antenna
    arc(326,134,0,160,1);//right antenna
    setfillstyle(1,10);
    floodfill(276,134,10);//left antenna
    floodfill(326,136,10);//right antenna
    getch();
    closegraph();
}

OUTPUT



Comments

Popular Posts