Hey guys, Is there a way to set a pivot point / a...
# compose
r
Hey guys, Is there a way to set a pivot point / anchor for
Modifier.scale(0.5f)
?
z
The graphicsLayer modifier lets you specify a pivot (called transformOrigin)
r
thanks!
Copy code
.graphicsLayer {
    transformOrigin = TransformOrigin(0f,0f)
    scaleX = f
    scaleY = f
}