vivid v0.2.1 Vivid.Rasterize protocol

The Rasterize protocol is responsible for converting shapes into bitmaps.

If you’re defining your own shape then you need to implement this protocol.

Summary

Functions

Convert a shape into a bitmap

Types

t()
t() :: term

Functions

rasterize(shape, bounds)
rasterize(Vivid.Shape.t, Bounds.t) :: MapSet

Convert a shape into a bitmap.

Takes a shape and returns a MapSet of points within bounds.