a port of the Processing Visualization Language
Name

frustum()

Examples
example pic
size(100, 100, P3D);
noFill();
background(204);
frustum(-width/2, width, 0, height, -100, 200.0);
rotateY(PI/6);
box(45);
Description

Sets a perspective matrix defined through the parameters. Works like glFrustum, except it wipes out the current perspective matrix rather than muliplying itself with it.

Syntax
frustum(left, right, bottom,top, near, far)
Parameters
left float: left coordinate of the clipping plane
right float: right coordinate of the clipping plane
bottom float: bottom coordinate of the clipping plane
top float: top coordinate of the clipping plane
near float: near coordinate of the clipping plane
far float: far coordinate of the clipping plane
Returns None
Usage Web & Application
Related camera()
beginCamera()
endCamera()
perspective()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub