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

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.
images001
The scrip is very simple:

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

admin

born 1976

Posted in All, HTML 5, javascript, Programming. Tagged with , , , , .