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§
sourcefn clear_pixel(&mut self, x: usize, y: usize)
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.
sourcefn draw_pixel(&mut self, x: usize, y: usize)
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.