toLayer

open override fun toLayer(offset: Position): Nothing

Creates a newLayer from the contents of this TileGraphics. The result is not connected to the original object, which means that changes to one are not reflected in the other. Note that if this object is already a Layer this function has no effect.

Parameters

offset

the offset for the new Layer, (0, 0) by default

Sources

(source)
Link copied to clipboard