This repository contains a collection of Computer Graphics programs implemented in C . The programs demonstrate various graphical functions using the Graphics.h library in C.
- Display Text Styles – Print "Computer Graphics" using 5 different font styles.
- Line Styles – Draw lines with various styles.
- Basic Shapes – Draw fundamental shapes like lines, rectangles, triangles, squares, circles, ellipses, arcs, and polygons.
- Shapes Using
linerel()– Implement basic shapes using thelinerel()function. - Filled Rectangles – Draw 3 rectangles with different fill styles using
setfillstyle()andfloodfill(). - Colorful Hut – Create a hut with different colors.
- Monument Drawing – Draw the Eiffel Tower or any other building.
- Smiley Face – Implement a smiley face using graphics functions.
- Bar Chart – Display a bar chart using graphical elements.
- Pie Chart – Draw a pie chart with different segments.
- Sine Wave – Draw a sine wave .
- Concentric Circle – Made a "Concentric Circle" with the help of different colors.
- Programming Language: C
- Graphics Library:
graphics.h - Compiler: Turbo C++ / Dev-C++ (configured for BGI graphics)
To run these programs, ensure you have:
- A C compiler that supports
graphics.h(e.g., Turbo C++, Dev-C++, or CodeBlocks with WinBGIm). - The BGI graphics library properly set up in your compiler.
- Clone the repository:
git clone https://github.com/jadwinder/Computer_Graphics.git cd Computer_Graphics
-
WAP to print "Computer Graphics" using 5 font styles. [Hint: use settextstyle() and outtextxy() functions]

-
WAP to draw basic shapes [Hint: line, rectangle, triangle, square, circle, ellipse, arc and polygon]

-
WAP to draw basic shapes using linerel() function [Hint: rectangle, triangle , square and polygon]

-
WAP to draw 3 rectangles with different fill styles. [Hint: use setfillstyle() and floodfill() functions.








