public rotate(angle as Double) as Void:
Applies a rotation in radians to the current transform.
painter.rotate(Math.PI / 4.0)