pub(crate) fn palette_add(&mut self, p: SRgba8) -> Result<(), Error> {
        if self.palette.len() >= 256 {
            return Err(Error(38));
        }
        self.palette.push(p);

        Ok(())
    }
/// add 1 color to the palette
add 1 color to the palette
add 1 color to the palette
pub(crate) fn palette_add(&mut self, p: SRgba8) -> Result<(), Error> {
        if self.palette.len() >= 256 {
            return Err(Error(38));
        }
        self.palette.push(p);
        Ok(())
    }
pub ( crate ) fn palette_add ( & mut self , p : SRgba8 ) -> Result < ( ) , Error > { if self . palette . len ( ) >= 256 { return Err ( Error ( 38 ) ) ; } self . palette . push ( p ) ; Ok ( ( ) ) }
add 1 color to the palette
add 1 color to the palette
&mut self
p
SRgba8