Options for graphics objects are specified as JavaScript dictionaries. Unless specified otherwise, common default options are

colorazure blue
opacity1

Additional object-specific options are listed below each.


arrow( begin, end, options ) — two- or three-dimensional arrow from beginning to end

size1

box( width, depth, height, options ) — box of specified dimensions centered at the origin

axisarbitrary vector direction, default [0,0,1]
centervector position, default [0,0,0]

cone( radius, height, options ) — cone of specified dimensions

axisarbitrary vector direction, default [0,0,1]
centervector position, default [0,0,0]
stepsinteger determining surface smoothness, default 20

cylinder( radius, height, options ) — cylinder of specified dimensions

axisarbitrary vector direction, default [0,0,1]
centervector position, default [0,0,0]
openEndedBoolean to draw cylinder ends, default true
stepsinteger determining surface smoothness, default 20

ellipsoid( a, b, c, options ) — ellipsoid of specified parameters

axisarbitrary vector direction, default [0,0,1]
centervector position, default [0,0,0]
stepsinteger determining surface smoothness, default 20

line( points, options ) — two- or three-dimensional line joining an array of points

endcapsBoolean to include spheres to smooth joints, default false
radiusfloat for drawing the line as an extended cylinder

point( point, options ) — two- or three-dimensional point

size1

sphere( radius, options ) — sphere of specified radius

centervector position, default [0,0,0]
stepsinteger determining surface smoothness, default 20

text( string, point, options ) — string of text at the two- or three-dimensional point

colorblack
fontSize14