Digital differential analyzer (graphics algorithm): Difference between revisions

Content deleted Content added
Commented the sample code to make the algorithm clearer
Line 35:
for(k=0; k<steps; k++) {
// the points are incremented an equal amount for every step until the whole line has been drawn
x += xIncrement;
y += yIncrement;