(self, pattern)
return bytematrix.ByteMatrix.frompacked(
            pattern, height=len(pattern), items_per_byte=8//self._bitsperpixel
        )
Build a flood-fill tile for CGA screens.
Build a flood-fill tile for CGA screens.
Build a flood - fill tile for CGA screens .
def __call__(self, pattern):
        """Build a flood-fill tile for CGA screens."""
        # in modes 1, (2), 3, 4, 5, 6 colours are encoded in consecutive bits
        # each byte represents one scan line
        return bytematrix.ByteMatrix.frompacked(
            pattern, height=len(pattern), items_per_byte=8//self._bitsperpixel
        )
def __call__ ( self , pattern ) : # in modes 1, (2), 3, 4, 5, 6 colours are encoded in consecutive bits # each byte represents one scan line return bytematrix . ByteMatrix . frompacked ( pattern , height = len ( pattern ) , items_per_byte = 8 // self . _bitsperpixel )