Trait rusty_chip8::Graphics

source ·
pub trait Graphics {
    fn clear_pixel(&mut self, x: usize, y: usize);
    fn draw_pixel(&mut self, x: usize, y: usize);
}

Required Methods§

source

fn clear_pixel(&mut self, x: usize, y: usize)

Clears/turns off a pixel on a specific coordinate.

If the coordinates is out of the screen area it returns an Error.

source

fn draw_pixel(&mut self, x: usize, y: usize)

Draws/turns on a pixel on a specific coordinate.

If the coordinates is out of the screen area it returns an Error.

Implementors§