17
Views
0
CrossRef citations to date
0
Altmetric
Original Articles

The Stair Algorithm

&
Pages 17-25 | Published online: 06 Apr 2012
 

Abstract

This algorithm draws straight lines on discrete devices as if they were staircases. It determines the fractional average length of each step, and it fills the pixels along every scanline intersected by the line to be drawn. This algorithm supports fractional line ends, and it uses internal 32-bit fixed-point arithmetic; 16 bits for the integer and 16 bits for the decimal part.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.