Skip to main content

grid_width

Function grid_width 

Source
pub fn grid_width(pw: f32, ph: f32) -> f32
Expand description

Return the grid-space width for a window of size pw × ph pixels.

Height is always 1080 units; width scales proportionally with the aspect ratio.