class Viewport
Creates a Viewport object located at (x, y) and sized (width, height).
Name | Type | Description | |
---|---|---|---|
x | number | ||
y | number | ||
width | number |
Name | Type | Description | |
---|---|---|---|
renderWidthOrEngine | number or Engine | ||
renderHeight | number |
Returns a new Viewport copied from the current one.