Xiaolin Wu’s fast antialiased line drawing algorithm in Haskell

2018-12-23

While working on juicy-draw, I thought it would be nice to look at drawing nicely antialiased lines. I thought I’d have a go at implementing Xiaolin Wu’s algorithm and post it up at Rosetta Code while I was at it:

You can also check out the GitHub project.

I have a couple of remaining issues that I may or may not get to at some point in the future:

An industrial-strength implementation would need to address these questions.

Related posts

Juicy Draw
Simple triangle rasterizer in Ruby
Rosetta Code (UTF-8)
Rosetta Code (HTTPS)
Rosetta Code (FTP)
New Rosetta Code examples

Tags

Haskell
Graphics
Algorithms
Rosetta Code
Geometry

Content © 2024 Richard Cook. All rights reserved.