pub fn draw_borders(&mut self) {
        for i in BLOCK_SIZE..self.width() - 2 * BLOCK_SIZE {
            self.write_block(i, BLOCK_SIZE, Color::DarkGreen);
            self.write_block(i, self.height() - 2 * BLOCK_SIZE, Color::DarkGreen);
        }
        for i in BLOCK_SIZE..self.height() - 2 * BLOCK_SIZE {
            self.write_block(BLOCK_SIZE, i, Color::DarkGreen);
            self.write_block(self.width() - 2 * BLOCK_SIZE, i, Color::DarkGreen);
        }
    }
// draw_border draws a border around the screen with a one block padding
draw_border draws a border around the screen with a one block padding
draw_border draws a border around the screen with a one block padding
pub fn draw_borders(&mut self) {
        for i in BLOCK_SIZE..self.width() - 2 * BLOCK_SIZE {
            self.write_block(i, BLOCK_SIZE, Color::DarkGreen);
            self.write_block(i, self.height() - 2 * BLOCK_SIZE, Color::DarkGreen);
        }
        for i in BLOCK_SIZE..self.height() - 2 * BLOCK_SIZE {
            self.write_block(BLOCK_SIZE, i, Color::DarkGreen);
            self.write_block(self.width() - 2 * BLOCK_SIZE, i, Color::DarkGreen);
        }
    }
pub fn draw_borders ( & mut self ) { for i in BLOCK_SIZE .. self . width ( ) - 2 * BLOCK_SIZE { self . write_block ( i , BLOCK_SIZE , Color :: DarkGreen ) ; self . write_block ( i , self . height ( ) - 2 * BLOCK_SIZE , Color :: DarkGreen ) ; } for i in BLOCK_SIZE .. self . height ( ) - 2 * BLOCK_SIZE { self . write_block ( BLOCK_SIZE , i , Color :: DarkGreen ) ; self . write_block ( self . width ( ) - 2 * BLOCK_SIZE , i , Color :: DarkGreen ) ; } }
draw_border draws a border around the screen with a one block padding
draw_border draws a border around the screen with a one block padding
&mut self
&mut self