Jump to content

PhaserJS - save image with pixi filter to cache


Recommended Posts

Is it possible to save a image that I've applied certains filters on?


colorMatrix = new PIXI.ColorMatrixFilter();

colorMatrix.matrix = [0,0.0,0.5,-0.2, 0,0,1.0,-0.2, 0.0,0.0,0.5,-0.2, 0.0,0.0,0.0,1]

image = game.make.bitmapData()


image.filters = [colorMatrix]

game.cache.addBitmapData("testImageWithFilter", image);


When I pick this up it doesn't have the filter applied abowe. Is this not possible?

Link to comment
Share on other sites


  • Recently Browsing   0 members

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