Horje
online c compiler for graphics Code Example
online c compiler for graphics
#include<graphics.h>  
#include<conio.h>  
void main()  
{  
    intgd=DETECT, gm, i, x, y;  
    initgraph(&gd, &gm, "C:\\TC\\BGI");  
    x=getmaxx()/3;  
    y=getmaxx()/3;  
    setbkcolor(WHITE);  
    setcolor(BLUE);  
    for(i=1;i<=8;i++)  
          {  
        setfillstyle(i,i);  
        delay(20);  
        circle(x, y, i*20);  
        floodfill(x-2+i*20,y,BLUE);  
    }  
    getch();  
    closegraph();  
online c compiler for graphics
#include <conio.h>

#include <math.h>

#include <stdlib.h>

#include <graphics.h>

int main()

{

int x,y,r,midx, midy,color:

float t:

int gdriver=DETECT, gmode:

initgraph(&gdriver, &gmode, "CENNTUNNBGI");

midx=getmaxx()/2;

midy-getmaxy()/2;

r=10;

color=12;

setcolor (12);

setfillstyle (1,12);

settextstyle(0,0,3);

do

{

outtextxy(midx-220,35, "I LOVE PROGRAMMING"); outtextxy(midx-175, midy+180, "ROHIT TECH STUDY"); 

for(t=0;t<(2*M_PI);t+=0.01)

{

x=(r*16*sin(t)*sin(t)*sin(t))+midx

y=(r*(1-2)*(13*cos(t)-5*cos(2 t)-2*cos(3*t)-cos(4xt)))+(midy-30); pieslice(x,y,0,360,5);

pieslice(x,y,0,360,5);

}

floodfill(midx, midy,color); color=random(15)+1; setcolor (color); setfillstyle(1,color);

while (!kbhit());

getch();

closegraph();

return 0;

}

online c compiler for graphics
#include <conio.h> 
#include <graphics.h> 
#include <stdio.h>
void main() 
{
int gdriver = DETECT, gmode;
initgraph(&gdriver, &gmode, ""); 
line(100, 100, 150, 50); 
line(150, 50, 200, 100); 
line(150, 50, 350, 50); 
line(350, 50, 400, 100);
rectangle(100, 100, 200, 200); 
 rectangle(200, 100, 400, 200); 
rectangle(130, 130, 170, 200); 
 rectangle(250, 120, 350, 180); 
setfillstyle(2, 3); 
floodfill(131, 131, WHITE); 
floodfill(131, 131, WHITE); 
setfillstyle(11, 7);
floodfill(101, 101, WHITE); 
floodfill(150, 52, WHITE); 
floodfill(163, 55, WHITE);
floodfill(251, 121, WHITE);
closegraph(); 
}
online c compiler for graphics
#include<graphics.h>
#include<stdio.h>
#include<conio.h>
void main(){
    int gd=DETECT,gm;
    int x,y;
    clrscr();
    printf("Enter adress of point  x,y    :");
    scanf("%d%d",&x,&y);
    clrscr();
    initgraph(&gd,&gm,"../bgi");
    putpixel(x,y,10);
    getch();
    closegraph();
}
online c compiler for graphics
#include<graphics.h>  
#include<conio.h>  
void main()  
{  
    intgd=DETECT, gm, i, x, y;  
    initgraph(&gd, &gm, "C:\\TC\\BGI");  
    x=getmaxx()/3;  
    y=getmaxx()/3;  
    setbkcolor(WHITE);  
    setcolor(BLUE);  
    for(i=1;i<=8;i++)  
          {  
        setfillstyle(i,i);  
        delay(20);  
        circle(x, y, i*20);  
        floodfill(x-2+i*20,y,BLUE);  
    }  
    getch();  
    closegraph();  
}  
online c compiler for graphics
#include <conio.h> 
#include <graphics.h> 
#include <stdio.h>
void main() 
{
int gdriver = DETECT, gmode;
initgraph(&gdriver, &gmode, ""); 
line(100, 100, 150, 50); 
line(150, 50, 200, 100); 
line(150, 50, 350, 50); 
line(350, 50, 400, 100);
rectangle(100, 100, 200, 200); 
 rectangle(200, 100, 400, 200); 
rectangle(130, 130, 170, 200); 
 rectangle(250, 120, 350, 180); 
setfillstyle(2, 3); 
floodfill(131, 131, WHITE); 
floodfill(131, 131, WHITE); 
setfillstyle(11, 7);
floodfill(101, 101, WHITE); 
floodfill(150, 52, WHITE); 
floodfill(163, 55, WHITE);
floodfill(251, 121, WHITE);
closegraph(); 
}




C

Related
arduino vscode upload choosing sketch Code Example arduino vscode upload choosing sketch Code Example
how to show function arguments in pycharm Code Example how to show function arguments in pycharm Code Example
c program for threaded binary tree Code Example c program for threaded binary tree Code Example
bcd to char c Code Example bcd to char c Code Example
Convert Series to DateTime Code Example Convert Series to DateTime Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8