Function pixels_graphics_lib::run
source · pub fn run(
width: usize,
height: usize,
title: &str,
system: Box<dyn System>,
options: Options
) -> Result<(), GraphicsError>Expand description
Helper method that sets up the screen and runs the loop
If you want to use Scenes consider run_scenes
Arguments
width- Width of the whole window canvas in pixelsheight- Height of the whole window canvas in pixelstitle- Window titlesystem- Your programoptions- Options controls how fast the program can update, [UiElement] styling, etc