Reference panorama()

panorama()

Creates an immersive 3D background.

panorama() transforms images containing 360˚ content, such as maps or HDRIs, into immersive 3D backgrounds that surround a sketch. Exploring the space requires changing the camera's perspective with functions such as orbitControl() or camera().

Examples

Syntax

panorama(img)

Parameters

img
p5.Image: 360˚ image to use as the background.

Related References