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

GraphicsLayerScope

Scope for configuring graphics layer properties in a type-safe builder lambda.

Source set: Android
public interface GraphicsLayerScope

Scope for configuring graphics layer properties in a type-safe builder lambda.

Properties

scaleX

Source set: Android
public var scaleX: RemoteFloat

The horizontal scale factor.

scaleY

Source set: Android
public var scaleY: RemoteFloat

The vertical scale factor.

rotationX

Source set: Android
public var rotationX: RemoteFloat

The rotation of the layer around the X axis, in degrees.

rotationY

Source set: Android
public var rotationY: RemoteFloat

The rotation of the layer around the Y axis, in degrees.

rotationZ

Source set: Android
public var rotationZ: RemoteFloat

The rotation of the layer around the Z axis, in degrees.

shadowElevation

Source set: Android
public var shadowElevation: RemoteFloat

The shadow elevation of the layer.

transformOriginX

Source set: Android
public var transformOriginX: RemoteFloat

The horizontal center of the transform, as a fraction of the layer width.

transformOriginY

Source set: Android
public var transformOriginY: RemoteFloat

The vertical center of the transform, as a fraction of the layer height.

translationX

Source set: Android
public var translationX: RemoteFloat

The horizontal translation of the layer.

translationY

Source set: Android
public var translationY: RemoteFloat

The vertical translation of the layer.

alpha

Source set: Android
public var alpha: RemoteFloat

The alpha (opacity) of the layer, from 0f (transparent) to 1f (opaque).

cameraDistance

Source set: Android
public var cameraDistance: RemoteFloat

The camera distance for 3D transforms.

shape

Source set: Android
public var shape: Shape

The shape of the layer. Used for clipping and outline shadows.

compositingStrategy

Source set: Android
public var compositingStrategy: CompositingStrategy

The compositing strategy to use for the layer.

renderEffect

Source set: Android
public var renderEffect: RenderEffect?

The RenderEffect to apply to this layer, or null.

Content updated: