end_camera()

end_camera()#

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

Examples#

example picture for end_camera()

def setup():
    py5.size(100, 100, py5.P3D)
    py5.no_fill()

    py5.begin_camera()
    py5.camera()
    py5.rotate_x(-py5.PI/6)
    py5.end_camera()

    py5.translate(50, 50, 0)
    py5.rotate_y(py5.PI/3)
    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

Signatures#

end_camera() -> None

Updated on March 06, 2023 02:49:26am UTC