New library : purescript-canvas-geometry

math
canvas
#1

purescript-canvas-geometry

A library to build planar geometric drawings on the canvas from

  • points, lines, half-lines, segments and circles,
  • using intersections to define new points

The main thing to say is that vectors are not drawable (but
used everywhere nonetheless) and in order to see an arrow on
the screen, arrow tips should be added to segments.

purescript-canvas-geometry-test

Documentation on Pursuit

https://pursuit.purescript.org/packages/purescript-canvas-geometry

Edit 18AUG2019: version 2.0.0 refactoring breaks compatibility. Effect is no more, the lib is entirely pure (see README).

3 Likes