Skip to main content

viewport

Function viewport 

pub fn viewport<T>(_: (T, T)) -> (u32, u32)
where T: Into<f64>,
Expand description

A logical (width, height) as a harness viewport.

Fractions truncate and negative or NaN sizes become zero, so a size written as a float names the same viewport it would as an integer.