toRounded

fun Rectangle.toRounded(radius: Double): RoundedRectangle(source)