docs: def _rotate_context(context, direction):
          """Moves the current position to 'position' and rotates the context according to 'direction'
  
          :param context: Cairo context
          :param direction: Direction enum
          """
          if direction is Direction.UP:
              pass
          elif direction is Direction.RIGHT:
              context.rotate(deg2rad(90))
          elif direction is Direction.DOWN:
              context.rotate(deg2rad(180))
          elif direction is Direction.LEFT:
              context.rotate(deg2rad(-90))