JavaScript – Pixi.js 2D library – part 001.

By | 29/12/2015

Today I will show you how to deal with Pixi.js.
Also it’s Winter holidays and Christmas traditions in Romania like: the Bear dance, the Masked carolers and the Goat.
This make me happy and I will use one image with: the Bear dance.
The Pixi.js library provide a fast lightweight 2D renderer.
First you need to download the javascript pixi.js from pixi github project.
I used two image files: datini.jpg, bur_effect.jpg and one png mask file named mask.png.
The scrip is very simple:

The output is this:
In case you want to see it live the try this link.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.