pub fn clear(&mut self) {
        for i in 0..self.width * self.height * 4 {
            self.buffer[i] = 0x00;
        }
    }
/// Clears the entire canvas buffer by zeroing it
Clears the entire canvas buffer by zeroing it
Clears the entire canvas buffer by zeroing it
pub fn clear(&mut self) {
        for i in 0..self.width * self.height * 4 {
            self.buffer[i] = 0x00;
        }
    }
pub fn clear ( & mut self ) { for i in 0 .. self . width * self . height * 4 { self . buffer [ i ] = 0x00 ; } }
Clears the entire canvas buffer by zeroing it
Clears the entire canvas buffer by zeroing it
&mut self
&mut self