Introduction - If you have any usage issues, please Google them yourself
Straight-line generation algorithm of numerical differentiation known as DDA DDA line drawing algorithm, is a straight-line algorithm to generate the most simple one. The principle is quite simple, that is the most intuitive offset in accordance with the degree of slope, the decision is based on the direction of x for the stepper or y direction for the stepper. And then stepping in the corresponding direction, step an additional variable for each pixel, and the other relevant variables for the coordinates Yk_1 = Yk+ M (with x as an example for the stepper variables, m for the slope)