In Computer Graphics Terms Used in Library.
Programs For Computer Graphics
Computer Graphics Calculator
Computer Graphics Presentation
#include <graphics.h>
This is Define Graphics
int gDriver=DETECT,gMode;
gDriver is used to DETECT Drivers list in Path and gMode is Mode used For display its is automatically used
initgraph(&gDriver,&gMode,"C:\\TC\\BGI");
initgraph is to initialize these Graphics
C:\\TC\\BGI
This is path where Computer Graphics is Stores
cleardevice();
cleardevice is Used to clean screen similar as clrscr().
setbkcolor(15); Or setbkcolor(WHITE);
Name | Value |
---|---|
BLACK | 0 |
BLUE | 1 |
GREEN | 2 |
CYAN | 3 |
RED | 4 |
MAGENTA | 5 |
BROWN | 6 |
LIGHTGRAY | 7 |
DARKGRAY | 8 |
LIGHTBLUE | 9 |
LIGHTGREEN | 10 |
LIGHTCYAN | 11 |
LIGHTRED | 12 |
LIGHTMAGENTA | 13 |
YELLOW | 14 |
WHITE | 15 |
These are list Colors used for display.
putpixel(x1,y1,RED);
x1 is x axis Coordinate
y1 is y axis Coordinate
RED is COLOR USED
This is used for Display one pixel Dot in certain x,y Coordinate .
List of Computer Graphics Program
List of Computer Graphics Calculator
Computer Graphics Presentation
(Visited 2,819 times, 1 visits today)
Written by: