Skip to content
/ CGL Public
forked from yashagarwal1999/CGL

ALL SPPU CGL LAB(COMPUTER GRAPHICS CODES)

Notifications You must be signed in to change notification settings

Riyaa2610/CGL

 
 

Repository files navigation

CGL

ALL SPPU CGL LAB(COMPUTER GRAPHICS CODES)

TABLE OF CONTENTS

Write C++ program to draw the following pattern using Line drawing algorithms. Use Bresenham’s line drawing algorithms for square and DDA line drawing algorithm for diamond.

Write C++ program to draw inscribed and Circumscribed circles in the triangle as shown in an example below. Use Bresenham’s Circle drawing algorithm for outer circle and DDA circle for inner circle. Use any Line drawing algorithm for drawing triangle

Write C++/Java program to draw 2-D object and perform following basic transformations, a) Scaling b) Translation c) Rotation Use operator overloading.

Write C++ program to draw the polygons by using the mouse. Choose colors by clicking on the designed color pane. Use window port to draw. Use DDA algorithm for line drawing.

Write C++/Java program to draw a 4X4 chessboard rotated 45˚ with the horizontal axis. Use Bresenham algorithm to draw all the lines. Use seed fill algorithm to fill black squares of the rotated chessboard. Group B

Write C++/Java program for line drawing using DDA or Bresenham’s algorithm with patterns such as solid, dotted, dashed, dash dot and thick.

Write C++/Java program to draw a convex polygon and fill it with desired color using Seed fill algorithm. Use mouse interfacing to draw polygon.

Write C++/Java program to implement Cohen-Sutherland line clipping algorithm for given window. Draw line using mouse interfacing to draw polygon

Write C++/Java program to implement reflection of2-D object about X axis, Y axis and about X=Y axis. Also rotate object about arbitrary point given by user.

Write C++/Java program to generate Hilbert curve using concept of fractals. Group C

Write C++/Java program to draw 3-D cube and perform following transformations on it using OpenGL. A) Scaling b) Translation c) Rotation about one axis.

Write C++/Java program to simulate any one of or similar scene- Clock with pendulum National Flag hoisting Vehicle/boat locomotion Water drop falling into the water and generated waves after impact Kaleidoscope views generation (at least 3 colorful patterns) simulate any data structure like stack, queue, and trees using graphics

About

ALL SPPU CGL LAB(COMPUTER GRAPHICS CODES)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Makefile 57.7%
  • C++ 40.7%
  • QMake 1.6%