pub fn get_device_pixel_ratio() -> f64
Expand description
Returns the value of window.devicePixelRatio
, using the emscripten-defined emscripten_get_device_pixel_ratio
.
ยงExamples
println!("Your device pixel ratio is {}", get_device_pixel_ratio());