Dispose the karlib instance. Once dispose is called, the karlib instance should not be re-used
Allows you to stretch a texture using 9-slice scaling. The corners will remain unscaled (useful for buttons with rounded corners for example) and the other areas will be scaled horizontally and or vertically A B +---+----------------------+---+ C | 1 | 2 | 3 | +---+----------------------+---+ | | | | | 4 | 5 | 6 | | | | | +---+----------------------+---+ D | 7 | 8 | 9 | +---+----------------------+---+ When changing this objects width and/or height: areas 1 3 7 and 9 will remain unscaled. areas 2 and 8 will be stretched horizontally areas 4 and 6 will be stretched vertically area 5 will be stretched both horizontally and vertically
Executes a drawing function with an clipping mask.
mask is applied for any drawing done inside this function
Optionalmask_source: MaskSourcewhen not defined mask is not applied. By setting it to undefined, you can use it to disable/enable mask
Render a repeating texture across a given area. The texture can be scrolled, scaled, and rotated independently
Minimal support for TexturePacker exported spritesheet Supports only JSON hash format If the path contains token "{dpr}", then when loading the file, "{dpr}" value is replaced with device-pixel-ratio.
Optionaloptions: SpriteSheetLoadTextureOptionsLoads image and converts it to texture. If the image path contains token "{dpr}", then when loading the image,"{dpr}" value is replaced with device-pixel-ratio.
Optionaloptions: LoadTextureOptions
Sets background color