Gray sprite in AS3?

Is there an easy way to get rid of a sprite? I disabled the button and I know how to do it, but I want to transfer it in the graphical interface.

+4
source share
1 answer

You can apply ColorMatrixFilter to your Sprite with approximate values โ€‹โ€‹that make the color gray.

sprite.filters = [ new ColorMatrixFilter([0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0.3086, 0.6094, 0.0820, 0, 0, 0, 0, 0, 1, 0]) ]; 
+7
source

All Articles