Removed: Rule 3, Rule 4.
It’s just the equation of the line isn’t it, y = m*x + b? What have you tried so far? Do you need integers specifically or something? There is a line drawing algorithm such as Bresenham’s line algorithm and similar.


Yep, 2d linear interpolation would probably be the way to go here.
C# devs
null reference exceptions

source