Skip to main content

Canvas Size

canvas_size!

Gets the unscaled canvas size in pixels.

turbo::canvas
canvas_size!() -> [u32; 2]

Get canvas size

let [canvas_width, canvas_height] = canvas_size!();