end_camera()

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

Examples

example picture for end_camera()
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 Java method: endCamera

Syntax

end_camera() -> None

Updated on September 11, 2021 16:51:34pm UTC