Static methods
staticdrawFromAtlas(g:KGraphics, element:Element, divisionsX:Int = 1, divisionsY:Int = 1, offsetX:Int = 0, offsetY:Int = 0, ?drawX:Int, ?drawY:Int):Bool
Draws a part of the background texture of the given element to the given
Graphics
object.
Parameters:
g | |
---|---|
element | |
divisionsX | How many times the texture is divided (tiled) on the x axis (default: 1) |
divisionsY | How many times the texture is divided (tiled) on the y axis (default: 1) |
offsetX | The x axis index of the tile that should be drawn, see |
offsetY | The y axis index of the tile that should be drawn, see |
drawX | Custom drawing position |
drawX | Custom drawing position |
Returns:
true
if the background texture exists and was drawn, else false