Externs of Pixi.js v3.x for Haxe - A fast and lightweight 2D javascript rendering library that works across all devices.
Installation
haxelib install pixijs
or via npm
npm install hxpixijs
API Documentation
Issues
Found any bug? Please create a new issue.
Demos
- Basics
- Graphics
- Movieclip
- Spritesheet
- Texture Swap
- Rope
- Dragging
- Tiling
- Bitmap Font
- Alpha Mask
- Bunnymark
- Retina
- Events
- Loader
- Video
- Nape
- Device Info
- Device Detection
Plugins
Filters (WebGL only)
COHERE - Sample MVC application using haxe and pixi.js
Look at the samples
folder for the source code of above examples.
Usage
package samples import pixiimport pixiimport pixiimport pixiimport pixiimport js class Main { var _bunny:Sprite; var _renderer:SystemRenderer; var _stage:Container; public function new() { // Rendering options usage sample var options:RenderingOptions = {}; options= 0x003366; options= 1; _stage = new Container(); _renderer = Detector600, options); _bunny = new Sprite _bunny0.5); _bunny300); _stage Browser Browser_animate); } function _animate() { Browser_animate); _bunny+= 0.1; _renderer } static function main() { new Main(); }}
Licensing Information
This content is released under the MIT License.
Pixi.js is licensed under the MIT License.
Contributor Code of Conduct
Code of Conduct is adapted from Contributor Covenant, version 1.3.0