Get array of mesh colors.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arrayFuncs |
THREE.Vector4 | THREE.Vector3 | THREE.Vector2 | object | array | points.geometry.attributes.position array
THREE.Vector4: 4D point. THREE.Vector3: 3D point. w = 1. Default is white color THREE.Vector2: 2D point. w = 1, z = 0. Default is white color Vector's x, y, z, w is position of the point. Can be as: float - position of the point. [float] - array of positions of the point. Function - position of the point is function of the t. Example: new Function( 't', 'a', 'b', 'return Math.sin(t*a*2*Math.PI)*0.5+b' ) Vector.w is index of the palette. Default range of the Vector.w is from 0 to 1. You can change range by use an object: { func: Vector.w max: new max value of tne Vector.w min: new min value of tne Vector.w } Example: { func: new Function( 't', 'return 1-2*t' ), min: -1, max: 1, } Vector.w can be as THREE.Color. Example: new THREE.Color( "rgb(255, 127, 0)" ) object: { vector: THREE.Vector4|THREE.Vector3|THREE.Vector2 - point position [name]: point name. Default is undefined. [trace]: true - displays the trace of the point movement. Default is undefined. } or object: { x: x axis. Defauilt is 0. y: y axis. Defauilt is 0. z: z axis. Defauilt is 0. w: w axis. Defauilt is 0. } array: [ 0: x axis. Defauilt is 0. 1: y axis. Defauilt is 0. 2: z axis. Defauilt is 0. 3: w axis. Defauilt is 0. ] |
||||||||||||||||||||||||||
optionsColor |
object |
<optional> |
the following options are available:
Properties
|
Returns:
array of mesh colors.