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
| Accessor | Description |
|---|---|
| eyeX | Current X position of the camera eye. |
| eyeY | Current Y position of the camera eye. |
| eyeZ | Current Z position of the camera eye. |
| targetX | Current X position of the camera target. |
| targetY | Current Y position of the camera target. |
| targetZ | Current Z position of the camera target. |
| upX | Current X component of the camera up vector. |
| upY | Current Y component of the camera up vector. |
| upZ | Current Z component of the camera up vector. |
Methods
| Method | Description |
|---|---|
| copy | Create a copy of this camera. |
| lookAt | Set camera look-at target. |
| move | Move eye and target together in world space. |
| setPosition | Set camera eye position. |
| setUp | Set camera up vector. |