Introduction to Computer Graphics Introduction to Computer Graphics The computer is an information processing machine. It is a tool for storing, manipulating and correcting data. There are many ways to communicate the processed information to the user. The computer graphics is one of the most effective and common way to communicate the processes information to the users. It displays ... Read More »

## Category Archives: Computer Graphics

Feed Subscription## Geometry and Light Generations

Geometry and Light Generations Basic Geometry The smallest element which can be shown on a graph is a point. A point may be illustrated as following figure. As we can see, A point A has been positioned in XY-plane and (x1, y1) is the position of a point A. This means that point A is at distance ... Read More »

## Polygon

Polygon Polygon is a word derived from two Greek words poly and Gon. Poly means multi and Gon means angle. Thus, the meaning of polygon is multiangled figure. Polygon is a closed figure with many vertices and edges and at each vertex exactly two edges meet and no edge crosses other. The line segments which make up a polygon ... Read More »

## Transformations

Transformations In most of the application of graphics, the objects or images are required to be manipulated or altered. To add reality or feel like reality, many times these objects are needed to be moved, rotated or even in some applications, enlarged or reduced. This alteration or manipulation processes of objects is called images or objects transformation. Basic Transformation There are ... Read More »

## DDA and Bresenham’s Line Drawing Algorithm

DDA and Bresenham’s Line Drawing Algorithm DDA (Digital Differential Analyzer) Line Drawing Algorithm: It is a mechanical device for integrating differential equations by simultaneously incrementing x and y in small steps proportional to DX and DY. The line end points are (xa,ya) and (xb,yb). Step 1: Compute DX and DY DX=xb-xa DY=yb-ya Step 2: Calculate Steps ... Read More »

## MidPoint Circle Algorithm

MidPoint Circle Algorithm MidPoint Circle Algorithm: A circle is defined as the set of points that are all at a given distance r from a center position (Xc,Yc). Along the circle section from x=0 to x=y in the first quadrant, the slope of the curve varies from 0 to –1. therefore , we can take unit steps in the ... Read More »