wp method

double wp(
  1. double percent
)

Converts a percentage of the screen width into logical pixels.

Implementation

double wp(double percent) {
  return width * percent / 100;
}