Program to show the graphics effect


#include<graphics.h>
#include<conio.h>
#include<stdlib.h>

void main()
{
    int gd,gm;
    gd=DETECT;

    initgraph(&gd, &gm, "");
    setcolor(3);
    setfillstyle(SOLID_FILL,RED);
    bar(50, 50, 590, 430);
    
    setfillstyle(1, 14);
    bar(100, 100, 540, 380);

    while(!kbhit())
    {
        putpixel(random(439)+101,  random(279)+101,random(16));
        setcolor(random(16));
        circle(320,240,random(100));
    }
    getch();
    closegraph();
}

Comments

Popular posts from this blog

Migrating database from ASP.NET Identity to ASP.NET Core Identity

Customize User's Profile in ASP.NET Identity System