translate

Function

Common
inline fun DrawScope.translate(left: Float = 0.0f, top: Float = 0.0f, block: DrawScope.() -> Unit)

Translate the coordinate space by the given delta in pixels in both the x and y coordinates respectively

Parameters

leftPixels to translate the coordinate space in the x-axis
topPixels to translate the coordinate space in the y-axis
blocklambda that is called to issue drawing commands within the translated coordinate space