p5.js bindings for PureScript
Disclaimer: This project has just been started and the API is still very unstable.
Module documentation is published on Pursuit.
purescript-p5 implements a subset of the p5.js API (see Project Status).
bower install purescript-p5
This library depends on p5.js. This dependency may be satisfied by installing the NPM p5.js package.
npm install p5 --save
The examples use the webpack DLLPlugin to improve build performance. To run the examples, first build the dll bundle with:
npm run webpack:dll
This creates a separate webpack bundle for dependencies so that they don't need to be regenerated each time the app is changed.
To start webpack dev server, run:
npm run webpack:server
With webpack dev server running, examples can be viewed in a browser by visiting
- wrappers for most methods defined on the p5 class
- generate methods for classes other than p5 (e.g. p5.Vector, p5.Image)
- create easier-to-use interfaces for functions with numeric suffixes
- use Reader monad to implicitly pass the p5 argument