https://github.com/weavejester/flupot-pixi
A ClojureScript wrapper around react-pixi
https://github.com/weavejester/flupot-pixi
Last synced: 12 months ago
JSON representation
A ClojureScript wrapper around react-pixi
- Host: GitHub
- URL: https://github.com/weavejester/flupot-pixi
- Owner: weavejester
- Created: 2016-05-27T04:23:40.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-14T01:29:51.000Z (about 10 years ago)
- Last Synced: 2025-06-09T17:13:37.093Z (about 1 year ago)
- Language: Clojure
- Homepage:
- Size: 11.7 KB
- Stars: 13
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flupot-Pixi
A ClojureScript wrapper around [react-pixi][], a library for
controlling [Pixi.js][] through [React][]. As the name suggests,
Flupot-Pixi is based on the [Flupot][] library.
[react-pixi]: https://github.com/Izzimach/react-pixi
[pixi.js]: http://www.pixijs.com/
[react]: https://facebook.github.io/react/
[flupot]: https://github.com/weavejester/flupot
## Installation
Add the following to your project `:dependencies`:
[flupot/pixi "0.1.0"]
## Usage
There are seven functions, each corresponding to a class in react-pixi:
- `bitmap-text`
- `container`
- `sprite`
- `sprite-batch`
- `stage`
- `text`
- `tiling-sprite`
The first argument may be a map of options, similar to how Flupot
elements work.
For example:
```clojure
(require '[flupot.pixi :as pixi])
(defn example []
(pixi/stage
{:width 400, :height 300}
(pixi/text {:x 100, :y 100, :text "Hello World"})))
```
## License
Copyright © 2016 James Reeves
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.