def _clear_screen(self, ctx):
    ctx.save()
    ctx.globalCompositeOperation = 'copy'
    ctx.fillStyle = self.color
    ctx.fillRect(0, 0, self.game.canvas.width, self.game.canvas.height)
    ctx.restore()
def _clear_screen(self, ctx):
    ctx.save()
    ctx.globalCompositeOperation = 'copy'
    ctx.fillStyle = self.color
    ctx.fillRect(0, 0, self.game.canvas.width, self.game.canvas.height)
    ctx.restore()