pixi 4.6.2+1

  • README.md
  • Installing
  • Versions
  • 71


A Dart wrapper for PixiJS.

The version number of this package mirrors that of the PixiJS library it wraps. An official build of minified pixijs is provided as part of the package.

The PixiJS documentation can be used as reference with a few exceptions such as the loading of shaders (see the custom-filter example).

Remember to wrap all callback functions that are passed to JS with allowInterop().


import 'dart:html';
import 'package:pixi/pixi.dart';

class BunnyExample
	var app		= new Application();
	var bunny	= new Sprite.fromImage('bunny.png');


			..anchor 	= new Point(0.5, 0.5);
			..position	= new Point(200, 150);

			(_) => this.bunny.rotation += 0.1

void main()
	new BunnyExample();

v4.6.2+1 (2018-01-10)

  • Added analysis_options and editorconfig files.
  • Fixed a few issues to better support strong mode.

v4.6.2+0 (2018-01-09)

  • Complete refactor as a JS interop wrapper for pixijs.
  • Versioning is now based on the underlying pixijs version.
  • Official build of minified pixijs is provided as part of the package.

v0.1.3 (2014-09-13)

  • Switched from package js to dart:js for the examples.
  • Removed the unittest dependency for now.
  • Added a clearEvents method to interactive objects.
  • Fixed an issue with colour referencing in the Graphics display object.

v0.1.2 (2014-07-14)

  • Fixed an issue with interaction states getting missed.

v0.1.1 (2014-07-14)

  • Added the missing onClick implementation.

v0.1.0 (2014-07-11)

Initial release of the interaction implementation:

  • It works for mouse and touch events (and should even support multi-touch).
  • The appropriate examples have been ported from pixi.js.
  • Sprites will have an automatic hit area unless explicitly assigned one.
  • Non-sprites should assign a hit area if required.
  • A few basic hit shapes are provided (rectangle, circle and polygon).

v0.0.5 (2014-02-05)

  • Fix around issues that occur only when compiled to javascript.
  • Initial interaction manager design.
  • Some renaming to avoid clashes with existing Dart classes.

v0.0.4 (2013-11-14)

This is a merge of the simple-render branch into the master and includes the following changes:

  • Switched to a simpler rendering method by walking the scenegraph instead of maintaining a linked list.
  • Removed the linked list sprite batching and implemented a simple batcher with fixed-size buffers.
  • Extended the simple batcher with an optional one that supports multiple textures.
  • TilingSprite is now derived from Sprite and can be rendered by the batching system so the TilingSprite specific renderer and shader have been deprecated.
  • All GL related resources are now owned and maintained by the GL renderer which will make it possible to use them with multiple renderers and will ease the development of context loss management.
  • The shaders have been pulled out into separate classes which are derived from a base shader class.

1. Depend on it

Add this to your package's pubspec.yaml file:

  pixi: "^4.6.2+1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:pixi/pixi.dart';
Version Uploaded Documentation Archive
4.6.2+1 Jan 10, 2018 Go to the documentation of pixi 4.6.2+1 Download pixi 4.6.2+1 archive
4.6.2+0 Jan 9, 2018 Go to the documentation of pixi 4.6.2+0 Download pixi 4.6.2+0 archive
0.1.3 Sep 13, 2014 Go to the documentation of pixi 0.1.3 Download pixi 0.1.3 archive
0.1.2 Jul 14, 2014 Go to the documentation of pixi 0.1.2 Download pixi 0.1.2 archive
0.1.1 Jul 14, 2014 Go to the documentation of pixi 0.1.1 Download pixi 0.1.1 archive
0.1.0 Jul 11, 2014 Go to the documentation of pixi 0.1.0 Download pixi 0.1.0 archive
0.0.6 Jul 7, 2014 Go to the documentation of pixi 0.0.6 Download pixi 0.0.6 archive
0.0.5 Feb 5, 2014 Go to the documentation of pixi 0.0.5 Download pixi 0.0.5 archive
0.0.4 Nov 14, 2013 Go to the documentation of pixi 0.0.4 Download pixi 0.0.4 archive
0.0.3 Nov 5, 2013 Go to the documentation of pixi 0.0.3 Download pixi 0.0.3 archive

All 13 versions...


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
43 / 100
Code health derived from static analysis. [more]
96 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: web

Primary library: package:pixi/pixi.dart with components: html, js.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use pixi.dart.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.3 <2.0.0
js ^0.6.1 0.6.1
Dev dependencies
browser ^0.10.0