zoomBy()

Changes the camera view angle relative to the camera's current view angle. A value of 180.0 corresponds to quite a strong fish eye, a value of 45.0 to a relatively normal, distortion-free perspective.

<camera>.zoomBy(deg)
  • deg ... degrees to add to the camera view angle

Relevant examples: camera_all.py , ALL

In Context

def onSetup(self):
    self.camera.zoomBy(45.0)
Initiated by Stephan Hechenberger
Thanks to CADRE's 103