iterami/Docs.htm/common HTM Repos/webgl.js/webgl_primitive_ellipsoid(args)
- Creates a ellipsoid primitive with specified properties.
- Additional default args are handled by webgl_prefab_args(args).
- Position is the center of the ellipsoid.
- If "color_top0" or "color_top1" args are undefined or empty arrays then a random color will be generated.
- If "color_bottom0" or "color_bottom1" args are undefined or empty arrays then they will use the top color values.
| character
| webgl_character_base
| string ID
|
| color_bottom0
| []
| array of numbers
|
| color_bottom1
| []
| array of numbers
|
| color_top0
| []
| array of numbers
|
| color_top1
| []
| array of numbers
|
| groups
| []
| array of strings
|
| prefix
| entity_id_count
| string ID
|
| radius_x
| 5
| number
|
| radius_y
| 5
| number
|
| radius_z
| 5
| number
|
| slices_latitude
| 10
| number
|
| slices_longitude
| 10
| number
|