partnersgaq.blogg.se

Texturepacker pro spritesheet max size
Texturepacker pro spritesheet max size











texturepacker pro spritesheet max size

inner_paddingĪdds transparent pixels to the inside of the sprite, growing it. Use a value of at least 2 to avoid dragging in pixels from neighbor sprites when using OpenGL rendering. The transparent pixels are not added to the sprites. Value adds transparent pixels between sprites to avoid artifacts from neighbor sprites. Shape padding is the space between sprites. Value adds transparent pixels around the borders of the sprite sheet. border_paddingīorder padding is the space between the sprites and the border of the sprite sheet. force_squareįorces the texture to have a squared size. Might not be supported by all game/web frameworks. enable_rotatedĪllows the rotating of sprites clockwise or counterclockwise by 90 degrees if they have a better fit in the texture. Sets the maximum height for the texture, default is 4096. Sets the maximum width for the texture, default is 4096. texture_formatĬhoose the texture format that the output file will use, for example ".jpg". A tuple of values can also be accepted, like (R, G, B, A). The default value is 0x00000000, which is in format of "RGBA". The pixels of the empty area in the output image will be filled with bg_color. pack( "test_case/", "test_case%d") Packer Setting bg_color # "%d" in output file name "test_case%d" is a placeholder, which is a multipack index, starting with 0. # pack texture images under directory "test_case/" and name the output images as "test_case". create( max_width = 2048, max_height = 2048, bg_color = 0xffffff00) # create a MaxRectsBinPacker packer = Packer. From PyTexturePacker import Packer def pack_test():













Texturepacker pro spritesheet max size