Either use VSCode/Live-Server Extension or use BrowerSync
Given an image space
Color value at pixel
Given points
where,
We resolve the line into pixel counts into the larger of the distance between the two endpoints resolved into each of the axes; and compute the value of the ordinates along the other axis.
So,
If
Otherwise,
And finally,
Precomputing,
We can rewrite the sequence as the following recurrence,
Let theoretical line between
If
The condition
Hence, computing
Similarly, for