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

2 Likes