Hi,

This is the best place where I can post this, I think

Say, I have a subroutine called drawline, which accepts as parameters:
x1, y1, x2, y2

We have a screen, and on point (x1,y1) we start drawing our line to (x2,y2). Each pixel on the line should be determined by an algorithm, and than colored, say gree. Does anybody know an algorithm?