Jump to content

is it posible to skew image in phaser


davidzhu
 Share

Recommended Posts

  • 6 months later...

Not natively within either Phaser or pixi - you'd either have to use BitmapData along with your own skewing routine (or Google for a canvas lib which does this) or possibly use a pixi filter though I have to confess I know very little about writing or implementing filters.

Link to comment
Share on other sites

Not natively within either Phaser or pixi - you'd either have to use BitmapData along with your own skewing routine (or Google for a canvas lib which does this) or possibly use a pixi filter though I have to confess I know very little about writing or implementing filters.

 

Slightly off topic - do you know if Pixi is purely WebGL? Or does it handle Phaser's Canvas rendering as well?

 

Here's a pretty cool use of skewing in a HTML5 game:

http://m.spele.nl/games/brainteaser/jelly-madness/index.php?v=3

Link to comment
Share on other sites

Pixi forms the basis of Phaser's rendering, so Phaser does WebGL and canvas because pixi does too.

 

I've had a play with some ctx.setTransform stuff using BitmapData and it looks like skewing is possible with that, though it's not totally straightforward and requires a bit of knowledge of transform matrices.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...