sw method

dynamic sw(
  1. num n
)

Implementation

sw(num n) {
  return clampDouble(n.toDouble(), 0, 1) * actual.width;
}