DDA algorithm CLI visualization using C
Open CLI and type the following
gcc -o dda dda.c
dda <PIXEL_COUNT> <X1_VAL> <Y1_VAL> <X2_VAL> <Y2_VAL>
Remember to Replace the following
<PIXEL_COUNT>
with Coordinate system Maximum Axis Points
<X1_VAL>
with X point value of the 1st point of the line
<Y1_VAL>
with Y point value of the 1st point of the line
<X2_VAL>
with X point value of the 2nd point of the line
<Y2_VAL>
with Y point value of the 2nd point of the line\
dda 50 2 4 10 41
dda 50 0 0 0 23
dda 100 34 98 88 2
dda 100 2 10 37 45
\