pub fn sprite_address(&self, hex_sprite: u8) -> usize {
        match hex_sprite {
            0x0 => 0,
            0x1 => 5,
            0x2 => 10,
            0x3 => 15,
            0x4 => 20,
            0x5 => 25,
            0x6 => 30,
            0x7 => 35,
            0x8 => 40,
            0x9 => 45,
            0xA => 50,
            0xB => 55,
            0xC => 60,
            0xD => 65,
            0xE => 70,
            0xF => 75,
            _ => panic!("invalid sprite: tried to get address of invalid sprite"),
        }
    }
/// Get the address in memory of the given hexadecimal sprite.
///
/// # Panics
///
/// Panics if the given sprite is outside of 0x0 through 0xF
Get the address in memory of the given hexadecimal sprite.
Get the address in memory of the given hexadecimal sprite .
pub fn sprite_address(&self, hex_sprite: u8) -> usize {
        match hex_sprite {
            0x0 => 0,
            0x1 => 5,
            0x2 => 10,
            0x3 => 15,
            0x4 => 20,
            0x5 => 25,
            0x6 => 30,
            0x7 => 35,
            0x8 => 40,
            0x9 => 45,
            0xA => 50,
            0xB => 55,
            0xC => 60,
            0xD => 65,
            0xE => 70,
            0xF => 75,
            _ => panic!("invalid sprite: tried to get address of invalid sprite"),
        }
    }
pub fn sprite_address ( & self , hex_sprite : u8 ) -> usize { match hex_sprite { 0x0 => 0 , 0x1 => 5 , 0x2 => 10 , 0x3 => 15 , 0x4 => 20 , 0x5 => 25 , 0x6 => 30 , 0x7 => 35 , 0x8 => 40 , 0x9 => 45 , 0xA => 50 , 0xB => 55 , 0xC => 60 , 0xD => 65 , 0xE => 70 , 0xF => 75 , _ => panic ! ( " " ) , } }
Get the address in memory of the given hexadecimal sprite.
Get the address in memory of the given hexadecimal sprite .
&self
hex_sprite
u8
panics
Panics if the given sprite is outside of 0x0 through 0xF
Panics if the given sprite is outside of 0x0 through 0xF