Skip to main content

DDA Line Drawing Algorithm

DDA Line Drawing Algorithm
Hey friends, this post is all about drawing a line using DDA Line Drawing Algorithm.


Digital Differential Analyzer (DDA) algorithm is the simple line generation algorithm.
DDA is hardware or software used for interpolation of variables over an interval between start and end point. DDAs are used for rasterization of lines, triangles and polygons.


Below is a program written in C to draw a simple line using DDA Line Drawing Algorithm.

Code:

If you can't see the code, then Enable JavaScript in you browser

Output:


Output of DDA Line Drawing Algorithm
Line using DDA Line Drawing Algorithm


Comments

Popular posts from this blog

Bresenham's Line Algorithm (THICK LINE)

Bresenham's Line Algorithm (THICK LINE) Bresenham's Line Algorithm (THICK LINE) The Bresenham algorithm is an incremental scan conversion algorithm.

Bresenham's Line Algorithm (DOTTED LINE)

Bresenham's Line Algorithm (DOTTED LINE) Bresenham's Line Algorithm (DOTTED LINE) Bresenham's Line Algorithm (DOTTED LINE) The Bresenham algorithm is an incremental scan conversion algorithm.

Midpoint Ellipse Algorithm

Midpoint Ellipse Algorithm                  Midpoint ellipse algorithm is a method for drawing ellipses in computer graphics. This method is modified from Bresenham’s algorithm so it is sometimes known as Bresenham's circle algorithm.



Bestseller's in Electronics only at Amazon Best Selling Products on Amazon