Constant freya_elements::elements::rect::corner_smoothing
source · pub const corner_smoothing: (&'static str, Option<&'static str>, bool);
Expand description
Control the smoothing effect for rounded corners to create a “squircle” effect.
Higher values create more of a squircle shape (rounded square), while lower values result in a more traditionally rounded corner.
§Example
fn app() -> Element {
rsx!(
rect {
corner_radius: "10",
corner_smoothing: "75%"
}
)
}