UNPKG

graphics-ts

Version:

A porting of purescript-{canvas, free-canvas, drawing} featuring fp-ts

36 lines (22 loc) 904 B
## Functional bindings for the HTML Canvas API **Inspired by** - [purescript-canvas](https://github.com/purescript-contrib/purescript-canvas) - [purescript-free-canvas](https://github.com/paf31/purescript-free-canvas) - [purescript-drawing](https://github.com/purescript-contrib/purescript-drawing) # Installation To install the stable version: ``` npm install graphics-ts fp-ts fp-ts-contrib ``` Note: `fp-ts` and `fp-ts-contrib` are peer dependencies for `graphics-ts` # Documentation - [API Reference](https://gcanti.github.io/graphics-ts/docs/modules) ## Example To run the example, clone the repository and run the following: ``` npm install npm start open example/test.html ``` <img alt="snowflake" src="./example/snowflake.png" style="display: block; width: 400px; margin-bottom: 1em;"> Adapted from https://github.com/purescript-contrib/purescript-drawing/blob/master/test/Main.purs