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');
BunnyExample()
{
document.body.append(app.view);
this.bunny
..anchor = new Point(0.5, 0.5);
..position = new Point(200, 150);
app.stage.children.add(this.bunny);
app.ticker.add(allowInterop(
(_) => this.bunny.rotation += 0.1
));
}
}
void main()
{
new BunnyExample();
}
v4.6.2+1 (2018-01-10)
v4.6.2+0 (2018-01-09)
v0.1.3 (2014-09-13)
v0.1.2 (2014-07-14)
v0.1.1 (2014-07-14)
v0.1.0 (2014-07-11)
Initial release of the interaction implementation:
v0.0.5 (2014-02-05)
v0.0.4 (2013-11-14)
This is a merge of the simple-render branch into the master and includes the following changes:
Add this to your package's pubspec.yaml file:
dependencies:
pixi: "^4.6.2+1"
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.
Now in your Dart code, you can use:
import 'package:pixi/pixi.dart';
Version | Uploaded | Documentation | Archive |
---|---|---|---|
4.6.2+1 | Jan 10, 2018 |
|
|
4.6.2+0 | Jan 9, 2018 |
|
|
0.1.3 | Sep 13, 2014 |
|
|
0.1.2 | Jul 14, 2014 |
|
|
0.1.1 | Jul 14, 2014 |
|
|
0.1.0 | Jul 11, 2014 |
|
|
0.0.6 | Jul 7, 2014 |
|
|
0.0.5 | Feb 5, 2014 |
|
|
0.0.4 | Nov 14, 2013 |
|
|
0.0.3 | Nov 5, 2013 |
|
|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Popularity:
Describes how popular the package is relative to other packages.
[more]
|
59 | / 100 |
Health:
Code health derived from static analysis.
[more]
|
96 | / 100 |
Maintenance:
Reflects how tidy and up-to-date the package is.
[more]
|
100 | / 100 |
Overall score:
Weighted score of the above.
[more]
|
78 |
Detected platforms: web
Primary library:
package:pixi/pixi.dart
with components:html
,js
.
Fix analysis and formatting issues.
Analysis or formatting checks reported 29 hints.
Run
dartfmt
to formatlib/src/Core.dart
.Run
dartfmt
to formatlib/src/Dynamic.dart
.Similar analysis of the following files failed:
lib/src/Filters.dart
(hint)lib/src/Loaders.dart
(hint)lib/src/Mesh.dart
(hint)lib/src/Particles.dart
(hint)lib/src/core/Application.dart
(hint)lib/src/core/Const.dart
(hint)lib/src/core/Display.dart
(hint)lib/src/core/Events.dart
(hint)lib/src/core/Graphics.dart
(hint)lib/src/core/Maths.dart
(hint)lib/src/core/Renderers.dart
(hint)lib/src/core/Shapes.dart
(hint)lib/src/core/Sprites.dart
(hint)lib/src/core/Text.dart
(hint)lib/src/core/Textures.dart
(hint)lib/src/extras/AnimatedSprite.dart
(hint)lib/src/extras/BitmapText.dart
(hint)lib/src/extras/TilingSprite.dart
(hint)
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 usepixi.dart
.