✅ You are viewing documentation for the latest version of Compose SDK.
Version:

# Variable RadialGradientPresets

const RadialGradientPresets: object

Common radial gradient presets for convenience.

# Type declaration

# bottomLeft

readonly bottomLeft: object

Bottom-left focused radial gradient

# bottomLeft.centerX

readonly centerX: 0 = 0

# bottomLeft.centerY

readonly centerY: 1 = 1

# bottomLeft.radius

readonly radius: 1 = 1


# bottomRight

readonly bottomRight: object

Bottom-right focused radial gradient

# bottomRight.centerX

readonly centerX: 1 = 1

# bottomRight.centerY

readonly centerY: 1 = 1

# bottomRight.radius

readonly radius: 1 = 1


# center

readonly center: object

Center-focused radial gradient

# center.centerX

readonly centerX: 0.5 = 0.5

# center.centerY

readonly centerY: 0.5 = 0.5

# center.radius

readonly radius: 0.8 = 0.8


# topLeft

readonly topLeft: object

Top-left focused radial gradient

# topLeft.centerX

readonly centerX: 0 = 0

# topLeft.centerY

readonly centerY: 0 = 0

# topLeft.radius

readonly radius: 1 = 1


# topRight

readonly topRight: object

Top-right focused radial gradient

# topRight.centerX

readonly centerX: 1 = 1

# topRight.centerY

readonly centerY: 0 = 0

# topRight.radius

readonly radius: 1 = 1