iterami/Docs.htm/common HTM Projects/webgl.js/webgl_primitive_frustum(args)
- Creates a frustum primitive with specified properties.
- Additional default args are handled by webgl_prefab_args(args).
- Translation is the center of the bottom of the frustum.
- If the "color-bottom" or "color-top" arg arrays are empty then a random color will be used.
bottom
| true
| boolean
|
color-bottom
| []
| array of numbers
|
color-top
| []
| array of numbers
|
length
| 2
| number
|
middle
| true
| boolean
|
points
| 8
| number
|
size-bottom
| 2
| number
|
size-top
| 2
| number
|
top
| true
| boolean
|