Macaw.Draw (macaw_draw v0.1.0)

Copy Markdown View Source

Macaw's drawing library: pure functions with no processes and no state.

It holds the scales, ticks, axes and formats (spec/06), the shapes and drawing utilities (spec/07), the layouts (spec/08), geo (spec/09), and the scene and its render targets (spec/10). It depends on macaw_base, macaw_layers, macaw_units and macaw_format only, never on macaw_data or macaw_component (spec/00 §2), so an application draws without a data layer, a component or Phoenix.

Every public function answers a value, {:ok, value} or {:error, faults} for any input; nothing raises but a ! twin (spec/06 §1.2).