axes([opts])
Draw a 3D coordinate frame — the X, Y and Z axes with their labels — at the
current model origin. Choose the half-axes and labels with bits, the length
with size, and per-axis colours or the ambient stroke with semantic (see the
split-calls example). Needs a WEBGL canvas.
| Parameter | Type | Default | Description |
|---|---|---|---|
opts optional |
{ size?: number, semantic?: boolean, bits?: number } |
||
opts.size optional |
number |
100 |
Axis length. |
opts.semantic optional |
boolean |
true |
Semantic per-axis colours. |
opts.bits optional |
number |
LABELS | X | Y | Z |
Which half-axes and labels to draw. |
Returns p5 this