iterami/Docs.htm/common HTM Projects/webgl.js/webgl_primitive_ellipsoid(args)
- Creates a ellipsoid primitive with specified properties.
- Additional default args are handled by webgl_prefab_args(args).
- Translation is the center of the ellipsoid.
- If the "color0" or "color1" arg arrays are empty then a random color will be used.
color0
| []
| array of numbers
|
color1
| []
| array of numbers
|
radius-x
| 5
| number
|
radius-y
| 5
| number
|
radius-z
| 5
| number
|
slices-latitude
| 10
| number
|
slices-longitude
| 10
| number
|