Translate the origin to this point.
(self, x=0, y=0)
| 731 | self.b.transform(matrix, center=center) |
| 732 | |
| 733 | def translate(self, x=0, y=0): |
| 734 | """Translate the origin to this point.""" |
| 735 | xpt, ypt = point2D(upt(x, y)) |
| 736 | self.b.translate(xpt, ypt) |
| 737 | |
| 738 | def rotate(self, angle, center=None): |
| 739 | """Rotate the canvas by angle. If angle is not a units.Angle instance, |