end_camera()#

The begin_camera() and end_camera() methods enable advanced customization of the camera space.

Examples#

example picture for end_camera()
 1def setup():
 2    py5.size(100, 100, py5.P3D)
 3    py5.no_fill()
 4
 5    py5.begin_camera()
 6    py5.camera()
 7    py5.rotate_x(-py5.PI/6)
 8    py5.end_camera()
 9
10    py5.translate(50, 50, 0)
11    py5.rotate_y(py5.PI/3)
12    py5.box(45)

Description#

The begin_camera() and end_camera() methods enable advanced customization of the camera space. Please see the reference for begin_camera() for a description of how the methods are used.

Underlying Processing method: endCamera

Syntax#

end_camera() -> None

Updated on November 12, 2021 11:30:58am UTC