🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

TransformOriginScope

An interface that introduces the transform origin properties to a Style receiver scope.

Source set: Common
public interface TransformOriginScope

An interface that introduces the transform origin properties to a Style receiver scope.

Functions

transformOriginX

Source set: Common
public fun transformOriginX(value: Float)

Offset percentage along the x-axis for which contents are rotated and scaled. The default value of 0.5f indicates the pivot point will be at the midpoint of the left and right bounds of the layer. Default value is TransformOrigin.Center.

Parameters

value The origin of the transform

transformOriginY

Source set: Common
public fun transformOriginY(value: Float)

Offset percentage along the y-axis for which contents are rotated and scaled. The default value of 0.5f indicates the pivot point will be at the midpoint of the top and bottom bounds of the layer. Default value is TransformOrigin.Center.

Parameters

value The origin of the transform

Content updated: