Methods
Optional atomColor
-
Parameters
Returns number
atomColorToArray
- atomColorToArray(atom: AtomProxy, array: NumberArray, offset: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
-
Parameters
Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
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): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
-
Parameters
-
-
fromTo: boolean
-
-
offset: number
Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
the destination array
colorToArray
- colorToArray(color: number, array?: NumberArray, offset?: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
-
Parameters
-
color: number
-
Default value array: NumberArray = []
-
Default value offset: number = 0
Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
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): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
-
Parameters
-
coords: Vector3
-
-
offset: number
Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
the destination array
Optional volumeColor
- volumeColor(index: number): number
-
Parameters
Returns number
volumeColorToArray
- volumeColorToArray(index: number, array: NumberArray, offset: number): Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
-
Parameters
-
index: number
-
-
offset: number
Returns Uint8Array | Int8Array | Int16Array | Int32Array | Uint16Array | Uint32Array | Float32Array | Uint8ClampedArray | Float64Array | number[]
the destination array
Class for making colors.