Efficient data structures that represent renderable scenes
npm install graphicsEfficient data structures that represent renderable scenes
This is a direct port of [Elm][7] to a commonJS JavaScript library.
The purpose is exploration of FRP in plain JavaScript and
maybe rewriting Elm's rendering core in more efficient JavaScript.
``js
var MousePosition = require("graphics/mouse").Position
var map = require("graphics/signal/map")
var plainText = require("graphics/element").plainText
var render = require("graphics/render")
// Lift the stream of mouse positions through the plainText
// function
var main = map(MousePosition(), plainText)
// render the stream of mouse position as text
render(main)
`
`sh
npm i
Installation
npm install graphics`- Raynos
[1]: https://secure.travis-ci.org/Raynos/graphics.png
[2]: http://travis-ci.org/Raynos/graphics
[3]: http://david-dm.org/Raynos/graphics.png
[4]: http://david-dm.org/Raynos/graphics
[5]: http://ci.testling.com/Raynos/graphics.png
[6]: http://ci.testling.com/Raynos/graphics
[7]: http://elm-lang.org/