Skip to content

About

Computer Graphics Lab programs in C using graphics.h (Line, Circle, Triangle, Rectangle, Rainbow, Fish, Animation, Translation, Scaling, Hut, etc.)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Computer Graphics Lab

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.

📚 Programs Included

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

🛠 Requirements

  • Turbo C++
  • graphics.h library
  • BGI Graphics Library (or WinBGIm)
  • C Compiler

📁 Repository Structure

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

🎯 Learning Objectives

  • Introduction to Computer Graphics
  • Basic Graphics Programming in C
  • Drawing Primitive Shapes
  • 2D Transformations
  • Simple Graphics Animation
  • Understanding graphics.h Functions

🚀 Getting Started

  1. Install Turbo C++ or WinBGIm.
  2. Clone this repository:
git clone https://github.com/Divyansh11x/Computer-Graphics-Lab.git
  1. Open any .c program.
  2. Compile and run using a graphics-enabled C compiler.

👨‍💻 Author

Divyansh Sharma

GitHub: https://github.com/Divyansh11x


⭐ If you find this repository helpful, consider giving it a star.

About

Computer Graphics Lab programs in C using graphics.h (Line, Circle, Triangle, Rectangle, Rainbow, Fish, Animation, Translation, Scaling, Hut, etc.)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages