Drawing a line on a screen
The computer has to work out which pixels are needed to draw a line. This is done by selecting two points and plotting the pixels between them. The line might go between two pixels and not straight through them. In this situation a decision parameter is needed to know which pixel to choose.

Reference: Bresenhams Line Drawing Algorithm