01: Drawing a line
After the introduction of putting some points on the canvas, we continue with the next primitive: Lines.
Lines are a basic building block of displaying information, so they might be drawn a lot. That is why we want to implement this operation very efficiently. With this course using JavaScript and trying to use easy to read code, we will only scratch the surface, but still get to the basic idea underlying many efficient line drawing algorithms.
You can find the full rasterization code here: Rasterizer 01