Converts a percentage of the screen height into logical pixels.
double hp(double percent) { return height * percent / 100; }