def rotate(self, degrees): # Cairo uses radians, let's be more convenient. self.ctx.rotate(degrees * math.pi / 180)