RoundedCorners:set_radius_top_right
Sets the top right corner radius.
Usage
rounded_corners:set_radius_top_right(radius)
Arguments
| Name | Type | Description |
|---|---|---|
radius | number | Corner radius. |
Examples
local rounded_corners = crystal.RoundedCorners:new(8);
rounded_corners:set_child(crystal.Image:new(crystal.assets.get("forest_icon.png")));
rounded_corners:set_radius_top_right(0);