.. py:module:: geom The function window_viewport_transform ====================================== .. py:function:: window_viewport_transform(window, width, height) Returns a tuple (sx, sy, tx, ty) that represents the geometric transform needed to transform points of the window into pixels of a viewport of the given width and geight. :param Box window: window :param int width: width of the viewport :param int height: height of the viewport :return: the tuple (sx, sy, tx, ty) You can download the module :download:`geom.py `.