(self, offset, amount)
Removes `amount` lines from the pixel array starting at line `offset`.
Removes `amount` lines from the pixel array starting at line `offset`.
Removes amount lines from the pixel array starting at line offset .
def remove_lines(self, offset, amount):
        """
        Removes `amount` lines from the pixel array starting at line `offset`.
        """
        if not amount:
            return
        start = self.line_length * offset
        end = start + (amount * self.line_length)
        self.height -= amount
        del self.data[start:end]
        self._precalculate()
def remove_lines ( self , offset , amount ) : if not amount : return start = self . line_length * offset end = start + ( amount * self . line_length ) self . height -= amount del self . data [ start : end ] self . _precalculate ( )