Methods
Optional atomColor
-
Parameters
Returns number
atomColorToArray
- atomColorToArray(atom: AtomProxy, array: NumberArray, offset: number): number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
-
Parameters
Returns number[]
|
Uint8Array
|
Int8Array
|
Int16Array
|
Int32Array
|
Uint16Array
|
Uint32Array
|
Float32Array
|
Uint8ClampedArray
|
Float64Array
the destination array
bondColor
- bondColor(bond: BondProxy, fromTo: boolean): number
-
Parameters
Returns number
hex bond color
bondColorToArray
- bondColorToArray(bond: BondProxy, fromTo: boolean, array: NumberArray, offset: number): number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
-
Parameters
-
-
fromTo: boolean
-
-
offset: number
Returns number[]
|
Uint8Array
|
Int8Array
|
Int16Array
|
Int32Array
|
Uint16Array
|
Uint32Array
|
Float32Array
|
Uint8ClampedArray
|
Float64Array
the destination array
colorToArray
- colorToArray(color: number, array?: NumberArray, offset?: number): number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
-
Parameters
-
color: number
-
Default value array: NumberArray = []
-
Default value offset: number = 0
Returns number[]
|
Uint8Array
|
Int8Array
|
Int16Array
|
Int32Array
|
Uint16Array
|
Uint32Array
|
Float32Array
|
Uint8ClampedArray
|
Float64Array
the destination array
getScale
-
Parameters
Returns Scale<any>
Optional positionColor
- positionColor(position: Vector3): number
-
Parameters
Returns number
positionColorToArray
- positionColorToArray(coords: Vector3, array: NumberArray, offset: number): number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
-
Parameters
-
coords: Vector3
-
-
offset: number
Returns number[]
|
Uint8Array
|
Int8Array
|
Int16Array
|
Int32Array
|
Uint16Array
|
Uint32Array
|
Float32Array
|
Uint8ClampedArray
|
Float64Array
the destination array
Optional volumeColor
- volumeColor(index: number): number
-
Parameters
Returns number
volumeColorToArray
- volumeColorToArray(index: number, array: NumberArray, offset: number): number[] | Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array
-
Parameters
-
index: number
-
-
offset: number
Returns number[]
|
Uint8Array
|
Int8Array
|
Int16Array
|
Int32Array
|
Uint16Array
|
Uint32Array
|
Float32Array
|
Uint8ClampedArray
|
Float64Array
the destination array
Class for making colors.