Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
How to set transparentcolor in TexturePack ? — Gideros Forum

How to set transparentcolor in TexturePack ?

nat12nat12 Member
edited November 2011 in General questions
Hello,
The Texture.new function has very useful filtering and transparentcolor parameters, I was unable to find these functionality in the TexturePack object documentation, it is possible to set a transparent color in a TexturePack? how?

Comments

  • atilimatilim Maintainer
    Hi,

    Filtering is already available in TexturePack (I realized that it's not mentioned in reference manual). You can use as:
    TexturePack.new(textures, 2, true) --> here 2 is the spacing (padding) between textures
    TexturePack.new(txtfile, imagefile, true)
    But transparentcolor functionality is missing. I'll add this with the next version.
  • Thank You for the quick answer!
    I hope to see the next version soon :)
Sign In or Register to comment.