Implement the Bresenham algorithm to create a single line
Reference image. The reference uses the build-in line drawing functionality and is smoothed. Your line will look a bit more jagged.