Viewport constructor

init

Initializes a new instance of the Viewport class with the specified width and height.

def __init__(self, width, height):
    ...
ParameterTypeDescription
widthLengthThe width of the viewport.
heightLengthThe height of the viewport.

See Also