ContinuousRoundedCornerShape
A rounded-rectangle shape with continuous corners, like SwiftUI's RoundedRectangle(cornerRadius:style: .continuous).
A circular corner turns straight where its radius ends. A continuous corner keeps its radius but eases into each edge over a longer distance, about 1.53× the radius at full smoothing.
Pass it to GlassStyleScope.shape for Glass masking, refraction, lighting, and rim. Because it is a Compose shape, the same instance can be passed to Modifier.clip, Modifier.border, or an indication so that they match the Glass silhouette.
Compose's Interpolatable.lerp interpolates corners and smoothing between two continuous shapes. Corner units resolve at the actual size and density, and start/end corners follow layout direction. Finite fractions can overshoot: negative interpolated radii become zero and smoothing stays in 0f..1f. Other shape types follow Compose's normal interpolation dispatch. If neither shape supports the pair, Compose selects the first below 0.5f and the second otherwise.
Corner sizes resolve like RoundedCornerShape's. When a corner's eased extent would not fit along an edge, its smoothing is reduced, never its radius. A capsule, whose radius is half its shortest side, therefore draws circular ends, and a shape whose corners overlap, such as a leaf, draws circular corners.
Parameters
The top-start corner size.
The top-end corner size.
The bottom-end corner size.
The bottom-start corner size.
How far corners ease into their edges: 0f is circular, matching RoundedCornerShape, and 1f, the default, is calibrated to look like SwiftUI's .continuous style. Finite values outside 0f..1f, such as animation overshoot, are coerced into that range.
Throws
if smoothing is not finite.
Constructors
Properties
Functions
Returns a copy of this shape with smoothing, keeping its corner sizes.
Returns a copy of this shape with new corner sizes, keeping its smoothing.
Creates the outline for already-resolved corner sizes: a rectangle when every corner is square, a rounded rectangle when every effective corner is circular, and otherwise a continuous path.
Interpolates with another continuous shape, or returns null for another type.