Hi, I made a line-drawing algorithm similar to Bresenham's (all integer calculations), but this allows you to test individual pixels.
I made a video tutorial, because while it's not complicated, it's not trivial either.
Please login to see this media element.
(yes, my name "Myp" is from "Mate Y Pizza")
I attached a .mfa, it requires the "surface" extension.
Edit: I called it "hypothetical pixels algorithm". I also replaced the original video with a new version that fixes several production errors, there were too many to ignore.
Edit 2: I should have included this in the video; it's the algorithm in the form of a single, multi-purpose loop. It's quite similar to Bresenham's in this form, I suppose because both drag errors:
Please login to see this attachment.