Options for graphics objects are specified as JavaScript dictionaries. Unless specified otherwise, common default options are
color | azure blue |
opacity | 1 |
Additional object-specific options are listed below each.
arrow( begin, end, options ) — two-dimensional arrow from beginning to end
box( width, depth, height, options ) — box of specified dimensions centered at the origin
center | vector position, default [0,0,0] |
cylinder( radius, height, options ) — cylinder of specified dimensions
axis | arbitrary vector direction, default [0,0,1] |
center | vector position, default [0,0,0] |
openEnded | Boolean to draw cylinder ends, default true
|
steps | integer determining surface smoothness, default 20 |
line( points, options ) — two- or three-dimensional line joining an array of points
endcaps | Boolean to include spheres to smooth joints, default false
|
radius | float for drawing the line as an extended cylinder |
point( point, options ) — two- or three-dimensional point
size | 1 |
sphere( radius, options ) — sphere of specified radius
center | vector position, default [0,0,0] |
steps | integer determining surface smoothness, default 20 |
text( string, point, options ) — string of text at the two- or three-dimensional point
color | black |
fontSize | 14 |