fn render_pixel(&mut self, x: u8, y: u8) {
        let bg_col =
            // Window is always on top of background
            if self.window_enabled && self.in_window(x, y) {
                self.window_color(x, y)
            } else if self.bg_enabled {
                self.background_color(x, y)
            } else {
                // No background or window
                AlphaColor { color: Color::White, opaque: false }
            };

        let col = if self.sprites_enabled {
            self.render_sprite(x, y, bg_col)
        } else {
            bg_col.color
        };

        self.display.set_pixel(x as u32, y as u32, col);
    }
/// Render a single pixel from the display
Render a single pixel from the display
Render a single pixel from the display
fn render_pixel(&mut self, x: u8, y: u8) {
        let bg_col =
            // Window is always on top of background
            if self.window_enabled && self.in_window(x, y) {
                self.window_color(x, y)
            } else if self.bg_enabled {
                self.background_color(x, y)
            } else {
                // No background or window
                AlphaColor { color: Color::White, opaque: false }
            };
        let col = if self.sprites_enabled {
            self.render_sprite(x, y, bg_col)
        } else {
            bg_col.color
        };
        self.display.set_pixel(x as u32, y as u32, col);
    }
fn render_pixel ( & mut self , x : u8 , y : u8 ) { let bg_col = // Window is always on top of background if self . window_enabled && self . in_window ( x , y ) { self . window_color ( x , y ) } else if self . bg_enabled { self . background_color ( x , y ) } else { // No background or window AlphaColor { color : Color :: White , opaque : false } } ; let col = if self . sprites_enabled { self . render_sprite ( x , y , bg_col ) } else { bg_col . color } ; self . display . set_pixel ( x as u32 , y as u32 , col ) ; }
Render a single pixel from the display
Render a single pixel from the display
&mut self
x
u8
y
u8
&mut self
x
u8
y
u8