const ARTIST_HEIGHT_SCALE: f32 = 0.08;
const TIMER_HEIGHT_SCALE: f32 = 0.07;
const MIN_WIDTH_RATIO: f32 = 4.0 / 5.0;
+const INCREASE_AMT: f32 = 6.0 / 5.0;
+const DECREASE_AMT: f32 = 5.0 / 6.0;
fn seconds_to_time(seconds: f64) -> String {
let seconds_int: u64 = seconds.floor() as u64;
text_height_limit
})
{
- current_x = current_x * 4.0f32 / 5.0f32;
- current_y = current_y * 4.0f32 / 5.0f32;
+ current_x = current_x * DECREASE_AMT;
+ current_y = current_y * DECREASE_AMT;
continue;
} else if screen_coords.w * MIN_WIDTH_RATIO > width {
- current_x = current_x * 5.0f32 / 4.0f32;
- current_y = current_y * 5.0f32 / 4.0f32;
+ current_x = current_x * INCREASE_AMT;
+ current_y = current_y * INCREASE_AMT;
continue;
} else {
break;