Package

purescript-canvas-action

Repository
artemisSystem/purescript-canvas-action
License
MIT
Uploaded by
artemisSystem
Published on
2021-05-29T20:02:30Z

Installation

spago install canvas-action

Documentation

This package introduces a monad and type class for working with the HTML5 canvas without having to pass a Context2D argument to every function that needs it. Assumes familiarity with the canvas API.

Reference

Module reference is published on Pursuit.

Developing

To test one of the examples, run npm run example-<Name>, replacing <Name> with the name of the example or test you want to run. This will create a server that auto-rebuilds every time you make a change to its source, and open a browser window. The examples are located in /test/Test/<Name>.

Open the REPL using npm run repl (npx spago -x dev.dhall repl).