📜 ⬆️ ⬇️

Pixi.js - 2D engine with transparent support for WebGL

Pixi.js allows you to use the power of WebGL for rendering 2D-scenes, completely without going into the details of the implementation, moreover, he is able to independently determine the presence of WebGL support and switch between rendering methods. In the absence of WebGL, rendering is done using canvas. In addition, Pixi.js implements a scene graph, support for textures and sprites, a little more than a week ago it added interactivity support - you can hang mouse and touchscreen event handlers on sprites.

The authors position Pixi.js as a 2D analogue of Three.js, and argue that although games are the first thing that comes to mind at the sight of their engine, it is quite low-level so that it can be used everywhere where rich 2D animation is required, for example in complex graphical interfaces. When developing the main efforts were focused on the speed and simplicity of the API.

Pixi.js repository on GitHub

Pixi.js demo game
')
> 9000 bunnies for performance testing.

Source: https://habr.com/ru/post/174603/


All Articles