pub fn write_block(&mut self, x: usize, y: usize, color: Color) {
        for i in 0..BLOCK_SIZE {
            for j in 0..BLOCK_SIZE {
                self.write_pixel(x + i, y + j, color);
            }
        }
    }
// write_block draws a square block of the specified color at the specified
write_block draws a square block of the specified color at the specified
write_block draws a square block of the specified color at the specified
pub fn write_block(&mut self, x: usize, y: usize, color: Color) {
        for i in 0..BLOCK_SIZE {
            for j in 0..BLOCK_SIZE {
                self.write_pixel(x + i, y + j, color);
            }
        }
    }
pub fn write_block ( & mut self , x : usize , y : usize , color : Color ) { for i in 0 .. BLOCK_SIZE { for j in 0 .. BLOCK_SIZE { self . write_pixel ( x + i , y + j , color ) ; } } }
write_block draws a square block of the specified color at the specified
write_block draws a square block of the specified color at the specified
&mut self
x
usize
y
usize
color
Color
&mut self
x
usize
y
usize
color
Color