PNG to sprite for nearly transparent background...Will this be a problem? #2685
-
I am using Flash Arrays to store PNG icons. I Decode them to from a 50x50 PNG to a 50x50 sprite and push the sprite with the background color of the PNG as transparent. If I create the PNG with a background color close to the color of what I am pushing the sprite over, you really cant tell the PNG is not transparent. My question is...is Decoding PNG to a Sprite the correct way to do this....? See code snippet below. img.createSprite(50,50); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
PNG images can have inbuilt transparency. See exampe here: |
Beta Was this translation helpful? Give feedback.
PNG images can have inbuilt transparency. See exampe here:
https://github.com/Bodmer/TFT_eSPI/tree/master/examples/PNG%20Images/Flash_transparent_PNG