Copyright | (C) 2019 Francesco Ariis |
---|---|
License | BSD3 (see LICENSE file) |
Maintainer | Francesco Ariis <fa-ml@ariis.it> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Rasterisation of line segments on discrete graphical media (line drawing algorithm).
Example:
λ> bresenham (0, 0) (4, 2) [(0,0), (1,0), (2,1), (3,1), (4,2)]
Documentation
bresenham :: Integral a => (a, a) -> (a, a) -> [(a, a)] Source #
Rasterising a line using Bresenham's algorithm.