A collection of Computer Graphics Lab programs written in C using the classic graphics.h library. This repository contains basic graphics drawing and transformation programs commonly performed in BCA Computer Graphics laboratory sessions.
| No. | Program |
|---|---|
| 01 | Draw Line |
| 02 | Draw Circle |
| 03 | Draw Triangle |
| 04 | Draw Square |
| 05 | Draw Rectangle |
| 06 | Draw Oval |
| 07 | Draw Rainbow |
| 08 | Draw Fish |
| 09 | Kite Animation |
| 10 | Triangle Translation |
| 11 | Circle Translation |
| 12 | Triangle Scaling |
| 13 | Circle Scaling |
| 14 | Draw Hut |
| 15 | Simple Fish |
- Turbo C++
- graphics.h library
- BGI Graphics Library (or WinBGIm)
- C Compiler
Computer-Graphics-Lab/
│
├── README.md
├── LICENSE
├── 01_Draw_Line.c
├── 02_Draw_Circle.c
├── 03_Draw_Triangle.c
├── 04_Draw_Square.c
├── 05_Draw_Rectangle.c
├── 06_Draw_Oval.c
├── 07_Draw_Rainbow.c
├── 08_Draw_Fish.c
├── 09_Kite_Animation.c
├── 10_Triangle_Translation.c
├── 11_Circle_Translation.c
├── 12_Triangle_Scaling.c
├── 13_Circle_Scaling.c
├── 14_Draw_Hut.c
└── 15_Simple_Fish.c
- Introduction to Computer Graphics
- Basic Graphics Programming in C
- Drawing Primitive Shapes
- 2D Transformations
- Simple Graphics Animation
- Understanding graphics.h Functions
- Install Turbo C++ or WinBGIm.
- Clone this repository:
git clone https://github.com/Divyansh11x/Computer-Graphics-Lab.git- Open any
.cprogram. - Compile and run using a graphics-enabled C compiler.
Divyansh Sharma
GitHub: https://github.com/Divyansh11x
⭐ If you find this repository helpful, consider giving it a star.