sx method

double sx(
  1. num value
)

Scales a horizontal value relative to the screen width.

Implementation

double sx(num value) {
  return value.toDouble() *
      (min(windowHeight, windowWidth) / guidelineBaseWidth);
}