Friday, 7 October 2011

C Graphics Programs

-------------------------------------------------------------
IMPORTANT.!.!.!
   Verify the line below in your program before running it; whether the drive location is "C" or "D", according to your system.
            ----->    initgraph(&gd,&gm,"C:\\TC\\BGI");
-------------------------------------------------------------
            PROGRAMS.

1. BOUNCING BALL
    click link below for code.
    bouncing ball
2. FLOODFILL(WITHOUT USING DDA)
    click link below for code.
    flood fill
3. MIDPOINT CIRCLE
    click link below for code.
    midpointcircle
4. CAR MOVING
    click link below for code.
    carmoving
5. MAN WALKING IN RAIN
    click link below for code.
    man walking in rain
6. BRESENHAMS CIRCLE
    click link below for code.
    bresenhams circle
7. LINE SLOPE
    click link below for code.
    line slope
8. CO ORDINATE CIRCLE
    click link below for code.
    coordinate circle
9. DDA LINE
    click link below for code.
    dda line
10. BRESENHAMS LINE
      click link below for code.
      bresenhams line
11. TRAFFIC CONTROLLING VEHICLE
       click link below for code.
       traffic contolling vehicle
12. TRANSFORMATION (MENU DRIVEN)
      click link below for code.
      transformation
13. TRAFFIC LIGHT SIMULATION
      click link below for code.
      traffic light simulation
14. MOVING WHEEL
      click link below for code.
      moving wheel
15. (A) WATER TAP 1 (WITHOUT USING DDA).
             click link below for code.
             water tap
      (B) WATERTAP 1 (USING DDA).
             click link below for code.
             watertap1_2
16. TRAFFIC CONTROL SIMULATION
      click link below for code.
      traffic1
17. WATER TAP (OVERFLOWING)
      click link below for code.
      watertap2 
18. LINE CLIPPING.
      click link below for code.
      lineclipping
19. POLYGON CLIPPING.
      click link below for code.
      polygon clipping
20. BOUNDARY FILL(USING DDA).
      click link below for code.
      boundaryfill
21. FLOODFILL(USING DDA).
      click link below for code.
      floodfilldda

Download Turbo C++ here........ 

  1. For Windows XP.
      For Windows XP (click here).

  2. For Windows 7.
      Part 1.(click here), mirror2
      Part 2.(click here)