Jump to content

Phaser.Graphics pixel counting


Recommended Posts

Is it possible to count the number of visible pixels that have been drawn on a graphics object?

I know its possible on BitmapData object through ImageData.data array, but I can't find that sort of thing in the graphics object and I need to use the graphics for masking.

I want to calculate the percentage of how much of a sprite has been painted over by the graphics.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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