Skip to content

textmode.js / TextmodeCamera

Class: TextmodeCamera

Mutable camera object used for p5-style camera workflows.

Instances can be created with Textmodifier.createCamera and activated with Textmodifier.setCamera. Mutating the object does not affect rendering until it is applied again with setCamera.

Accessors

AccessorDescription
eyeXCurrent X position of the camera eye.
eyeYCurrent Y position of the camera eye.
eyeZCurrent Z position of the camera eye.
targetXCurrent X position of the camera target.
targetYCurrent Y position of the camera target.
targetZCurrent Z position of the camera target.
upXCurrent X component of the camera up vector.
upYCurrent Y component of the camera up vector.
upZCurrent Z component of the camera up vector.

Methods

MethodDescription
copyCreate a copy of this camera.
lookAtSet camera look-at target.
moveMove eye and target together in world space.
setPositionSet camera eye position.
setUpSet camera up vector.