Expand description

Rust Graphics Lib

This is a simple wrapper around Pixels, it provides basic shape, image and text rendering.

This boilerplate code is needed to use it:

use pixels_graphics_lib::prelude::*;

struct Example {
}

impl System for Example {
  fn update(&mut self, delta: &Timing) {

  }

  fn render(&self, graphics: &mut Graphics) {

  }
}

fn main() -> Result<(), Box<dyn Error>> {
let system = Example {};
  run(240, 160, "Doc Example", Box::new(system), Options::default())?;
  Ok(())
}

Re-exports

Modules

Structs

Enums

Traits

Functions

  • Creates the window and pixels wrapper