generateTexture(resolution, scaleMode, padding) → {PIXI.Texture}
Useful function that returns a texture of the graphics object that can then be used to create spritesThis can be quite useful if your geometry is complicated and needs to be reused multiple times.
Parameters
Name Type Argument Default Description resolution Number <optional> 1 The resolution of the texture being generated scaleMode Number <optional> 0 Should be one of the PIXI.scaleMode consts padding Num