three-lut

    79.0.2 • Public • Published

    three-lut

    @daron1337's THREE.Lut as an npm package

    Install

    npm install --save three three-lut

    Usage

    const THREE = require('three') // required peer dependency
    require('three-lut')
     
    const colors = 16
    const mode = 'rainbow'
     
    const lookupTable = new THREE.Lut(mode, colors)
    lookupTable.getColor(1.7)
    /**
     * => {
     *   "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!

    Install

    npm i three-lut

    DownloadsWeekly Downloads

    21

    Version

    79.0.2

    License

    ISC

    Unpacked Size

    16.9 kB

    Total Files

    3

    Last publish

    Collaborators

    • whoaa