##
Translation of objects in computer graphics
July 17, 2017

In computer graphics, we have seen how to draw some basic figures like line and circles. In this post we will discuss on basics of… Read More »

July 17, 2017

In computer graphics, we have seen how to draw some basic figures like line and circles. In this post we will discuss on basics of… Read More »

July 14, 2017

It is not easy to display a continuous smooth arc on the computer screen as our computer screen is made of pixels organized in matrix… Read More »

June 26, 2017

We have to rotate an object by a given angle about a given pivot point and print the new co-ordinates. Examples: Input : {(100, 100),… Read More »

June 25, 2017

Given two points P and Q in the coordinate plane, find the equation of the line passing through both the points. This kind of conversion… Read More »

June 20, 2017

OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. Using this, we can make a lot of design as well as… Read More »

June 15, 2017

We need to plot the perimeter points of a circle whose center co-ordinates and radius are given using the Mid-Point Circle Drawing Algorithm. We use… Read More »

Prerequisite – OpenGL OpenGL is a cross-language, cross-platform API for rendering 2D and 3D Vector Graphics. Using this, we can make a lot of design… Read More »

June 1, 2017

Open Graphics Library (OpenGL) is a cross-language (language inependent), cross-platform (platform independent) API for rendering 2D and 3D Vector Graphics(use of polygons to represent image).… Read More »

May 9, 2017

Figures on a computer screen can be drawn using polygons. To fill those figures with color, we need to develop some algorithm.There are two famous… Read More »

Anti-Aliased Line Drawing Below is the image showing line drawn with Bresenham’s line algorithm (left) and Xiaolin Wu’s line algorithm (right) which smooths the line.… Read More »

May 7, 2017

A scaling transformation alters size of an object. In the scaling process, we either compress or expand the dimension of the object. Scaling operation can… Read More »

May 6, 2017

While trying c graphic programming on Ubuntu, I figured out that graphic.h is not a standard C library and it is not supported by gcc… Read More »

May 5, 2017

Given a radius of a circle, draw the circle without using floating point arithmetic.

May 4, 2017

A convex polygon and a convex clipping area are given. The task is to clip polygon edges using the Sutherland–Hodgman Algorithm. Input is in the… Read More »

March 28, 2017

Clipping: In computer graphics our screen act as a 2-D coordinate system. it is not necessary that each and every point can be viewed on… Read More »