Juicy Draw

2018-12-19

Building on my previous post, I have translated my triangle fill method and some other basic 2D primitives into Haskell. I present to you: juicy-draw (also on GitHub).

Here’s an example program:

This project is inspired by JuicyPixels-canvas and similarly builds on top of JuicyPixels (hence the name). It provides an improper superset of the functions in JuicyPixels-canvas but with one main difference: they operate directly on MutableImage instead of employing an intermediate Canvas type.

Related posts

Xiaolin Wu’s fast antialiased line drawing algorithm in Haskell
Simple triangle rasterizer in Ruby

Tags

Haskell
Graphics
Geometry

Content © 2024 Richard Cook. All rights reserved.