pub fn clear(&mut self, background: Color) {
        let size = self.buffer.size();
        let tile = Tile {
            colors: Color2 { background, ..Color2::default() },
            grapheme: TermGrapheme::space(),
        };

        for y in 0 .. size.y {
            for x in 0 .. size.x {
                self.set(Vec2 { x, y }, tile.clone());
            }
        }
    }
/// Sets every [`Tile`] into a whitespace grapheme with the given color.
Sets every [`Tile`] into a whitespace grapheme with the given color.
Sets every [ ` Tile ` ] into a whitespace grapheme with the given color .
pub fn clear(&mut self, background: Color) {
        let size = self.buffer.size();
        let tile = Tile {
            colors: Color2 { background, ..Color2::default() },
            grapheme: TermGrapheme::space(),
        };
        for y in 0 .. size.y {
            for x in 0 .. size.x {
                self.set(Vec2 { x, y }, tile.clone());
            }
        }
    }
pub fn clear ( & mut self , background : Color ) { let size = self . buffer . size ( ) ; let tile = Tile { colors : Color2 { background , .. Color2 :: default ( ) } , grapheme : TermGrapheme :: space ( ) , } ; for y in 0 .. size . y { for x in 0 .. size . x { self . set ( Vec2 { x , y } , tile . clone ( ) ) ; } } }
Sets every [`Tile`] into a whitespace grapheme with the given color.
Sets every [ ` Tile ` ] into a whitespace grapheme with the given color .
&mut self
background
Color
&mut self
background
Color