Skip to main content

vh

Function vh 

Source
pub fn vh(percent: f32, window: &mut Window) -> Length
Expand description

Returns a Length corresponding to the specified percentage of the viewport’s height.

percent should be a value between 0.0 and 1.0.