Kiren Tanna's Programming Page-Graphics



Graphics projects

Paint Brush
This is a graphics package made in C. It has functions for drawing freehand,lines,ellipses,rectangles as well as filling,erasing,saving and restoring images.

Snake
This is a game made by Kamal Pariyani where the objective of the game is to eat as much food on the screen. The length of the snake increases due to this and the game is over when the snake crosses itself.


Graphics programs in C

Following are a few programs in C/C++ implementing many common graphics algorithms usually part of many graphics courses
Note: All programs are written in Turbo C++. So if the graphics driver is not autodetected, enter its location in

initgraph(&gd,&gm,"");

instead of the empty string.

DDA Line algorithm

Bresenham's Line algorithm

Thick line method

Bresenham's Circle algorithm

2D-Transformations

Animation of ball rolling down a slope

Bezier Curve

Scanline fill algorithm

Flood fill algorithm

Cohen-Sutherland line clipping algorithm

Liang-Barlsky line clipping algorithm

Sutherland-Hodgeman polygon clipping algorithm

PieChart

Archery Game This is an archery game written in C by Arun Prasanth


If you want to submit ANY of your C programs,please send them to
[email protected]

Return to main page 1