Function

CornerRadius

Constructs a Radius with the given x and y parameters for the size of the radius along the x and y axis respectively.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Source set: Common

Added in 1.11.0-rc01

inline fun CornerRadius(x: Float, y: Float = x) = CornerRadius(packFloats(x, y))

Constructs a Radius with the given x and y parameters for the size of the radius along the x and y axis respectively. By default the radius along the Y axis matches that of the given x-axis unless otherwise specified. Negative radii values are clamped to 0.