Using program transformations to derive line-drawing algorithms

Robert F. Sproull

ACM Transactions on Graphics · 1982 · 62 citations · 11 references

DOIFull text

Open access

Concepts

Abstract

A wide variety of line-drawing algorithms can be derived by applying program transformations to a simple, obviously correct algorithm. The transformations increase the speed of the algorithm and eliminate the need for floating-point computations. We show how Bresenham's algorithm can be derived in this way. The transformations are then used to derive several variants of Bresenham's algorithm, designed for use on displays that can generate more than one pixel at a time. The treatment shows a complete, extended example of the practical use of program transformations.

References

11