Report as inappropriate.
This shows how to decide which pixels to fill when drawing a line on the screen. The thin black line is the "true" line, and the scenario provides a zoomed-in view of the pixels (white and orange squares) that are filled or left empty during the line-drawing.
Left-click to set the start point of the line, and right-click to set the end point.
A full explanation of the algorithm is here: http://sinepost.wordpress.com/2012/05/24/drawing-in-a-straight-line/
10192 views / 38 in the last 7 days
2 votes | 0 in the last 7 days
Visit the web page for this scenario.
Want to leave a comment? You must first log in.
2012/7/3
2012/7/3
2012/7/3
2012/7/3
2012/7/3
2012/7/4
2012/7/8
2012/7/20
2012/7/20
2012/8/1