Skip to content

Function: orthoFrustum() ​

ts
function orthoFrustum(rect, area): object;

Experimental

Orthographic frustum for a 2D viewport whose world origin is the bottom-left of rect (1 unit = 1 CSS px) while GL draws into area (both top-left-origin container rects).

Parameters ​

ParameterType
rectReadonly<ViewportRect>
areaReadonly<ViewportRect>

Returns ​

object

NameType
bottomnumber
leftnumber
rightnumber
topnumber

Released under the MIT License.