In the previous post I discussed few important functions mostly used to initialize and destroy the graphics mode in DOS environment. Today I will discuss functions to draw diferent shapes and lines. So here we go by starting the line function which is most important function in creating any graphics.
Function line
This function draws a line in the graphics mode.
void far line(int startx, int starty, int endx, int endy)
Function arc
This function draws an arc from start to the end point. It uses the radius and the angle inputted in the function parametsr. Function prototye is
void far arc (int x, int y, int start, int end, int radius)
Function bar
The bar() functions draws a rectangular bar on the screen. It takes four parameters of type int which are infact the points on the graphics screen, and fills the bar with the defined fill-pattern. Function prototye is More...