ortho()

Lights Camera / Camera

Description

Sets an orthographic projection, where objects appear flat and no foreshortening occurs.

Syntax

void ortho() void ortho(float left, float right, float bottom, float top, float near, float far)

Parameters

NameTypeDescription
leftfloatleft clipping plane
rightfloatright clipping plane
bottomfloatbottom clipping plane
topfloattop clipping plane
nearfloatnear clipping plane
farfloatfar clipping plane

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...