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

By | 29/12/2015

Today I will show you how to deal with Pixi.js.
It’s Winter holidays and Christmas traditions in Romania like the Bear dance, the Masked carolers and the Goat.
This makes me happy and I will use one image with the Bear dance.
The Pixi.js library provides 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.
images001
The script is very simple:

The output is this:
pixi001_output
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.