Hey friends, this post is all about drawing a line using DDA Line Drawing Algorithm.
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:
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.
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:
Line using DDA Line Drawing Algorithm |
Comments
Post a Comment