radius method

double radius(
  1. num r
)

Adapt according to the smaller of width or height

Implementation

double radius(num r) => r * min(scaleWidth, scaleHeight);