Xiaolin Wu's fast antialiased line drawing algorithm in Haskell
Clone or download
Latest commit 9590cd8 Dec 24, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
script ghcid script Dec 23, 2018
src Fix order of imports Dec 24, 2018
.gitignore Implementation of algorithm Dec 23, 2018
LICENSE Initial commit Dec 23, 2018
README.md Link to Rosetta Code Dec 23, 2018
Setup.hs Implementation of algorithm Dec 23, 2018
stack.yaml Initial commit Dec 23, 2018
xiaolin-wu-algorithm.cabal Implementation of algorithm Dec 23, 2018

README.md

Xiaolin Wu's fast antialiased line drawing algorithm in Haskell

Travis branch Hackage GitHub license

This is my implementation of Xiaolin Wu's fast antialiased line drawing algorithm in Haskell. It is loosely translated from the Wikipedia article and is the basis of the program posted at Rosetta Code.

Set up dev environment

This project can be built using the Stack build tool.

stack build intero
stack build --copy-compiler-tool ghcid

ghcid

stack exec ghcid -- -T':main'

Build

stack build

Test

stack test

Run

stack exec xiaolin-wu-algorithm

Upload package

stack upload .

Upload documentation

I use my upload-haddocks tool which requires a functioning installation of Python and pip:

pip install --user upload-haddocks
upload-haddocks

Licence

MIT License

Copyright © 2018, Richard Cook.