## Bresenham’s Line Generation Algorithm

Given coordinate of two points A(x1, y1) and B(x2, y2). The task to find all the intermediate points required for drawing line AB on the… Read More »

## DDA Line generation Algorithm in Computer Graphics

In any 2-Dimensional plane if we connect two points (x0, y0) and (x1, y1), we get a line segment. But in the case of computer… Read More »

## Line Clipping | Set 1 (Cohen–Sutherland Algorithm)

Given a set of lines and a rectangular area of interest, the task is to remove lines which are outside the area of interest and… Read More »

## Creating a Rainbow using Graphics Programming in C

In Turbo C graphics we use graphics.h functions to draw different shapes(like circle, rectangle etc), display text(any message) in different format(different fonts and colors). By… Read More »

## Klee’s Algorithm (Length Of Union Of Segments of a line)

Given starting and ending positions of segments on a line, the task is to take the union of all given segments and find length covered… Read More »

## Implementation of a Falling Matrix

Since the dawn of computers, Hollywood has greatly demonstrated a Hacker or a Programmer as someone sitting on a computer typing random keys on computer… Read More »

## Code to generate the map of India (with explanation)

Given a obfuscated code that generates the map of India, explain its working. The following code when executed generates the map of India – #include… Read More »

## Basic Graphic Programming in C++

Introduction So far we have been using C language for simple console output only.  Most of us are unaware that using C++, low level graphics… Read More »

## Flood fill Algorithm – how to implement fill() in paint?

In MS-Paint, when we take the brush to a pixel and click, the color of the region of that pixel is replaced with a new… Read More »