three-lut
@daron1337's THREE.Lut as an npm package
Install
npm install --save three three-lut
Usage
const THREE = // required peer dependency const colors = 16const mode = 'rainbow' const lookupTable = mode colorslookupTable/** * => { * "r": 1, * "g": 0.3125000000000001, * "b": 0 * } */
Versioning
This package uses an unusual versioning system to better support ThreeJS's (lack of) versioning. The major version of this repo will line up with ThreeJS breaking releases (69.0.0 => r69). Often the module will continue to work (i.e. 69.0.0 should work with r70).
The minor will be reserved for any new features, and patch for bug fixes and documentation/readme updates. In some rare cases, a minor feature may introduce a breaking change; so it's generally safest to use tilde or --save-exact for this module.
If you see any version issues, open a ticket!