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 pixels
  • height - Height of the whole window canvas in pixels
  • title - Window title
  • system - Your program
  • options - Options controls how fast the program can update, [UiElement] styling, etc