PROGRAM FOR MAKING ANDROID TOY IN C LANGUAGE
Powered by : Original Production Ltd.
This post is a good example of Graphics in C Language. In today's post we are going to learn how you can create an Android Toy in C Language. Try this in your Computer. The Code is free to copy. We are always here to teach you. If you want any other C Language Graphic Tutorial please comment below.
//Starting
Program from Below....
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
main()
{
int
gd=DETECT,gm,x=280,y=25,font=0;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(GREEN);
setbkcolor(BLACK);
settextstyle(font,HORIZ_DIR,1);
outtextxy(x,y,"ANDROID
TOY");
y=y+25;
circle(320,240,150);
outtextxy(295,260,"ANDROID");
outtextxy(307,270,"TOY");
outtextxy(530,400,"created
by");
outtextxy(560,410,"-:yogendra");
arc(320,240,0,180,50);
line(270,240,370,240);
circle(303,220,5);
circle(333,220,5);
line(270,250,370,250);
line(270,330,370,330);
line(270,250,270,330);
line(370,250,370,330);
line(290,330,290,370);
line(300,330,300,370);
line(340,330,340,370);
line(350,330,350,370);
arc(295,370,180,360,5);
arc(345,370,180,360,5);
line(265,255,265,300);
line(255,255,255,300);
arc(260,255,0,180,5);
arc(260,300,180,360,5);
line(375,255,375,300);
line(385,255,385,300);
arc(380,255,0,180,5);
arc(380,300,180,360,5);
line(280,160,310,190);
line(360,160,330,190);
while(!kbhit())
{
putpixel(rand()%640,rand()%480,rand()%16);
setcolor(rand()%16);
outtextxy(rand()%640,rand()%480,"yogendra");
circle(rand()%640,rand()%480,5);
delay(1000);
}
getch();
closegraph();
return(0);
}
\\ Program Ends
OUTPUT OF THE ABOVE PROGRAM
Tutorial
Ends......
GOOD BYE..
HAVE NICE DAY..
KEEP VISITING..
*****YOGENDRA MAHAJAN*****