import PartialchargeColormaker from 'ngl/src/color/partialcharge-colormaker.js'PartialchargeColormaker
Extends:
Color by partial charge. The AtomProxy.partialCharge property is used for coloring. The default domain is [-1, 1].
Name: partialCharge
Example:
stage.loadFile("rcsb://1crn").then(function (o) {
o.addRepresentation("ball+stick", {colorScheme: "partialCharge"});
o.autoView();
});
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
Method Summary
| Public Methods | ||
| public |
|
|
Inherited Summary
| From class Colormaker | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
atomColorToArray(atom: AtomProxy, array: Array | TypedArray, offset: Integer): Array safe a atom color to an array |
|
| public |
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 |
getScale() |
|
| 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 |
|
