Program to make screen saver in that display different size circles filled with different colors and at random places.

Sharing is caring!

Program to make screen saver in that display different size circles filled with different colors and at random places.

#include<stdio.h>

#include<conio.h>

#include<graphics.h>

#include<stdlib.h>

void main()
{
intgd=DETECT,gm,i=0,x,xx,y,yy,r;


//Initializes the graphics system


initgraph(&gd,&gm,”c:\tc\bgi”);

x=getmaxx();

y=getmaxy();

while(!kbhit())

{

i++;

// setfillstyle(random(i),random(30));

    circle(xx=random(x),yy=random(y),random(30)); 
 
    setfillstyle(random(i),random(30));  

    floodfill(xx,yy,getmaxcolor());  

    delay(200);  
}  
getch();  

}
https://youtu.be/A3m_NO1MW2Q
Flipkart Coupons and Offers Mar 2021 Flat 70% Today Promo Codes
TATA CLiQ online store

Related Post

Leave a Reply

Your email address will not be published.