pixi 4.8.1+1 copy "pixi: ^4.8.1+1" to clipboard
pixi: ^4.8.1+1 copied to clipboard

An interop wrapper around the pixijs library providing GPU accelerated 2D graphics for web applications.

example/example.dart

import 'dart:html' hide Point;
import 'package:pixi/pixi.dart';
import 'package:js/js.dart';

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

	BunnyExample()
	{
		document.body.append(app.view);

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

		app.stage.children.add(this.bunny);
		app.ticker.add(allowInterop(
			(_) => this.bunny.rotation += 0.1
		));
	}
}

void main()
{
	new BunnyExample();
}
2
likes
25
pub points
7%
popularity

Publisher

unverified uploader

An interop wrapper around the pixijs library providing GPU accelerated 2D graphics for web applications.

Repository
View/report issues

Documentation

Documentation

License

MIT (LICENSE)

Dependencies

js

More

Packages that depend on pixi