C Graphics Program to Wish Happy Holi With Colors on Command Line

You are currently viewing C Graphics Program to Wish Happy Holi With Colors on Command Line

C Graphics Program to Wish Happy Holi With Colors on Command Line

#include<stdio.h>
 
#include<conio.h>
 
#include<graphics.h>
 
#include<dos.h>
 
void main()
 
{
 
int gd=DETECT , gm;
 
int x,y,i;
 
initgraph(&gd , &gm , “C:\\ TURBOC3 \\ BGI”);
 
x=getmaxx()/2;
 
y=getmaxy()/2;
 
for(i=30; i<=250; i++)
 
{
 
x=300;
 
y=250;
 
delay(50);
 
setcolor(i/10);
 
arc(x, y, 0,360,i+70);



 
settextstyle(0,0,3);
 
outtextstyle(240,190, ” HAPPY “);
 
outtextstyle(258,220, ” HOLI “);
 
outtextstyle(280,245, ” BY “);
 
settextstyle(1,0,1);
 
outtextstyle(220 , 265, ” SAMEER HUSSAIN “);
 
}
 
getch();
 
}

Ranjith Kumar

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Reply