def __init__(self, width, height, font=FONT, palette=PALETTE): self.width = width self.height = height self.font = font self.palette = palette self.buffer = bytearray(width * height) self.layer = _stage.Text(width, height, self.font, self.palette, self.buffer) self.row = width - 1 self.column = 0
def __init__(self, width, height, font=None, palette=None, buffer=None): self.width = width self.height = height self.font = font or FONT self.palette = palette or PALETTE self.buffer = buffer or bytearray(width * height) self.layer = _stage.Text(width, height, self.font, self.palette, self.buffer) self.column = 0 self.row = 0 self.x = 0 self.y = 0 self.z = 0