NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import VolumeColormaker from 'ngl/src/color/volume-colormaker.js'
public class | source

VolumeColormaker

Extends:

Colormaker → VolumeColormaker

Color by volume position

Constructor Summary

Public Constructor
public

Method Summary

Public Methods
public

return the color for coordinates in space

Inherited Summary

From class Colormaker
public
public
public
public
public
public
public
public
public
public

safe a atom color to an array

public

bondColor(bond: BondProxy, fromTo: Boolean): Integer

return the color for an bond

public

bondColorToArray(bond: BondProxy, fromTo: Boolean, array: Array | TypedArray, offset: Integer): Array

safe a bond color to an array

public

colorToArray(color: Integer, array: Array | TypedArray, offset: Integer): Array

safe a color to an array

public
public

positionColorToArray(coords: Vector3, array: Array | TypedArray, offset: Integer): Array

safe a color for coordinates in space to an array

public

volumeColorToArray(index: Integer, array: Array | TypedArray, offset: Integer): Array

safe a volume cell color to an array

Public Constructors

public constructor() source

Create a colormaker instance

Override:

Colormaker#constructor

Public Methods

public positionColor(coords: Vector3): Integer source

return the color for coordinates in space

Params:

NameTypeAttributeDescription
coords Vector3

xyz coordinates

Return:

Integer

hex coords color