Computer Graphics Programs

Computer Graphics Programs in C - What you will learn?

You are the one who is interested in learning the fundamentals of the graphical programming languages. This Page contains a list of fundamental graphics program for various shapes. You will learn basics to draw geometrical shapes like circle, ellipse, rectangle, etc. 
We will also learn graphics programming in c to draw curves, objects with various colors, 3d graphics programming, simple animation programs, and algorithms programs.

How to start writing Computer Graphics Code in C: Instructions

When you start writing computer graphics code. The first step is to initialize the graphics drivers using the initgraph() method given in graphics.h Library.

For all the Graphics Program Do this before you run the program.
1. Find initgraph(&gd, &gm, ""); in Program.
2. Write the path of BGI Folder, which there inside TC.
    Like,  initgraph(&gd, &gm, "C://TC//BGI");
              or  initgraph(&gd, &gm, "C://TurboC++//Disk//TurboC3//BGI");
3. Copy "EGAVGA.BGI" File from BGI Folder and Paste it to BIN Folder.

Computer Graphics Functions
Arc Function
Bar Function
Circle Function
Cleardevice Function
Closegraph Function
Outtext Function
kbhit Function
Line Graphic Programs
Program to Draw a Line using DDA Algorithm
Program to Draw a Line using Bresenhams Algorithm
Program to draw a line using Cartesian Slope-Intercept Equation
Circle Graphic Programs
Program to Draw a Circle using Mid Point Algorithm
Program to Draw a Circle using Bresenham's Algorithm
Program to Draw Circle (Simple Program)
Program to draw a Circle having Changing its Color and Design
Program to draw a Circle using Direct Algorithm
Ellipse Graphic Programs
Program to draw an Ellipse using Mid - Point Ellipse Algorithm
Program to draw an Ellipse with Different Colours
Program to draw Polar Ellipse
Program to draw an Ellipse Showing Two Axis
Miscellaneous Graphic Programs
Program to Make a Fish
Program to move Fish
Program to make Flag
Program to make Hut
Program to make Kite
Program of Road Animation
Program of Scaling Transformation
Program to move person having balloons
C program to draw Man Walking In the Rain With An Umbrella
Other Graphics Programs
Program to display Screen Sever
Smily Face Animation Graphics Program
OpenGL Programs
OpenGL program to draw a line
OpenGL program to draw a line using dda algorithm
OpenGL program to draw Sun Rise and Fall

You might also search for related keywords :
simple graphics program in c, c language graphics programs, c graphics, computer graphics code in c for projects, c graphics program examples, computer graphics program, computer graphics programs, c programming graphics, simple animation program in c, computer graphics using c, graphics programming in c with output, computer graphic programs in c language, computer graphics programs examples, c language graphics programs

Post a Comment


  1. Awesome work. I cannot thank you more for this great blog where I can find cool programs. I am weak in designing but as you have shared some programs to draw fish etc, I can go through them and learn some functions.

    Thanks a bunch!
    Silvester Norman
    Change MAC Address

  2. Thanks for sharing computer graphics programs.

  3. This information is very good thanks for sharing it with is very helpful for us.

  4. Could you please tell me how draw a book library ?

  5. could you please tell me how to create diagram of smiley face with help of circles,arcs and lines

    1. Hi Amar,

      Follow the below link to draw smily face using circle(), ellipse(), fillellipse(),etc many...

      Revert if you have any difficulty in understanding it.


    2. thanks it was so usefull

  6. could you please tell me how to create diagram of human body using circle,lines,rectangle

  7. Hi Amar,

    This are simple functions. You just need to use your imagination and arrange functions (circle,line,ractangle,etc) to draw human body.

    Though i can help you draw face, else you have to do on your own, that way you will lear remaining...

    Let me know your call...

  8. can you give a program to draw a outline of india and a flag

  9. can u give a program for
    rising sun


      Below is the requested program, i would suggest you to read all the function used in and try to understand it.

      "Program to draw Sun rise and fall in OpenGL : Computer Graphics"

      Thanks & Regards

  10. can you please upload a code for generalised bresenhams line drawing algorithm with a user created function

  11. would you tell me how to draw curve in computer graphics plz reply fast