Added canvas sprite tiniting

Currently only works with browsers that support the new canvas blend
modes
still need to add tiniting to tilingsprite and graphics
This commit is contained in:
Mat Groves 2013-12-29 12:14:34 +00:00
parent f0c082a3cc
commit 41d6b01e96
6 changed files with 217 additions and 40 deletions

View file

@ -36,7 +36,8 @@
var stage = new PIXI.Stage(0xFFFFFF);
// create a renderer instance.
renderer = PIXI.autoDetectRenderer(800, 600);
//renderer = PIXI.autoDetectRenderer(800, 600);
renderer = new PIXI.CanvasRenderer(800, 600);
// add the renderer view element to the DOM
document.body.appendChild(renderer.view);
@ -58,6 +59,7 @@
// create an alien using the frame name..
var alien = PIXI.Sprite.fromFrame(frameName);
///alien.tint = 0xFF0000;
/*
* fun fact for the day :)