diff --git a/node_modules/colormap/.travis.yml b/node_modules/colormap/.travis.yml new file mode 100644 index 0000000..7aa80be --- /dev/null +++ b/node_modules/colormap/.travis.yml @@ -0,0 +1,4 @@ +language: node_js +node_js: + - "4.0" + - "6.2" diff --git a/node_modules/colormap/README.md b/node_modules/colormap/README.md new file mode 100644 index 0000000..fb5ef5e --- /dev/null +++ b/node_modules/colormap/README.md @@ -0,0 +1,34 @@ +# colormap [![Build Status](https://travis-ci.org/bpostlethwaite/colormap.png)](https://travis-ci.org/bpostlethwaite/colormap) + +![all colormap output](./colormaps.png) + +## Usage + +[![npm install colormap](https://nodei.co/npm/colormap.png?mini=true)](https://npmjs.org/package/colormap/) + +```js +let colormap = require('colormap') + +let colors = colormap({ + colormap: 'jet', + nshades: 10, + format: 'hex', + alpha: 1 +}) +``` + +## API + +### list = colormap(options?) + +Property | Default | Meaning +---|---|--- +`colormap` | `'jet'` | Color map name from the image above or a custom color scale — a sequence of `{index, rgb}` objects, where index is `0..1` number and `rgb` is a length 3/4 array with values for the color stop. +`nshades` | `72` | Number of colors in returned array, the minimum number depends on `colormap`. +`format` | `'hex'` | `'hex'` for `#aabbcc`, `'rgbaString'` for `rgba(255, 255, 255, 1)`, `'rba'` for `[255, 255, 255, 1]`, `'float'` for `[1, 1, 1, 1]`. +`alpha` | `1` | Alpha range, can be an array with alpha values or just 2 values for start/end colors. | + + +## Credits + +Color maps are inspired by [matplotlib](https://github.com/d3/d3-scale#sequential-color-scales) color scales, [cmocean](https://github.com/matplotlib/cmocean) oceanographic colormaps, [cosine gradients](https://github.com/thi-ng/color/blob/master/src/gradients.org) and others. Thanks to authors of these libs for their invaluable work. diff --git a/node_modules/colormap/colorScale.js b/node_modules/colormap/colorScale.js new file mode 100644 index 0000000..b36e90f --- /dev/null +++ b/node_modules/colormap/colorScale.js @@ -0,0 +1,89 @@ +module.exports={ + "jet":[{"index":0,"rgb":[0,0,131]},{"index":0.125,"rgb":[0,60,170]},{"index":0.375,"rgb":[5,255,255]},{"index":0.625,"rgb":[255,255,0]},{"index":0.875,"rgb":[250,0,0]},{"index":1,"rgb":[128,0,0]}], + + "hsv":[{"index":0,"rgb":[255,0,0]},{"index":0.169,"rgb":[253,255,2]},{"index":0.173,"rgb":[247,255,2]},{"index":0.337,"rgb":[0,252,4]},{"index":0.341,"rgb":[0,252,10]},{"index":0.506,"rgb":[1,249,255]},{"index":0.671,"rgb":[2,0,253]},{"index":0.675,"rgb":[8,0,253]},{"index":0.839,"rgb":[255,0,251]},{"index":0.843,"rgb":[255,0,245]},{"index":1,"rgb":[255,0,6]}], + + "hot":[{"index":0,"rgb":[0,0,0]},{"index":0.3,"rgb":[230,0,0]},{"index":0.6,"rgb":[255,210,0]},{"index":1,"rgb":[255,255,255]}], + + "spring":[{"index":0,"rgb":[255,0,255]},{"index":1,"rgb":[255,255,0]}], + + "summer":[{"index":0,"rgb":[0,128,102]},{"index":1,"rgb":[255,255,102]}], + + "autumn":[{"index":0,"rgb":[255,0,0]},{"index":1,"rgb":[255,255,0]}], + + "winter":[{"index":0,"rgb":[0,0,255]},{"index":1,"rgb":[0,255,128]}], + + "bone":[{"index":0,"rgb":[0,0,0]},{"index":0.376,"rgb":[84,84,116]},{"index":0.753,"rgb":[169,200,200]},{"index":1,"rgb":[255,255,255]}], + + "copper":[{"index":0,"rgb":[0,0,0]},{"index":0.804,"rgb":[255,160,102]},{"index":1,"rgb":[255,199,127]}], + + "greys":[{"index":0,"rgb":[0,0,0]},{"index":1,"rgb":[255,255,255]}], + + "yignbu":[{"index":0,"rgb":[8,29,88]},{"index":0.125,"rgb":[37,52,148]},{"index":0.25,"rgb":[34,94,168]},{"index":0.375,"rgb":[29,145,192]},{"index":0.5,"rgb":[65,182,196]},{"index":0.625,"rgb":[127,205,187]},{"index":0.75,"rgb":[199,233,180]},{"index":0.875,"rgb":[237,248,217]},{"index":1,"rgb":[255,255,217]}], + + "greens":[{"index":0,"rgb":[0,68,27]},{"index":0.125,"rgb":[0,109,44]},{"index":0.25,"rgb":[35,139,69]},{"index":0.375,"rgb":[65,171,93]},{"index":0.5,"rgb":[116,196,118]},{"index":0.625,"rgb":[161,217,155]},{"index":0.75,"rgb":[199,233,192]},{"index":0.875,"rgb":[229,245,224]},{"index":1,"rgb":[247,252,245]}], + + "yiorrd":[{"index":0,"rgb":[128,0,38]},{"index":0.125,"rgb":[189,0,38]},{"index":0.25,"rgb":[227,26,28]},{"index":0.375,"rgb":[252,78,42]},{"index":0.5,"rgb":[253,141,60]},{"index":0.625,"rgb":[254,178,76]},{"index":0.75,"rgb":[254,217,118]},{"index":0.875,"rgb":[255,237,160]},{"index":1,"rgb":[255,255,204]}], + + "bluered":[{"index":0,"rgb":[0,0,255]},{"index":1,"rgb":[255,0,0]}], + + "rdbu":[{"index":0,"rgb":[5,10,172]},{"index":0.35,"rgb":[106,137,247]},{"index":0.5,"rgb":[190,190,190]},{"index":0.6,"rgb":[220,170,132]},{"index":0.7,"rgb":[230,145,90]},{"index":1,"rgb":[178,10,28]}], + + "picnic":[{"index":0,"rgb":[0,0,255]},{"index":0.1,"rgb":[51,153,255]},{"index":0.2,"rgb":[102,204,255]},{"index":0.3,"rgb":[153,204,255]},{"index":0.4,"rgb":[204,204,255]},{"index":0.5,"rgb":[255,255,255]},{"index":0.6,"rgb":[255,204,255]},{"index":0.7,"rgb":[255,153,255]},{"index":0.8,"rgb":[255,102,204]},{"index":0.9,"rgb":[255,102,102]},{"index":1,"rgb":[255,0,0]}], + + "rainbow":[{"index":0,"rgb":[150,0,90]},{"index":0.125,"rgb":[0,0,200]},{"index":0.25,"rgb":[0,25,255]},{"index":0.375,"rgb":[0,152,255]},{"index":0.5,"rgb":[44,255,150]},{"index":0.625,"rgb":[151,255,0]},{"index":0.75,"rgb":[255,234,0]},{"index":0.875,"rgb":[255,111,0]},{"index":1,"rgb":[255,0,0]}], + + "portland":[{"index":0,"rgb":[12,51,131]},{"index":0.25,"rgb":[10,136,186]},{"index":0.5,"rgb":[242,211,56]},{"index":0.75,"rgb":[242,143,56]},{"index":1,"rgb":[217,30,30]}], + + "blackbody":[{"index":0,"rgb":[0,0,0]},{"index":0.2,"rgb":[230,0,0]},{"index":0.4,"rgb":[230,210,0]},{"index":0.7,"rgb":[255,255,255]},{"index":1,"rgb":[160,200,255]}], + + "earth":[{"index":0,"rgb":[0,0,130]},{"index":0.1,"rgb":[0,180,180]},{"index":0.2,"rgb":[40,210,40]},{"index":0.4,"rgb":[230,230,50]},{"index":0.6,"rgb":[120,70,20]},{"index":1,"rgb":[255,255,255]}], + + "electric":[{"index":0,"rgb":[0,0,0]},{"index":0.15,"rgb":[30,0,100]},{"index":0.4,"rgb":[120,0,100]},{"index":0.6,"rgb":[160,90,0]},{"index":0.8,"rgb":[230,200,0]},{"index":1,"rgb":[255,250,220]}], + + "alpha": [{"index":0, "rgb": [255,255,255,0]},{"index":1, "rgb": [255,255,255,1]}], + + "viridis": [{"index":0,"rgb":[68,1,84]},{"index":0.13,"rgb":[71,44,122]},{"index":0.25,"rgb":[59,81,139]},{"index":0.38,"rgb":[44,113,142]},{"index":0.5,"rgb":[33,144,141]},{"index":0.63,"rgb":[39,173,129]},{"index":0.75,"rgb":[92,200,99]},{"index":0.88,"rgb":[170,220,50]},{"index":1,"rgb":[253,231,37]}], + + "inferno": [{"index":0,"rgb":[0,0,4]},{"index":0.13,"rgb":[31,12,72]},{"index":0.25,"rgb":[85,15,109]},{"index":0.38,"rgb":[136,34,106]},{"index":0.5,"rgb":[186,54,85]},{"index":0.63,"rgb":[227,89,51]},{"index":0.75,"rgb":[249,140,10]},{"index":0.88,"rgb":[249,201,50]},{"index":1,"rgb":[252,255,164]}], + + "magma": [{"index":0,"rgb":[0,0,4]},{"index":0.13,"rgb":[28,16,68]},{"index":0.25,"rgb":[79,18,123]},{"index":0.38,"rgb":[129,37,129]},{"index":0.5,"rgb":[181,54,122]},{"index":0.63,"rgb":[229,80,100]},{"index":0.75,"rgb":[251,135,97]},{"index":0.88,"rgb":[254,194,135]},{"index":1,"rgb":[252,253,191]}], + + "plasma": [{"index":0,"rgb":[13,8,135]},{"index":0.13,"rgb":[75,3,161]},{"index":0.25,"rgb":[125,3,168]},{"index":0.38,"rgb":[168,34,150]},{"index":0.5,"rgb":[203,70,121]},{"index":0.63,"rgb":[229,107,93]},{"index":0.75,"rgb":[248,148,65]},{"index":0.88,"rgb":[253,195,40]},{"index":1,"rgb":[240,249,33]}], + + "warm": [{"index":0,"rgb":[125,0,179]},{"index":0.13,"rgb":[172,0,187]},{"index":0.25,"rgb":[219,0,170]},{"index":0.38,"rgb":[255,0,130]},{"index":0.5,"rgb":[255,63,74]},{"index":0.63,"rgb":[255,123,0]},{"index":0.75,"rgb":[234,176,0]},{"index":0.88,"rgb":[190,228,0]},{"index":1,"rgb":[147,255,0]}], + + "cool": [{"index":0,"rgb":[125,0,179]},{"index":0.13,"rgb":[116,0,218]},{"index":0.25,"rgb":[98,74,237]},{"index":0.38,"rgb":[68,146,231]},{"index":0.5,"rgb":[0,204,197]},{"index":0.63,"rgb":[0,247,146]},{"index":0.75,"rgb":[0,255,88]},{"index":0.88,"rgb":[40,255,8]},{"index":1,"rgb":[147,255,0]}], + + "rainbow-soft": [{"index":0,"rgb":[125,0,179]},{"index":0.1,"rgb":[199,0,180]},{"index":0.2,"rgb":[255,0,121]},{"index":0.3,"rgb":[255,108,0]},{"index":0.4,"rgb":[222,194,0]},{"index":0.5,"rgb":[150,255,0]},{"index":0.6,"rgb":[0,255,55]},{"index":0.7,"rgb":[0,246,150]},{"index":0.8,"rgb":[50,167,222]},{"index":0.9,"rgb":[103,51,235]},{"index":1,"rgb":[124,0,186]}], + + "bathymetry": [{"index":0,"rgb":[40,26,44]},{"index":0.13,"rgb":[59,49,90]},{"index":0.25,"rgb":[64,76,139]},{"index":0.38,"rgb":[63,110,151]},{"index":0.5,"rgb":[72,142,158]},{"index":0.63,"rgb":[85,174,163]},{"index":0.75,"rgb":[120,206,163]},{"index":0.88,"rgb":[187,230,172]},{"index":1,"rgb":[253,254,204]}], + + "cdom": [{"index":0,"rgb":[47,15,62]},{"index":0.13,"rgb":[87,23,86]},{"index":0.25,"rgb":[130,28,99]},{"index":0.38,"rgb":[171,41,96]},{"index":0.5,"rgb":[206,67,86]},{"index":0.63,"rgb":[230,106,84]},{"index":0.75,"rgb":[242,149,103]},{"index":0.88,"rgb":[249,193,135]},{"index":1,"rgb":[254,237,176]}], + + "chlorophyll": [{"index":0,"rgb":[18,36,20]},{"index":0.13,"rgb":[25,63,41]},{"index":0.25,"rgb":[24,91,59]},{"index":0.38,"rgb":[13,119,72]},{"index":0.5,"rgb":[18,148,80]},{"index":0.63,"rgb":[80,173,89]},{"index":0.75,"rgb":[132,196,122]},{"index":0.88,"rgb":[175,221,162]},{"index":1,"rgb":[215,249,208]}], + + "density": [{"index":0,"rgb":[54,14,36]},{"index":0.13,"rgb":[89,23,80]},{"index":0.25,"rgb":[110,45,132]},{"index":0.38,"rgb":[120,77,178]},{"index":0.5,"rgb":[120,113,213]},{"index":0.63,"rgb":[115,151,228]},{"index":0.75,"rgb":[134,185,227]},{"index":0.88,"rgb":[177,214,227]},{"index":1,"rgb":[230,241,241]}], + + "freesurface-blue": [{"index":0,"rgb":[30,4,110]},{"index":0.13,"rgb":[47,14,176]},{"index":0.25,"rgb":[41,45,236]},{"index":0.38,"rgb":[25,99,212]},{"index":0.5,"rgb":[68,131,200]},{"index":0.63,"rgb":[114,156,197]},{"index":0.75,"rgb":[157,181,203]},{"index":0.88,"rgb":[200,208,216]},{"index":1,"rgb":[241,237,236]}], + + "freesurface-red": [{"index":0,"rgb":[60,9,18]},{"index":0.13,"rgb":[100,17,27]},{"index":0.25,"rgb":[142,20,29]},{"index":0.38,"rgb":[177,43,27]},{"index":0.5,"rgb":[192,87,63]},{"index":0.63,"rgb":[205,125,105]},{"index":0.75,"rgb":[216,162,148]},{"index":0.88,"rgb":[227,199,193]},{"index":1,"rgb":[241,237,236]}], + + "oxygen": [{"index":0,"rgb":[64,5,5]},{"index":0.13,"rgb":[106,6,15]},{"index":0.25,"rgb":[144,26,7]},{"index":0.38,"rgb":[168,64,3]},{"index":0.5,"rgb":[188,100,4]},{"index":0.63,"rgb":[206,136,11]},{"index":0.75,"rgb":[220,174,25]},{"index":0.88,"rgb":[231,215,44]},{"index":1,"rgb":[248,254,105]}], + + "par": [{"index":0,"rgb":[51,20,24]},{"index":0.13,"rgb":[90,32,35]},{"index":0.25,"rgb":[129,44,34]},{"index":0.38,"rgb":[159,68,25]},{"index":0.5,"rgb":[182,99,19]},{"index":0.63,"rgb":[199,134,22]},{"index":0.75,"rgb":[212,171,35]},{"index":0.88,"rgb":[221,210,54]},{"index":1,"rgb":[225,253,75]}], + + "phase": [{"index":0,"rgb":[145,105,18]},{"index":0.13,"rgb":[184,71,38]},{"index":0.25,"rgb":[186,58,115]},{"index":0.38,"rgb":[160,71,185]},{"index":0.5,"rgb":[110,97,218]},{"index":0.63,"rgb":[50,123,164]},{"index":0.75,"rgb":[31,131,110]},{"index":0.88,"rgb":[77,129,34]},{"index":1,"rgb":[145,105,18]}], + + "salinity": [{"index":0,"rgb":[42,24,108]},{"index":0.13,"rgb":[33,50,162]},{"index":0.25,"rgb":[15,90,145]},{"index":0.38,"rgb":[40,118,137]},{"index":0.5,"rgb":[59,146,135]},{"index":0.63,"rgb":[79,175,126]},{"index":0.75,"rgb":[120,203,104]},{"index":0.88,"rgb":[193,221,100]},{"index":1,"rgb":[253,239,154]}], + + "temperature": [{"index":0,"rgb":[4,35,51]},{"index":0.13,"rgb":[23,51,122]},{"index":0.25,"rgb":[85,59,157]},{"index":0.38,"rgb":[129,79,143]},{"index":0.5,"rgb":[175,95,130]},{"index":0.63,"rgb":[222,112,101]},{"index":0.75,"rgb":[249,146,66]},{"index":0.88,"rgb":[249,196,65]},{"index":1,"rgb":[232,250,91]}], + + "turbidity": [{"index":0,"rgb":[34,31,27]},{"index":0.13,"rgb":[65,50,41]},{"index":0.25,"rgb":[98,69,52]},{"index":0.38,"rgb":[131,89,57]},{"index":0.5,"rgb":[161,112,59]},{"index":0.63,"rgb":[185,140,66]},{"index":0.75,"rgb":[202,174,88]},{"index":0.88,"rgb":[216,209,126]},{"index":1,"rgb":[233,246,171]}], + + "velocity-blue": [{"index":0,"rgb":[17,32,64]},{"index":0.13,"rgb":[35,52,116]},{"index":0.25,"rgb":[29,81,156]},{"index":0.38,"rgb":[31,113,162]},{"index":0.5,"rgb":[50,144,169]},{"index":0.63,"rgb":[87,173,176]},{"index":0.75,"rgb":[149,196,189]},{"index":0.88,"rgb":[203,221,211]},{"index":1,"rgb":[254,251,230]}], + + "velocity-green": [{"index":0,"rgb":[23,35,19]},{"index":0.13,"rgb":[24,64,38]},{"index":0.25,"rgb":[11,95,45]},{"index":0.38,"rgb":[39,123,35]},{"index":0.5,"rgb":[95,146,12]},{"index":0.63,"rgb":[152,165,18]},{"index":0.75,"rgb":[201,186,69]},{"index":0.88,"rgb":[233,216,137]},{"index":1,"rgb":[255,253,205]}], + + "cubehelix": [{"index":0,"rgb":[0,0,0]},{"index":0.07,"rgb":[22,5,59]},{"index":0.13,"rgb":[60,4,105]},{"index":0.2,"rgb":[109,1,135]},{"index":0.27,"rgb":[161,0,147]},{"index":0.33,"rgb":[210,2,142]},{"index":0.4,"rgb":[251,11,123]},{"index":0.47,"rgb":[255,29,97]},{"index":0.53,"rgb":[255,54,69]},{"index":0.6,"rgb":[255,85,46]},{"index":0.67,"rgb":[255,120,34]},{"index":0.73,"rgb":[255,157,37]},{"index":0.8,"rgb":[241,191,57]},{"index":0.87,"rgb":[224,220,93]},{"index":0.93,"rgb":[218,241,142]},{"index":1,"rgb":[227,253,198]}] +}; diff --git a/node_modules/colormap/colormaps.png b/node_modules/colormap/colormaps.png new file mode 100644 index 0000000..59ce1c2 Binary files /dev/null and b/node_modules/colormap/colormaps.png differ diff --git a/node_modules/colormap/example.js b/node_modules/colormap/example.js new file mode 100644 index 0000000..8fda195 --- /dev/null +++ b/node_modules/colormap/example.js @@ -0,0 +1,69 @@ +var cmap = require('.'), + img = document.body.appendChild(document.createElement('img')), + canvas = document.body.appendChild(document.createElement('canvas')), + c = canvas.getContext('2d'), + n = 48, + colormaps = [ + 'jet', 'hsv','hot','cool','spring','summer','autumn','winter','bone', + 'copper','greys','YIGnBu','greens','YIOrRd','bluered','RdBu','picnic', + 'rainbow','portland','blackbody','earth','electric', + + 'viridis', 'inferno', 'magma', 'plasma', 'warm', 'cool', 'rainbow-soft', + + 'bathymetry', 'cdom', 'chlorophyll', 'density', 'freesurface-blue', 'freesurface-red', 'oxygen', 'par', 'phase', 'salinity', 'temperature', 'turbidity', 'velocity-blue', 'velocity-green', + + 'cubehelix' + ]; + +img.width = 480; +img.onload = run; +img.src = './night.jpg' + +function drawColorMaps (colormap, name, height) { + /* + * Build up the color ranges and add text + */ + for (var j = 0; j < n; j++) { + c.fillStyle = colormap[j]; // start ind at index 0 + c.fillRect(j*10, height, 10, 40); + } + c.fillStyle = '#262626'; + c.font = '16px Helvetica'; + c.fillText( name, n*10 + 10, height + 26); +} + +function run() { + var height, colormap; + c.canvas.height = colormaps.length * 40 + img.height; + c.canvas.width = 648; + + for (var i = 0; i < colormaps.length; i++) { + height = i*40; + colormap = cmap({ + colormap: colormaps[i], + nshades: n, + format: 'rgbaString' + }); + drawColorMaps(colormap, colormaps[i], height); + } + + /* + * Now lets try some alpha maps overtop an image! + */ + var ilast = i; + c.drawImage(img, 0, i*40, 480, 240); + + // remove background img + img.parentElement.removeChild(img); + + for (var i = 0; i < colormaps.length; i++) { + height = (ilast + i)*40; + colormap = cmap({ + colormap: colormaps[i], + nshades: n, + format: 'rgbaString', + alpha: [0, 1] + }); + drawColorMaps(colormap, colormaps[i] + ' with transparency', height); + } +} diff --git a/node_modules/colormap/index.js b/node_modules/colormap/index.js new file mode 100644 index 0000000..fc4accb --- /dev/null +++ b/node_modules/colormap/index.js @@ -0,0 +1,143 @@ +/* + * Ben Postlethwaite + * January 2013 + * License MIT + */ +'use strict'; + +var colorScale = require('./colorScale'); +var lerp = require('lerp') + +module.exports = createColormap; + +function createColormap (spec) { + /* + * Default Options + */ + var indicies, fromrgba, torgba, + nsteps, cmap, colormap, format, + nshades, colors, alpha, i; + + if ( !spec ) spec = {}; + + nshades = (spec.nshades || 72) - 1; + format = spec.format || 'hex'; + + colormap = spec.colormap; + if (!colormap) colormap = 'jet'; + + if (typeof colormap === 'string') { + colormap = colormap.toLowerCase(); + + if (!colorScale[colormap]) { + throw Error(colormap + ' not a supported colorscale'); + } + + cmap = colorScale[colormap]; + + } else if (Array.isArray(colormap)) { + cmap = colormap.slice(); + + } else { + throw Error('unsupported colormap option', colormap); + } + + if (cmap.length > nshades + 1) { + throw new Error( + colormap+' map requires nshades to be at least size '+cmap.length + ); + } + + if (!Array.isArray(spec.alpha)) { + + if (typeof spec.alpha === 'number') { + alpha = [spec.alpha, spec.alpha]; + + } else { + alpha = [1, 1]; + } + + } else if (spec.alpha.length !== 2) { + alpha = [1, 1]; + + } else { + alpha = spec.alpha.slice(); + } + + // map index points from 0..1 to 0..n-1 + indicies = cmap.map(function(c) { + return Math.round(c.index * nshades); + }); + + // Add alpha channel to the map + alpha[0] = Math.min(Math.max(alpha[0], 0), 1); + alpha[1] = Math.min(Math.max(alpha[1], 0), 1); + + var steps = cmap.map(function(c, i) { + var index = cmap[i].index + + var rgba = cmap[i].rgb.slice(); + + // if user supplies their own map use it + if (rgba.length === 4 && rgba[3] >= 0 && rgba[3] <= 1) { + return rgba + } + rgba[3] = alpha[0] + (alpha[1] - alpha[0])*index; + + return rgba + }) + + + /* + * map increasing linear values between indicies to + * linear steps in colorvalues + */ + var colors = [] + for (i = 0; i < indicies.length-1; ++i) { + nsteps = indicies[i+1] - indicies[i]; + fromrgba = steps[i]; + torgba = steps[i+1]; + + for (var j = 0; j < nsteps; j++) { + var amt = j / nsteps + colors.push([ + Math.round(lerp(fromrgba[0], torgba[0], amt)), + Math.round(lerp(fromrgba[1], torgba[1], amt)), + Math.round(lerp(fromrgba[2], torgba[2], amt)), + lerp(fromrgba[3], torgba[3], amt) + ]) + } + } + + //add 1 step as last value + colors.push(cmap[cmap.length - 1].rgb.concat(alpha[1])) + + if (format === 'hex') colors = colors.map( rgb2hex ); + else if (format === 'rgbaString') colors = colors.map( rgbaStr ); + else if (format === 'float') colors = colors.map( rgb2float ); + + return colors; +}; + +function rgb2float (rgba) { + return [ + rgba[0] / 255, + rgba[1] / 255, + rgba[2] / 255, + rgba[3] + ] +} + +function rgb2hex (rgba) { + var dig, hex = '#'; + for (var i = 0; i < 3; ++i) { + dig = rgba[i]; + dig = dig.toString(16); + hex += ('00' + dig).substr( dig.length ); + } + return hex; +} + +function rgbaStr (rgba) { + return 'rgba(' + rgba.join(',') + ')'; +} diff --git a/node_modules/colormap/license.md b/node_modules/colormap/license.md new file mode 100644 index 0000000..9359601 --- /dev/null +++ b/node_modules/colormap/license.md @@ -0,0 +1,19 @@ +Copyright (c) <2012> ICRL + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/node_modules/colormap/night.jpg b/node_modules/colormap/night.jpg new file mode 100644 index 0000000..06cf22a Binary files /dev/null and b/node_modules/colormap/night.jpg differ diff --git a/node_modules/colormap/package.json b/node_modules/colormap/package.json new file mode 100644 index 0000000..6b7f7d4 --- /dev/null +++ b/node_modules/colormap/package.json @@ -0,0 +1,90 @@ +{ + "_from": "colormap", + "_id": "colormap@2.3.2", + "_inBundle": false, + "_integrity": "sha512-jDOjaoEEmA9AgA11B/jCSAvYE95r3wRoAyTf3LEHGiUVlNHJaL1mRkf5AyLSpQBVGfTEPwGEqCIzL+kgr2WgNA==", + "_location": "/colormap", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "colormap", + "name": "colormap", + "escapedName": "colormap", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/colormap/-/colormap-2.3.2.tgz", + "_shasum": "4422c1178ce563806e265b96782737be85815abf", + "_spec": "colormap", + "_where": "/var/www/chiro-canto", + "author": { + "name": "bpostlethwaite" + }, + "bugs": { + "url": "https://github.com/bpostlethwaite/colormap/issues" + }, + "bundleDependencies": false, + "dependencies": { + "lerp": "^1.0.3" + }, + "deprecated": false, + "description": "Great looking color maps", + "devDependencies": { + "color-space": "^1.14.3", + "tape": "^4.7.0" + }, + "homepage": "https://github.com/bpostlethwaite/colormap#readme", + "keywords": [ + "colormap", + "color map", + "color", + "hex", + "rgb", + "color-space", + "cubehelix", + "inferno", + "magma", + "plasma", + "viridis", + "matplotlib", + "oceanography", + "seismic", + "color gradient", + "color range", + "colorscale", + "color scale", + "plot", + "graph" + ], + "license": "MIT", + "main": "index.js", + "name": "colormap", + "repository": { + "type": "git", + "url": "git+https://github.com/bpostlethwaite/colormap.git" + }, + "scripts": { + "build": "browserify example/example.js -o example/bundle.js", + "draw": "budo test/draw.js", + "test": "node test.js" + }, + "testling": { + "files": "test/*.js", + "browsers": [ + "ie/9..latest", + "chrome/20..latest", + "firefox/13..latest", + "safari/latest", + "opera/11.0..latest", + "iphone/6", + "ipad/6" + ] + }, + "version": "2.3.2" +} diff --git a/node_modules/colormap/res/draw.js b/node_modules/colormap/res/draw.js new file mode 100644 index 0000000..c205d5d --- /dev/null +++ b/node_modules/colormap/res/draw.js @@ -0,0 +1,231 @@ +/** + * Compare canonic/compressed colormaps. + * Generate compressed colormap jsons. + */ + +var cubehelix = require('color-space/cubehelix'); + + +if (typeof document === 'undefined') return; + +//paint original and compressed colormap for comparison +var magma = require('./res/magma'); +show(toImageData(magma), 'magma original'); +show(toImageData(compress(magma, 32)), 'magma compressed'); + +var viridis = require('./res/viridis'); +show(toImageData(viridis), 'viridis original'); +show(toImageData(compress(viridis, 32)), 'viridis compressed'); + +var inferno = require('./res/inferno'); +show(toImageData(inferno), 'inferno original'); +show(toImageData(compress(inferno, 32)), 'inferno compressed'); + +var plasma = require('./res/plasma'); +show(toImageData(plasma), 'plasma original'); +show(toImageData(compress(plasma, 32)), 'plasma compressed'); + +getColors('./test/res/warm.png') +.then(function (data) { + show(toImageData(data), 'warm original'); + show(toImageData(createCubehelix(16, { + rotation: .6, + start: 0, + hue: 3, + gamma: 1 + })), 'warm cubehelix approx'); + + show(toImageData(compress(data, 111)), 'warm compressed'); +}); + +getColors('./test/res/cool.png') +.then(function (data) { + show(toImageData(data), 'cool original'); + show(toImageData(compress(data, 111)), 'cool compressed'); +}); + +getColors('./test/res/rainbow.png') +.then(function (data) { + show(toImageData(data), 'rainbow original'); + show(toImageData(compress(data, 88)), 'rainbow compressed'); +}); + +var bathymetry = require('./res/bathymetry'); +show(toImageData(bathymetry), 'bathymetry original'); +show(toImageData(compress(bathymetry, 32)), 'bathymetry compressed'); + +var cdom = require('./res/cdom'); +show(toImageData(cdom), 'cdom original'); +show(toImageData(compress(cdom, 32)), 'cdom compressed'); + +var chlorophyll = require('./res/chlorophyll'); +show(toImageData(chlorophyll), 'chlorophyll original'); +show(toImageData(compress(chlorophyll, 32)), 'chlorophyll compressed'); + +var density = require('./res/density'); +show(toImageData(density), 'density original'); +show(toImageData(compress(density, 32)), 'density compressed'); + +var freesurfaceBlue = require('./res/freesurface-blue'); +show(toImageData(freesurfaceBlue), 'freesurfaceBlue original'); +show(toImageData(compress(freesurfaceBlue, 32)), 'freesurfaceBlue compressed'); + +var freesurfaceRed = require('./res/freesurface-red'); +show(toImageData(freesurfaceRed), 'freesurfaceRed original'); +show(toImageData(compress(freesurfaceRed, 32)), 'freesurfaceRed compressed'); + +var oxygen = require('./res/oxygen'); +show(toImageData(oxygen), 'oxygen original'); +show(toImageData(compress(oxygen, 32)), 'oxygen compressed'); + +var par = require('./res/par'); +show(toImageData(par), 'par original'); +show(toImageData(compress(par, 32)), 'par compressed'); + +var phase = require('./res/phase'); +show(toImageData(phase), 'phase original'); +show(toImageData(compress(phase, 32)), 'phase compressed'); + +var salinity = require('./res/salinity'); +show(toImageData(salinity), 'salinity original'); +show(toImageData(compress(salinity, 32)), 'salinity compressed'); + +var temperature = require('./res/temperature'); +show(toImageData(temperature), 'temperature original'); +show(toImageData(compress(temperature, 32)), 'temperature compressed'); + +var turbidity = require('./res/turbidity'); +show(toImageData(turbidity), 'turbidity original'); +show(toImageData(compress(turbidity, 32)), 'turbidity compressed'); + +var velocityBlue = require('./res/velocity-blue'); +show(toImageData(velocityBlue), 'velocity-blue original'); +show(toImageData(compress(velocityBlue, 32)), 'velocity-blue compressed'); + +var velocityGreen = require('./res/velocity-green'); +show(toImageData(velocityGreen), 'velocity-green original'); +show(toImageData(compress(velocityGreen, 32)), 'velocity-green compressed'); +// console.log(JSON.stringify(toColormap(compress(velocityGreen, 32)))); + + + + +//Helpers here + +//get image colors +function getColors (image, cb) { + var data = []; + + var img = createImage(image); + + var promise = new Promise(function (resolve) { + img.onload = function () { + var canvas = document.createElement('canvas'); + canvas.width = img.width; + canvas.height = img.height; + canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height); + + var ctx = canvas.getContext('2d'); + + var imageData = ctx.getImageData(0, 0, img.width, 1).data; + + for (var i = 0; i < img.width; i++) { + data.push([imageData[i*4]/255, imageData[i*4+1]/255, imageData[i*4+2]/255]); + } + + resolve(data); + }; + }); + + + return promise; +} + + +function createImage (url) { + if (img instanceof Image) return img; + + var img = new Image(); + img.src = url; + + return img; +} + +//create colormap by rotating cubehelix +function createCubehelix (steps, opts) { + var data = []; + + for (var i = 0; i < steps; i++ ){ + data.push(cubehelix.rgb(i/steps, opts).map((v) => v/255)); + } + + return data; +} + +//return imagedata from colormap +function toImageData (colors) { + return colors.map((color) => color.map((v) => v*255).concat(255)) + .reduce((prev, curr) => prev.concat(curr)); +} + +//return interpolated imagedata with only each @factor pixel left +function compress (colors, factor) { + var data = []; + + var len = (colors.length) / factor; + var step = (colors.length-1) / len; + + for (var i = 0; i < colors.length; i+= step) { + data.push(colors[i|0]); + } + + return data; +} + +//convert imagedata to colormap JSON +function toColormap (data) { + var stops = []; + + for (var i = 0; i < data.length; i++) { + stops.push({ + index: Math.round(i * 100 / (data.length - 1)) / 100, + rgb: data[i].map((v) => Math.round(v*255)) + }); + } + + return stops; +} + +//create a canvas with the image/colordata preview +function show (pixels, title) { + if (typeof pixels === 'string') { + var img = createImage(pixels); + img.style.height = '40px'; + img.style.width = '100%'; + + title && img.setAttribute('title', title); + + document.body.appendChild(img); + return; + } + + var canvas = document.createElement('canvas'); + var w = (pixels.length/4)|0; + + canvas.width = w; + canvas.height = 1; + canvas.style.height = '40px'; + canvas.style.width = '100%'; + + var ctx = canvas.getContext('2d'); + var imageData = ctx.createImageData(w, 1); + + imageData.data.set(pixels); + + ctx.putImageData(imageData, 0, 0); + + title && canvas.setAttribute('title', title); + + document.body.appendChild(canvas); + document.body.appendChild(document.createElement('br')); +} diff --git a/node_modules/colormap/res/res/CDOM.js b/node_modules/colormap/res/res/CDOM.js new file mode 100644 index 0000000..7cc1e73 --- /dev/null +++ b/node_modules/colormap/res/res/CDOM.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.18517171, 0.05913349, 0.24304267], +[ 0.19008219, 0.06057894, 0.24651605], +[ 0.1950016 , 0.06199021, 0.24996805], +[ 0.19993023, 0.06336778, 0.25339803], +[ 0.2048691 , 0.06471124, 0.25680549], +[ 0.20982353, 0.06601486, 0.26019056], +[ 0.21478769, 0.06728631, 0.26355148], +[ 0.21976179, 0.06852599, 0.26688759], +[ 0.22474604, 0.0697343 , 0.27019819], +[ 0.22974485, 0.07090635, 0.27348302], +[ 0.2347553 , 0.07204628, 0.27674091], +[ 0.23977611, 0.07315619, 0.27997094], +[ 0.24480741, 0.07423648, 0.28317235], +[ 0.24984931, 0.07528753, 0.28634437], +[ 0.25490478, 0.07630599, 0.28948629], +[ 0.25997231, 0.07729426, 0.29259714], +[ 0.26505035, 0.07825478, 0.295676 ], +[ 0.27013893, 0.07918798, 0.29872202], +[ 0.27523807, 0.08009433, 0.30173433], +[ 0.28034773, 0.08097432, 0.30471204], +[ 0.28546798, 0.08182832, 0.30765422], +[ 0.29060135, 0.08265337, 0.31055974], +[ 0.29574478, 0.083454 , 0.3134278 ], +[ 0.30089818, 0.08423083, 0.31625744], +[ 0.30606141, 0.08498453, 0.3190477 ], +[ 0.31123432, 0.08571579, 0.32179759], +[ 0.31641672, 0.08642536, 0.32450613], +[ 0.32160842, 0.08711404, 0.32717232], +[ 0.32680918, 0.08778266, 0.32979513], +[ 0.33201875, 0.08843214, 0.33237355], +[ 0.33723686, 0.08906342, 0.33490656], +[ 0.3424632 , 0.08967752, 0.33739313], +[ 0.34769744, 0.09027551, 0.33983225], +[ 0.35293923, 0.09085853, 0.34222288], +[ 0.35818819, 0.09142777, 0.34456401], +[ 0.36344392, 0.0919845 , 0.34685464], +[ 0.36870599, 0.09253005, 0.34909377], +[ 0.37397397, 0.0930658 , 0.35128042], +[ 0.37924738, 0.09359321, 0.35341364], +[ 0.38452573, 0.0941138 , 0.35549249], +[ 0.38980852, 0.09462915, 0.35751606], +[ 0.39509521, 0.0951409 , 0.35948347], +[ 0.40038526, 0.09565075, 0.36139387], +[ 0.40567812, 0.09616044, 0.36324644], +[ 0.4109732 , 0.09667179, 0.36504042], +[ 0.41626992, 0.09718665, 0.36677507], +[ 0.42156767, 0.09770691, 0.36844971], +[ 0.42686586, 0.09823449, 0.37006371], +[ 0.43216478, 0.09876992, 0.37161577], +[ 0.43746355, 0.09931556, 0.37310547], +[ 0.44276088, 0.0998745 , 0.37453284], +[ 0.44805611, 0.10044877, 0.37589749], +[ 0.45334861, 0.1010404 , 0.37719908], +[ 0.45863773, 0.10165142, 0.37843733], +[ 0.46392333, 0.1022831 , 0.37961155], +[ 0.46920552, 0.10293623, 0.38072076], +[ 0.47448238, 0.10361485, 0.38176614], +[ 0.47975329, 0.10432087, 0.38274769], +[ 0.48501765, 0.1050562 , 0.3836655 ], +[ 0.49027555, 0.10582154, 0.38451884], +[ 0.49552659, 0.10661841, 0.3853076 ], +[ 0.50076923, 0.10745003, 0.38603324], +[ 0.50600291, 0.10831803, 0.38669608], +[ 0.51122751, 0.10922327, 0.38729597], +[ 0.51644309, 0.11016633, 0.38783247], +[ 0.52164803, 0.11115027, 0.38830764], +[ 0.52684188, 0.11217633, 0.38872207], +[ 0.53202486, 0.11324458, 0.38907529], +[ 0.53719631, 0.11435643, 0.38936827], +[ 0.54235522, 0.11551369, 0.38960269], +[ 0.54750131, 0.11671701, 0.38977915], +[ 0.552635 , 0.11796595, 0.38989699], +[ 0.55775491, 0.11926261, 0.38995887], +[ 0.5628607 , 0.12060752, 0.38996572], +[ 0.56795278, 0.12200003, 0.38991698], +[ 0.57303015, 0.12344147, 0.38981494], +[ 0.57809238, 0.12493225, 0.38966089], +[ 0.58313973, 0.1264718 , 0.38945465], +[ 0.58817152, 0.12806077, 0.3891981 ], +[ 0.5931873 , 0.12969941, 0.38889274], +[ 0.59818726, 0.13138711, 0.38853858], +[ 0.60317083, 0.13312418, 0.38813742], +[ 0.60813763, 0.13491065, 0.38769077], +[ 0.61308782, 0.13674584, 0.38719864], +[ 0.61802083, 0.13862993, 0.386663 ], +[ 0.62293634, 0.14056274, 0.38608522], +[ 0.62783454, 0.14254354, 0.38546523], +[ 0.63271477, 0.14457248, 0.38480529], +[ 0.63757687, 0.14664919, 0.38410635], +[ 0.64242081, 0.14877308, 0.38336876], +[ 0.64724605, 0.15094418, 0.38259458], +[ 0.65205246, 0.15316203, 0.38178446], +[ 0.65683983, 0.15542627, 0.38093931], +[ 0.66160768, 0.15773679, 0.38006084], +[ 0.66635592, 0.16009315, 0.37914944], +[ 0.67108412, 0.16249519, 0.37820659], +[ 0.67579188, 0.16494277, 0.37723366], +[ 0.68047906, 0.16743548, 0.37623081], +[ 0.68514508, 0.16997338, 0.37520008], +[ 0.68978961, 0.17255625, 0.37414221], +[ 0.69441228, 0.17518398, 0.37305808], +[ 0.69901252, 0.1778566 , 0.3719494 ], +[ 0.70359001, 0.18057398, 0.37081657], +[ 0.70814412, 0.18333622, 0.36966126], +[ 0.71267433, 0.18614338, 0.36848468], +[ 0.71718017, 0.1889955 , 0.36728743], +[ 0.7216609 , 0.19189279, 0.36607151], +[ 0.72611598, 0.19483537, 0.36483758], +[ 0.73054471, 0.19782348, 0.36358718], +[ 0.73494635, 0.20085737, 0.36232191], +[ 0.73932024, 0.20393732, 0.36104238], +[ 0.74366551, 0.20706364, 0.35975091], +[ 0.74798139, 0.21023669, 0.35844838], +[ 0.75226701, 0.21345683, 0.35713657], +[ 0.75652144, 0.21672446, 0.35581731], +[ 0.76074383, 0.22004003, 0.35449167], +[ 0.76493312, 0.22340394, 0.35316213], +[ 0.76908837, 0.22681667, 0.35183001], +[ 0.7732085 , 0.23027866, 0.35049752], +[ 0.77729245, 0.23379036, 0.34916672], +[ 0.78133913, 0.23735228, 0.34783945], +[ 0.78534739, 0.24096482, 0.3465183 ], +[ 0.78931609, 0.24462845, 0.34520528], +[ 0.79324405, 0.24834357, 0.34390302], +[ 0.79713009, 0.25211056, 0.34261402], +[ 0.80097301, 0.25592978, 0.34134093], +[ 0.80477161, 0.25980154, 0.34008638], +[ 0.80852469, 0.26372603, 0.33885362], +[ 0.81223105, 0.26770354, 0.33764514], +[ 0.81588953, 0.27173408, 0.33646439], +[ 0.819499 , 0.27581774, 0.33531442], +[ 0.82305829, 0.27995459, 0.33419807], +[ 0.82656645, 0.28414414, 0.33311978], +[ 0.83002232, 0.28838659, 0.33208153], +[ 0.83342508, 0.29268122, 0.33108793], +[ 0.8367738 , 0.29702773, 0.33014193], +[ 0.84006752, 0.30142586, 0.32924624], +[ 0.84330599, 0.30587398, 0.32840668], +[ 0.84648807, 0.31037235, 0.32762406], +[ 0.84961352, 0.31491948, 0.32690313], +[ 0.85268212, 0.31951405, 0.32624774], +[ 0.855693 , 0.32415591, 0.32565907], +[ 0.85864675, 0.32884252, 0.32514279], +[ 0.86154301, 0.33357304, 0.32470075], +[ 0.86438132, 0.33834687, 0.32433433], +[ 0.86716293, 0.34316081, 0.32404903], +[ 0.86988775, 0.34801394, 0.32384604], +[ 0.87255551, 0.35290558, 0.3237261 ], +[ 0.8751674 , 0.35783305, 0.32369276], +[ 0.87772497, 0.36279339, 0.32374939], +[ 0.88022743, 0.36778691, 0.32389464], +[ 0.88267554, 0.37281188, 0.32412991], +[ 0.88507136, 0.37786501, 0.32445816], +[ 0.88741638, 0.38294391, 0.32488078], +[ 0.88971012, 0.38804876, 0.32539617], +[ 0.89195365, 0.39317783, 0.32600483], +[ 0.89414811, 0.3983294 , 0.32670706], +[ 0.89629551, 0.40350084, 0.32750381], +[ 0.89839827, 0.40868922, 0.32839594], +[ 0.90045568, 0.41389524, 0.32938102], +[ 0.90246898, 0.41911741, 0.33045857], +[ 0.90443943, 0.42435429, 0.33162793], +[ 0.90636827, 0.42960453, 0.33288831], +[ 0.90825675, 0.43486684, 0.33423877], +[ 0.91010609, 0.44014 , 0.33567825], +[ 0.9119175 , 0.4454229 , 0.33720557], +[ 0.91369216, 0.45071447, 0.33881946], +[ 0.9154312 , 0.45601377, 0.34051856], +[ 0.91713572, 0.4613199 , 0.34230146], +[ 0.91880676, 0.46663207, 0.34416665], +[ 0.92044532, 0.47194958, 0.3461126 ], +[ 0.92205233, 0.47727179, 0.34813776], +[ 0.92362867, 0.48259816, 0.35024054], +[ 0.92517515, 0.4879282 , 0.35241933], +[ 0.92669252, 0.49326154, 0.35467254], +[ 0.92818145, 0.49859784, 0.35699858], +[ 0.92964257, 0.50393685, 0.35939586], +[ 0.93107641, 0.50927839, 0.36186284], +[ 0.93248345, 0.51462233, 0.364398 ], +[ 0.93386574, 0.51996726, 0.36700002], +[ 0.93522801, 0.52530964, 0.36966771], +[ 0.93656551, 0.53065374, 0.37239898], +[ 0.93787845, 0.53599965, 0.37519244], +[ 0.93916701, 0.54134751, 0.37804676], +[ 0.94043129, 0.54669749, 0.38096067], +[ 0.94167798, 0.55204474, 0.38393283], +[ 0.94290654, 0.55739007, 0.38696177], +[ 0.94411192, 0.56273764, 0.39004635], +[ 0.94529398, 0.56808778, 0.39318551], +[ 0.94645531, 0.57343881, 0.39637803], +[ 0.94760645, 0.57878343, 0.39962183], +[ 0.9487348 , 0.58413113, 0.40291682], +[ 0.94984002, 0.58948232, 0.40626218], +[ 0.95092987, 0.5948318 , 0.40965603], +[ 0.95200784, 0.60017752, 0.41309682], +[ 0.95306267, 0.60552755, 0.4165852 ], +[ 0.95409505, 0.61088157, 0.42012037], +[ 0.95512504, 0.61622639, 0.42369803], +[ 0.95613153, 0.6215765 , 0.42732096], +[ 0.95711389, 0.62693242, 0.43098874], +[ 0.95809626, 0.63227868, 0.43469575], +[ 0.95905559, 0.63763057, 0.43844592], +[ 0.95999158, 0.64298842, 0.44223886], +[ 0.96092933, 0.6483366 , 0.44606817], +[ 0.9618419 , 0.65369237, 0.44993943], +[ 0.9627383 , 0.65905026, 0.45385005], +[ 0.9636302 , 0.6644034 , 0.45779644], +[ 0.96449566, 0.6697654 , 0.46178377], +[ 0.96535776, 0.67512254, 0.46580546], +[ 0.96620304, 0.68048317, 0.46986463], +[ 0.9670273 , 0.68584991, 0.4739621 ], +[ 0.96785315, 0.6912098 , 0.47809096], +[ 0.9686504 , 0.6965806 , 0.48225963], +[ 0.96944845, 0.7019456 , 0.48645901], +[ 0.97022616, 0.7073171 , 0.49069515], +[ 0.97099121, 0.71269094, 0.49496543], +[ 0.97174984, 0.71806387, 0.49926753], +[ 0.97248364, 0.72344627, 0.50360719], +[ 0.97322354, 0.7288214 , 0.507974 ], +[ 0.97393124, 0.73421027, 0.51238049], +[ 0.97464928, 0.7395902 , 0.51681211], +[ 0.97533754, 0.7449828 , 0.52128239], +[ 0.97602903, 0.75037081, 0.52577975], +[ 0.97669802, 0.75576791, 0.53031308], +[ 0.97736473, 0.76116379, 0.53487508], +[ 0.97801457, 0.76656615, 0.53947089], +[ 0.97865835, 0.77196968, 0.5440965 ], +[ 0.97928916, 0.77737806, 0.54875439], +[ 0.9799119 , 0.78278902, 0.55344266], +[ 0.98052378, 0.78820414, 0.55816232], +[ 0.98112747, 0.7936223 , 0.56291231], +[ 0.98172055, 0.79904486, 0.56769355], +[ 0.98230724, 0.80446999, 0.57250437], +[ 0.98288171, 0.80990066, 0.57734705], +[ 0.98345358, 0.8153325 , 0.58221775], +[ 0.98400967, 0.82077189, 0.58712176], +[ 0.98456902, 0.82621018, 0.59205135], +[ 0.98510705, 0.83165888, 0.59701657], +[ 0.9856563 , 0.83710333, 0.60200398], +[ 0.98617668, 0.84256188, 0.60703023], +[ 0.98671839, 0.8480122 , 0.61207428], +[ 0.98722803, 0.8534783 , 0.61715857], +[ 0.9877585 , 0.858937 , 0.6222606 ], +[ 0.9882647 , 0.86440831, 0.62739957], +[ 0.98878008, 0.86987788, 0.632561 ], +[ 0.98928575, 0.87535412, 0.63775296], +[ 0.98978682, 0.88083501, 0.64297311], +[ 0.99029495, 0.88631589, 0.64821615], +[ 0.99078259, 0.89180853, 0.65349411], +[ 0.99129627, 0.89729384, 0.65878604], +[ 0.99178436, 0.9027934 , 0.6641148 ], +[ 0.99229377, 0.90828822, 0.66945902], +[ 0.99279222, 0.91379173, 0.67483294], +[ 0.99329154, 0.91929937, 0.68023089], +[ 0.99380347, 0.92480678, 0.68564709], +[ 0.99429361, 0.9303278 , 0.6910969 ]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/PAR.js b/node_modules/colormap/res/res/PAR.js new file mode 100644 index 0000000..58b1c34 --- /dev/null +++ b/node_modules/colormap/res/res/PAR.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.2014251 , 0.07730778, 0.09342024], +[ 0.20623196, 0.07906208, 0.09541606], +[ 0.21104289, 0.08079536, 0.09737846], +[ 0.21585808, 0.08250806, 0.09930725], +[ 0.22067771, 0.08420059, 0.10120221], +[ 0.22550196, 0.08587332, 0.10306306], +[ 0.23033109, 0.08752655, 0.10488946], +[ 0.23516512, 0.08916077, 0.10668116], +[ 0.24000415, 0.09077639, 0.10843785], +[ 0.24484825, 0.09237382, 0.11015919], +[ 0.24969748, 0.09395347, 0.11184482], +[ 0.25455187, 0.09551577, 0.11349435], +[ 0.25941144, 0.09706115, 0.11510738], +[ 0.26427617, 0.09859005, 0.11668349], +[ 0.26914605, 0.10010293, 0.11822223], +[ 0.27402103, 0.10160025, 0.11972314], +[ 0.27890104, 0.10308249, 0.12118573], +[ 0.28378598, 0.10455017, 0.12260952], +[ 0.28867573, 0.10600381, 0.12399399], +[ 0.29357056, 0.10744356, 0.12533822], +[ 0.29847081, 0.10886948, 0.12664112], +[ 0.30337547, 0.11028298, 0.12790292], +[ 0.30828432, 0.11168467, 0.12912301], +[ 0.3131971 , 0.11307521, 0.13030082], +[ 0.31811356, 0.11445529, 0.13143572], +[ 0.32303376, 0.11582525, 0.13252668], +[ 0.32795844, 0.11718479, 0.13357181], +[ 0.33288584, 0.11853607, 0.13457197], +[ 0.33781557, 0.11987996, 0.13552651], +[ 0.34274718, 0.12121736, 0.13643477], +[ 0.34768177, 0.12254761, 0.13729412], +[ 0.35261792, 0.12387261, 0.13810492], +[ 0.35755446, 0.12519406, 0.13886724], +[ 0.36249085, 0.126513 , 0.13958034], +[ 0.3674288 , 0.12782819, 0.14024032], +[ 0.37236522, 0.12914333, 0.14084966], +[ 0.3772994 , 0.13045972, 0.14140772], +[ 0.38223282, 0.13177638, 0.14191047], +[ 0.38716275, 0.13309673, 0.14235997], +[ 0.39208806, 0.13442254, 0.14275598], +[ 0.39701028, 0.13575283, 0.1430939 ], +[ 0.40192579, 0.13709203, 0.14337733], +[ 0.40683496, 0.13844041, 0.1436033 ], +[ 0.41173657, 0.1397999 , 0.1437714 ], +[ 0.4166286 , 0.14117334, 0.14388269], +[ 0.42151155, 0.14256088, 0.14393348], +[ 0.42638186, 0.14396701, 0.14392769], +[ 0.43124082, 0.1453911 , 0.14385986], +[ 0.43608432, 0.14683821, 0.14373521], +[ 0.44091334, 0.14830805, 0.14354849], +[ 0.44572406, 0.14980539, 0.14330472], +[ 0.45051699, 0.15133045, 0.14299936], +[ 0.45528867, 0.15288755, 0.14263694], +[ 0.46003871, 0.15447786, 0.14221489], +[ 0.46476457, 0.15610469, 0.14173594], +[ 0.46946477, 0.15777026, 0.1412003 ], +[ 0.47413775, 0.15947682, 0.14060852], +[ 0.47878116, 0.16122735, 0.1399636 ], +[ 0.48339404, 0.1630234 , 0.13926468], +[ 0.48797401, 0.16486782, 0.13851553], +[ 0.49251957, 0.16676254, 0.13771755], +[ 0.49702929, 0.16870932, 0.1368722 ], +[ 0.50150134, 0.17071019, 0.13598285], +[ 0.50593446, 0.17276654, 0.13505133], +[ 0.51032726, 0.17487977, 0.13408048], +[ 0.5146785 , 0.17705099, 0.1330731 ], +[ 0.51898712, 0.17928107, 0.13203202], +[ 0.52325216, 0.18157061, 0.13096024], +[ 0.52747291, 0.18391991, 0.12986024], +[ 0.53164858, 0.18632919, 0.12873602], +[ 0.53577881, 0.1887982 , 0.12758962], +[ 0.5398633 , 0.19132655, 0.12642369], +[ 0.54390168, 0.19391371, 0.12524274], +[ 0.54789413, 0.19655879, 0.12404724], +[ 0.5518406 , 0.19926082, 0.12284163], +[ 0.55574136, 0.20201864, 0.12162768], +[ 0.55959678, 0.20483097, 0.12040676], +[ 0.56340718, 0.20769632, 0.11918392], +[ 0.56717321, 0.21061334, 0.11795693], +[ 0.57089535, 0.21358017, 0.11673318], +[ 0.57457433, 0.21659553, 0.11550868], +[ 0.57821088, 0.21965735, 0.11429034], +[ 0.58180567, 0.22276439, 0.11307453], +[ 0.58535963, 0.22591444, 0.11186793], +[ 0.58887335, 0.2291065 , 0.11066571], +[ 0.59234801, 0.23233801, 0.10947623], +[ 0.59578402, 0.23560836, 0.10829302], +[ 0.59918265, 0.23891505, 0.1071234 ], +[ 0.6025444 , 0.24225721, 0.1059638 ], +[ 0.60587015, 0.24563324, 0.1048158 ], +[ 0.60916104, 0.24904116, 0.10368321], +[ 0.6124173 , 0.25248057, 0.1025614 ], +[ 0.61564022, 0.2559493 , 0.10145541], +[ 0.61883047, 0.25944629, 0.10036479], +[ 0.62198835, 0.26297099, 0.09928701], +[ 0.62511509, 0.26652152, 0.09822607], +[ 0.62821147, 0.27009672, 0.09718275], +[ 0.63127759, 0.27369633, 0.09615407], +[ 0.6343141 , 0.2773194 , 0.09514063], +[ 0.63732259, 0.28096373, 0.09414821], +[ 0.6403029 , 0.28462948, 0.09317288], +[ 0.64325545, 0.28831605, 0.09221436], +[ 0.64618079, 0.29202264, 0.09127322], +[ 0.64907986, 0.29574805, 0.09035191], +[ 0.65195349, 0.29949124, 0.08945208], +[ 0.65480148, 0.3032524 , 0.08857116], +[ 0.65762433, 0.3070309 , 0.08770973], +[ 0.66042248, 0.31082618, 0.08686839], +[ 0.66319638, 0.31463768, 0.08604774], +[ 0.6659465 , 0.31846486, 0.08524854], +[ 0.66867401, 0.3223064 , 0.08447432], +[ 0.67137847, 0.32616277, 0.08372242], +[ 0.67406025, 0.33003358, 0.0829935 ], +[ 0.6767197 , 0.33391841, 0.08228821], +[ 0.67935717, 0.33781692, 0.08160721], +[ 0.68197297, 0.34172875, 0.0809512 ], +[ 0.68456742, 0.3456536 , 0.08032086], +[ 0.68714081, 0.34959116, 0.0797169 ], +[ 0.68969343, 0.35354117, 0.07914004], +[ 0.69222553, 0.35750336, 0.07859099], +[ 0.69473738, 0.3614775 , 0.07807048], +[ 0.69722923, 0.36546336, 0.07757926], +[ 0.6997013 , 0.36946075, 0.07711805], +[ 0.70215381, 0.37346948, 0.07668761], +[ 0.70458697, 0.37748937, 0.07628867], +[ 0.70700099, 0.38152026, 0.07592197], +[ 0.70939604, 0.385562 , 0.07558825], +[ 0.71177231, 0.38961447, 0.07528823], +[ 0.71412996, 0.39367754, 0.07502264], +[ 0.71646916, 0.39775109, 0.07479218], +[ 0.71879006, 0.40183503, 0.07459753], +[ 0.72109279, 0.40592925, 0.07443938], +[ 0.72337749, 0.41003369, 0.07431837], +[ 0.72564429, 0.41414826, 0.07423513], +[ 0.72789329, 0.41827289, 0.07419027], +[ 0.73012462, 0.42240753, 0.07418436], +[ 0.73233838, 0.42655212, 0.07421793], +[ 0.73453539, 0.43070603, 0.0742932 ], +[ 0.73671566, 0.4348693 , 0.07441039], +[ 0.73887875, 0.43904233, 0.07456863], +[ 0.74102472, 0.4432251 , 0.07476829], +[ 0.74315365, 0.44741758, 0.0750097 ], +[ 0.74526561, 0.45161977, 0.07529317], +[ 0.74736066, 0.45583163, 0.07561893], +[ 0.74943885, 0.46005318, 0.07598718], +[ 0.75150145, 0.46428349, 0.07640057], +[ 0.75354824, 0.46852277, 0.07685852], +[ 0.75557843, 0.47277168, 0.07735934], +[ 0.75759206, 0.4770302 , 0.07790305], +[ 0.75958916, 0.48129836, 0.07848957], +[ 0.76156976, 0.48557617, 0.07911883], +[ 0.76353516, 0.48986274, 0.07979299], +[ 0.76548558, 0.49415795, 0.08051211], +[ 0.76741969, 0.49846282, 0.0812734 ], +[ 0.76933749, 0.50277737, 0.0820766 ], +[ 0.77123899, 0.50710162, 0.08292137], +[ 0.77312499, 0.51143507, 0.08380866], +[ 0.77499716, 0.51577662, 0.0847407 ], +[ 0.77685317, 0.52012793, 0.0857131 ], +[ 0.77869299, 0.52448904, 0.08672541], +[ 0.78051662, 0.52885998, 0.08777712], +[ 0.78232613, 0.53323943, 0.08887079], +[ 0.78412113, 0.5376277 , 0.09000513], +[ 0.78590001, 0.5420259 , 0.09117718], +[ 0.78766275, 0.54643407, 0.09238637], +[ 0.78941038, 0.55085158, 0.09363351], +[ 0.79114495, 0.55527718, 0.09492064], +[ 0.79286342, 0.55971286, 0.09624296], +[ 0.79456574, 0.56415868, 0.09759984], +[ 0.79625293, 0.56861405, 0.0989919 ], +[ 0.79792746, 0.57307748, 0.10042146], +[ 0.79958585, 0.57755118, 0.10188351], +[ 0.80122804, 0.58203522, 0.1033774 ], +[ 0.80285607, 0.5865284 , 0.10490482], +[ 0.80447074, 0.59103029, 0.10646587], +[ 0.80606916, 0.59554268, 0.10805666], +[ 0.80765128, 0.60006563, 0.10967654], +[ 0.80922129, 0.60459671, 0.11132925], +[ 0.81077606, 0.60913783, 0.11301075], +[ 0.81231442, 0.6136897 , 0.1147193 ], +[ 0.81383814, 0.61825132, 0.11645603], +[ 0.81534926, 0.62282161, 0.11822217], +[ 0.81684385, 0.62740283, 0.12001338], +[ 0.81832183, 0.63199507, 0.12182907], +[ 0.81978904, 0.63659511, 0.12367382], +[ 0.82123975, 0.64120619, 0.1255419 ], +[ 0.82267367, 0.64582852, 0.12743261], +[ 0.82409542, 0.65045959, 0.12934922], +[ 0.82550201, 0.65510109, 0.13128867], +[ 0.82689162, 0.65975407, 0.133249 ], +[ 0.82826808, 0.66441648, 0.13523271], +[ 0.82963023, 0.669089 , 0.13723832], +[ 0.83097514, 0.67377325, 0.13926317], +[ 0.83230641, 0.67846735, 0.14130944], +[ 0.83362367, 0.68317156, 0.14337634], +[ 0.8349234 , 0.68788775, 0.14546096], +[ 0.83620945, 0.69261395, 0.14756554], +[ 0.83748125, 0.69735055, 0.14968918], +[ 0.83873517, 0.7020994 , 0.15182914], +[ 0.83997589, 0.70685819, 0.15398802], +[ 0.8412015 , 0.71162792, 0.1561642 ], +[ 0.84240886, 0.71641021, 0.15835539], +[ 0.843604 , 0.7212021 , 0.16056488], +[ 0.8447826 , 0.72600578, 0.1627897 ], +[ 0.8459425 , 0.73082232, 0.16502834], +[ 0.84709169, 0.73564789, 0.16728499], +[ 0.84822227, 0.74048637, 0.16955487], +[ 0.84933549, 0.74533717, 0.17183845], +[ 0.8504364 , 0.75019794, 0.17413811], +[ 0.8515178 , 0.75507211, 0.17644978], +[ 0.85258411, 0.75995766, 0.17877549], +[ 0.85363511, 0.76485473, 0.18111487], +[ 0.85466602, 0.76976556, 0.1834653 ], +[ 0.85568466, 0.77468659, 0.18583039], +[ 0.85668433, 0.77962093, 0.18820665], +[ 0.85766547, 0.7845684 , 0.19059412], +[ 0.85863334, 0.78952669, 0.19299505], +[ 0.85958005, 0.79449933, 0.19540561], +[ 0.86051189, 0.79948359, 0.19782848], +[ 0.86142577, 0.80448085, 0.2002621 ], +[ 0.86231873, 0.80949244, 0.20270505], +[ 0.86319909, 0.81451477, 0.20516075], +[ 0.86405703, 0.81955212, 0.20762486], +[ 0.86489859, 0.82460193, 0.21009982], +[ 0.86572175, 0.82966508, 0.21258465], +[ 0.86652274, 0.8347432 , 0.21507772], +[ 0.8673103 , 0.83983262, 0.21758244], +[ 0.86807398, 0.84493777, 0.22009455], +[ 0.86882094, 0.85005567, 0.22261679], +[ 0.86954753, 0.85518787, 0.22514765], +[ 0.87025185, 0.86033516, 0.22768636], +[ 0.87094035, 0.86549493, 0.23023528], +[ 0.87160329, 0.87067115, 0.23279074], +[ 0.87225041, 0.87585991, 0.23535627], +[ 0.87287351, 0.88106452, 0.23792884], +[ 0.87347555, 0.88628382, 0.24050952], +[ 0.87405765, 0.89151737, 0.24309865], +[ 0.87461345, 0.89676767, 0.24569404], +[ 0.87515332, 0.90203072, 0.24829921], +[ 0.87566489, 0.90731129, 0.25090998], +[ 0.876158 , 0.91260563, 0.25352966], +[ 0.87662518, 0.91791659, 0.25615577], +[ 0.87706899, 0.92324319, 0.25878919], +[ 0.87749036, 0.92858511, 0.26143025], +[ 0.87788347, 0.9339445 , 0.26407712], +[ 0.8782575 , 0.93931797, 0.26673276], +[ 0.87859995, 0.94471013, 0.26939327], +[ 0.87892352, 0.95011633, 0.2720627 ], +[ 0.87921601, 0.95554099, 0.27473731], +[ 0.87948513, 0.96098132, 0.27741955], +[ 0.87972594, 0.9664391 , 0.28010799], +[ 0.87993889, 0.97191415, 0.28280287], +[ 0.88012616, 0.97740568, 0.28550491], +[ 0.88028113, 0.982916 , 0.28821226], +[ 0.88041294, 0.98844193, 0.2909277 ], +[ 0.88050801, 0.99398812, 0.2936474 ]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/bathymetry.js b/node_modules/colormap/res/res/bathymetry.js new file mode 100644 index 0000000..6fb4d42 --- /dev/null +++ b/node_modules/colormap/res/res/bathymetry.js @@ -0,0 +1,257 @@ +module.exports = [[ 0.15610197, 0.10260825, 0.17272157], +[ 0.15879951, 0.10562813, 0.17808215], +[ 0.16148781, 0.10863318, 0.18344165], +[ 0.16415718, 0.11162318, 0.18883992], +[ 0.16681176, 0.11459941, 0.19425947], +[ 0.16945091, 0.11756264, 0.19970233], +[ 0.17207033, 0.12051292, 0.20518607], +[ 0.17467698, 0.12345223, 0.21067979], +[ 0.17725957, 0.12637929, 0.21623094], +[ 0.17983088, 0.12929727, 0.22178284], +[ 0.18237518, 0.13220381, 0.2274021 ], +[ 0.18490718, 0.13510267, 0.23302318], +[ 0.18741252, 0.13799155, 0.23870629], +[ 0.18990318, 0.1408738 , 0.24439758], +[ 0.19236658, 0.14374739, 0.25014898], +[ 0.19481375, 0.14661556, 0.2559107 ], +[ 0.19723196, 0.14947616, 0.26173441], +[ 0.19963336, 0.15233276, 0.26756593], +[ 0.20200284, 0.15518269, 0.2734655 ], +[ 0.20435511, 0.15803011, 0.27936892], +[ 0.20667286, 0.16087193, 0.28534375], +[ 0.20897027, 0.16371219, 0.29132868], +[ 0.21123508, 0.16654905, 0.29736908], +[ 0.21347308, 0.16938469, 0.30343772], +[ 0.21568192, 0.17221954, 0.30953956], +[ 0.21785541, 0.17505333, 0.31569323], +[ 0.22000279, 0.17788891, 0.32185935], +[ 0.22210836, 0.18072434, 0.32809006], +[ 0.22418213, 0.18356266, 0.33434315], +[ 0.2262221 , 0.18640462, 0.34062032], +[ 0.22821552, 0.18924937, 0.34695853], +[ 0.23017343, 0.19210006, 0.35331317], +[ 0.23209137, 0.19495728, 0.35969247], +[ 0.23395668, 0.19782084, 0.36612828], +[ 0.23577916, 0.20069365, 0.37258104], +[ 0.23755595, 0.2035769 , 0.3790513 ], +[ 0.23927601, 0.20647121, 0.38556163], +[ 0.24093942, 0.20937861, 0.39210045], +[ 0.24254746, 0.21230118, 0.39865318], +[ 0.2440963 , 0.21524071, 0.40521875], +[ 0.2455818 , 0.21819916, 0.41179552], +[ 0.24699281, 0.22117861, 0.41839657], +[ 0.24833066, 0.22418177, 0.42500332], +[ 0.24959215, 0.22721132, 0.43160747], +[ 0.25077214, 0.23027012, 0.43820368], +[ 0.25186528, 0.23336132, 0.44478539], +[ 0.252866 , 0.23648829, 0.45134461], +[ 0.25376865, 0.23965469, 0.45787181], +[ 0.25456757, 0.24286438, 0.46435576], +[ 0.25525721, 0.24612144, 0.47078343], +[ 0.25583228, 0.24943005, 0.47713997], +[ 0.25628796, 0.25279443, 0.48340873], +[ 0.25661512, 0.25621955, 0.48957708], +[ 0.25680888, 0.25970984, 0.49562536], +[ 0.25687291, 0.26326808, 0.50152514], +[ 0.25680712, 0.26689714, 0.50725418], +[ 0.25660517, 0.27060089, 0.51279636], +[ 0.25627372, 0.27437999, 0.51812616], +[ 0.2558254 , 0.27823281, 0.523219 ], +[ 0.25525973, 0.28216003, 0.5280624 ], +[ 0.25459786, 0.28615608, 0.53263702], +[ 0.25385147, 0.29021676, 0.53693454], +[ 0.25303784, 0.29433557, 0.54094998], +[ 0.25217537, 0.29850489, 0.54468392], +[ 0.25128177, 0.30271674, 0.54814227], +[ 0.25037292, 0.30696328, 0.55133524], +[ 0.24946824, 0.31123536, 0.55427663], +[ 0.24857612, 0.31552728, 0.55698221], +[ 0.2477157 , 0.31982991, 0.55947045], +[ 0.24689121, 0.3241392 , 0.56175861], +[ 0.24611215, 0.32844959, 0.56386485], +[ 0.24538978, 0.33275513, 0.56580822], +[ 0.24472203, 0.33705469, 0.56760298], +[ 0.24411647, 0.3413441 , 0.56926586], +[ 0.24357904, 0.34561997, 0.57081275], +[ 0.24310562, 0.34988262, 0.57225403], +[ 0.24269783, 0.35413056, 0.5736016 ], +[ 0.24236192, 0.35836085, 0.57486937], +[ 0.2420947 , 0.36257399, 0.5760654 ], +[ 0.24189401, 0.36677027, 0.57719727], +[ 0.24175956, 0.37094938, 0.57827294], +[ 0.24169076, 0.37511123, 0.57929958], +[ 0.2416897 , 0.37925483, 0.58028581], +[ 0.24175313, 0.38338117, 0.58123598], +[ 0.24187844, 0.387491 , 0.58215425], +[ 0.24206427, 0.39158472, 0.58304526], +[ 0.24230913, 0.39566275, 0.58391314], +[ 0.24261144, 0.39972561, 0.5847616 ], +[ 0.24296954, 0.40377384, 0.58559395], +[ 0.24338171, 0.40780801, 0.58641316], +[ 0.24384618, 0.41182872, 0.58722185], +[ 0.24436114, 0.4158366 , 0.58802239], +[ 0.24492561, 0.41983198, 0.58881765], +[ 0.24553674, 0.42381585, 0.58960858], +[ 0.24619263, 0.42778886, 0.59039677], +[ 0.24689148, 0.43175165, 0.59118371], +[ 0.24763144, 0.43570484, 0.59197068], +[ 0.24841072, 0.43964906, 0.59275883], +[ 0.24922752, 0.44358493, 0.59354913], +[ 0.25008005, 0.44751306, 0.59434245], +[ 0.25096657, 0.45143404, 0.59513951], +[ 0.25188534, 0.45534848, 0.59594094], +[ 0.25283469, 0.45925694, 0.59674727], +[ 0.25381294, 0.46316 , 0.5975589 ], +[ 0.25481847, 0.46705822, 0.59837617], +[ 0.25584972, 0.47095213, 0.59919934], +[ 0.25690514, 0.47484228, 0.60002857], +[ 0.25798324, 0.47872916, 0.60086398], +[ 0.25908258, 0.4826133 , 0.60170558], +[ 0.26020178, 0.48649518, 0.60255336], +[ 0.2613397 , 0.4903752 , 0.60340742], +[ 0.26249484, 0.4942539 , 0.60426741], +[ 0.26366598, 0.49813174, 0.6051331 ], +[ 0.26485195, 0.50200914, 0.60600423], +[ 0.26605166, 0.50588653, 0.6068805 ], +[ 0.26726407, 0.5097643 , 0.60776157], +[ 0.26848824, 0.51364284, 0.60864705], +[ 0.26972326, 0.51752253, 0.60953651], +[ 0.27096833, 0.52140372, 0.61042947], +[ 0.27222271, 0.52528675, 0.61132543], +[ 0.27348573, 0.52917194, 0.61222386], +[ 0.27475681, 0.53305961, 0.61312416], +[ 0.27603547, 0.53695005, 0.61402574], +[ 0.27732128, 0.54084353, 0.61492795], +[ 0.27861393, 0.5447403 , 0.61583014], +[ 0.27991319, 0.54864062, 0.61673159], +[ 0.28121892, 0.5525447 , 0.6176316 ], +[ 0.28253107, 0.55645275, 0.61852942], +[ 0.28384971, 0.56036495, 0.61942427], +[ 0.28517499, 0.56428149, 0.62031537], +[ 0.28650717, 0.56820249, 0.62120191], +[ 0.28784651, 0.57212815, 0.62208291], +[ 0.28919353, 0.57605855, 0.62295759], +[ 0.29054888, 0.57999377, 0.62382514], +[ 0.29191327, 0.58393389, 0.62468468], +[ 0.29328753, 0.58787895, 0.62553534], +[ 0.29467261, 0.59182898, 0.62637622], +[ 0.29606961, 0.59578401, 0.6272064 ], +[ 0.29747971, 0.599744 , 0.62802499], +[ 0.29890426, 0.60370894, 0.62883105], +[ 0.30034472, 0.60767877, 0.62962366], +[ 0.3018027 , 0.6116534 , 0.6304019 ], +[ 0.30327995, 0.61563273, 0.63116484], +[ 0.30477834, 0.61961664, 0.63191155], +[ 0.30629992, 0.62360498, 0.63264111], +[ 0.30784684, 0.62759757, 0.63335259], +[ 0.30942143, 0.63159422, 0.63404509], +[ 0.31102618, 0.63559469, 0.63471769], +[ 0.31266369, 0.63959874, 0.6353695 ], +[ 0.31433675, 0.64360608, 0.63599965], +[ 0.31604829, 0.6476164 , 0.63660727], +[ 0.31780141, 0.65162937, 0.63719152], +[ 0.31959934, 0.65564462, 0.63775156], +[ 0.32144548, 0.65966175, 0.6382866 ], +[ 0.32334339, 0.66368034, 0.63879587], +[ 0.32529678, 0.66769992, 0.63927863], +[ 0.32730951, 0.67171999, 0.63973418], +[ 0.32938557, 0.67574005, 0.64016185], +[ 0.33152913, 0.67975951, 0.64056102], +[ 0.33374413, 0.68377791, 0.6409304 ], +[ 0.3360351 , 0.68779458, 0.6412696 ], +[ 0.33840684, 0.69180878, 0.64157857], +[ 0.34086403, 0.69581978, 0.64185693], +[ 0.34341147, 0.69982684, 0.64210435], +[ 0.34605405, 0.70382918, 0.64232058], +[ 0.34879674, 0.70782594, 0.64250547], +[ 0.3516446 , 0.71181627, 0.64265896], +[ 0.35460272, 0.71579925, 0.64278108], +[ 0.35767625, 0.71977391, 0.64287199], +[ 0.36086992, 0.72373958, 0.64292927], +[ 0.36418945, 0.7276949 , 0.64295573], +[ 0.36763999, 0.73163877, 0.64295205], +[ 0.37122661, 0.73557007, 0.64291896], +[ 0.37495428, 0.73948763, 0.64285736], +[ 0.37882784, 0.74339025, 0.64276831], +[ 0.38285235, 0.74727697, 0.64264931], +[ 0.38703226, 0.75114621, 0.64250555], +[ 0.39137183, 0.75499667, 0.64233873], +[ 0.39587503, 0.75882703, 0.64215083], +[ 0.40054593, 0.76263603, 0.64194247], +[ 0.40538835, 0.76642231, 0.64171516], +[ 0.41040452, 0.77018443, 0.64147423], +[ 0.41559684, 0.77392103, 0.64122273], +[ 0.42096796, 0.77763083, 0.64096223], +[ 0.42651956, 0.78131247, 0.64069607], +[ 0.43225139, 0.78496472, 0.64043042], +[ 0.43816347, 0.78858638, 0.64016943], +[ 0.44425693, 0.79217623, 0.63991482], +[ 0.45052876, 0.79573333, 0.63967426], +[ 0.45697666, 0.79925675, 0.63945293], +[ 0.46359865, 0.80274561, 0.63925487], +[ 0.47039042, 0.80619928, 0.63908644], +[ 0.47734697, 0.80961729, 0.63895382], +[ 0.48446331, 0.81299926, 0.63886245], +[ 0.49173307, 0.81634505, 0.63881848], +[ 0.49914951, 0.81965467, 0.63882777], +[ 0.50670501, 0.82292834, 0.63889632], +[ 0.51439085, 0.82616658, 0.63903043], +[ 0.52219973, 0.82936979, 0.63923462], +[ 0.53012282, 0.83253876, 0.63951422], +[ 0.53814812, 0.83567489, 0.63987637], +[ 0.54626958, 0.83877878, 0.64032322], +[ 0.55447837, 0.84185159, 0.6408588 ], +[ 0.56276148, 0.84489535, 0.64148939], +[ 0.57111152, 0.84791128, 0.64221712], +[ 0.57952181, 0.85090053, 0.64304356], +[ 0.5879841 , 0.85386466, 0.64397109], +[ 0.59648484, 0.85680645, 0.64500466], +[ 0.60501947, 0.85972701, 0.64614391], +[ 0.61358282, 0.86262763, 0.64738888], +[ 0.62216818, 0.86550998, 0.64874031], +[ 0.63076931, 0.86837576, 0.65019861], +[ 0.6393757 , 0.87122773, 0.65176583], +[ 0.64798434, 0.87406707, 0.65344053], +[ 0.65659293, 0.87689477, 0.65522105], +[ 0.6651972 , 0.87971238, 0.65710661], +[ 0.67379331, 0.88252137, 0.65909617], +[ 0.68237784, 0.88532317, 0.66118854], +[ 0.69094781, 0.88811911, 0.66338232], +[ 0.69950063, 0.8909105 , 0.66567599], +[ 0.70803409, 0.89369855, 0.66806789], +[ 0.71654633, 0.8964844 , 0.67055629], +[ 0.72503584, 0.89926913, 0.67313935], +[ 0.7335014 , 0.90205374, 0.6758152 ], +[ 0.7419421 , 0.90483916, 0.6785819 ], +[ 0.75035729, 0.90762623, 0.68143751], +[ 0.75874656, 0.91041576, 0.68438007], +[ 0.76710972, 0.91320846, 0.68740763], +[ 0.77544679, 0.91600497, 0.69051825], +[ 0.78375799, 0.91880591, 0.69371001], +[ 0.79204369, 0.92161178, 0.69698104], +[ 0.8003044 , 0.92442306, 0.70032949], +[ 0.80854079, 0.92724016, 0.70375359], +[ 0.81675365, 0.93006344, 0.7072516 ], +[ 0.82494386, 0.93289321, 0.71082186], +[ 0.83310566, 0.93573198, 0.71446311], +[ 0.84124229, 0.9385793 , 0.71817346], +[ 0.84935864, 0.94143411, 0.72195118], +[ 0.85745594, 0.94429655, 0.72579485], +[ 0.8655355 , 0.94716668, 0.72970312], +[ 0.87359867, 0.95004456, 0.73367476], +[ 0.8816326 , 0.95293526, 0.73770822], +[ 0.88965121, 0.95583441, 0.74180237], +[ 0.89765699, 0.95874159, 0.7459562 ], +[ 0.90565146, 0.96165671, 0.7501688 ], +[ 0.9136274 , 0.96458287, 0.75443868], +[ 0.92158503, 0.96752052, 0.75876468], +[ 0.92953534, 0.97046601, 0.76314675], +[ 0.93747992, 0.97341911, 0.76758435], +[ 0.94540698, 0.97638475, 0.77207538], +[ 0.95332337, 0.97936076, 0.77661978], +[ 0.96123821, 0.98234397, 0.78121815], +[ 0.96914884, 0.98533575, 0.78586971], +[ 0.97704185, 0.98834183, 0.79057175], +[ 0.98493745, 0.99135452, 0.79532716], +[ 0.99283718, 0.99437346, 0.8001362 ] +]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/chlorophyll.js b/node_modules/colormap/res/res/chlorophyll.js new file mode 100644 index 0000000..7c2a948 --- /dev/null +++ b/node_modules/colormap/res/res/chlorophyll.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.06885643, 0.14208946, 0.07903363], +[ 0.07022733, 0.145481 , 0.08182252], +[ 0.07158041, 0.14886551, 0.08459735], +[ 0.07289843, 0.15224692, 0.08735815], +[ 0.07419261, 0.15562329, 0.09010536], +[ 0.07545752, 0.15899606, 0.0928391 ], +[ 0.07669294, 0.16236561, 0.09555954], +[ 0.0779044 , 0.16573113, 0.09826708], +[ 0.07908113, 0.16909506, 0.10096151], +[ 0.08023865, 0.17245461, 0.10364358], +[ 0.0813567 , 0.17581401, 0.1063126 ], +[ 0.08245885, 0.17916893, 0.10896978], +[ 0.08351901, 0.18252464, 0.11161396], +[ 0.08456274, 0.18587646, 0.1142466 ], +[ 0.08556724, 0.18922894, 0.11686652], +[ 0.08655243, 0.19257854, 0.119475 ], +[ 0.08750046, 0.19592877, 0.12207102], +[ 0.08842694, 0.19927694, 0.12465567], +[ 0.08931759, 0.20262583, 0.12722804], +[ 0.09018515, 0.2059733 , 0.1297891 ], +[ 0.09101742, 0.20932169, 0.13233799], +[ 0.09182583, 0.21266913, 0.13487564], +[ 0.09259864, 0.21601782, 0.13740115], +[ 0.09334765, 0.21936582, 0.13991552], +[ 0.09405985, 0.22271554, 0.14241766], +[ 0.09474918, 0.22606468, 0.14490881], +[ 0.09539954, 0.22941612, 0.14738752], +[ 0.0960289 , 0.23276689, 0.14985548], +[ 0.09661612, 0.23612068, 0.15231064], +[ 0.09718523, 0.23947356, 0.15475537], +[ 0.09770794, 0.2428303 , 0.1571868 ], +[ 0.09821309, 0.24618625, 0.15960787], +[ 0.09867327, 0.24954595, 0.16201567], +[ 0.09911166, 0.25290573, 0.16441267], +[ 0.09951033, 0.25626852, 0.16679686], +[ 0.09988043, 0.25963262, 0.16916945], +[ 0.1002173 , 0.26299882, 0.17152986], +[ 0.10051752, 0.2663677 , 0.17387765], +[ 0.10079233, 0.2697376 , 0.17621409], +[ 0.10102103, 0.27311168, 0.17853665], +[ 0.10122817, 0.27648631, 0.18084823], +[ 0.10138903, 0.2798652 , 0.18314573], +[ 0.10152195, 0.28324567, 0.18543137], +[ 0.10161961, 0.28662882, 0.18770415], +[ 0.10167654, 0.29001546, 0.18996328], +[ 0.10170933, 0.29340326, 0.19221085], +[ 0.10169001, 0.29679616, 0.19444309], +[ 0.1016439 , 0.30019064, 0.19666326], +[ 0.10156046, 0.30358817, 0.19886988], +[ 0.10143361, 0.30698958, 0.201062 ], +[ 0.10127976, 0.31039267, 0.20324181], +[ 0.1010766 , 0.31380039, 0.20540608], +[ 0.10083896, 0.31721078, 0.20755678], +[ 0.10057112, 0.32062332, 0.20969446], +[ 0.10024781, 0.32404118, 0.21181533], +[ 0.09989443, 0.32746115, 0.21392297], +[ 0.0995047 , 0.33088402, 0.21601636], +[ 0.09906254, 0.3343117 , 0.218093 ], +[ 0.0985884 , 0.33774172, 0.2201558 ], +[ 0.09807546, 0.34117488, 0.22220362], +[ 0.09750943, 0.34461278, 0.22423417], +[ 0.09690948, 0.3480532 , 0.22625023], +[ 0.09627239, 0.35149649, 0.22825119], +[ 0.09557752, 0.35494489, 0.23023372], +[ 0.09484678, 0.35839595, 0.23220107], +[ 0.09407947, 0.36184972, 0.23415298], +[ 0.09325665, 0.36530817, 0.23608636], +[ 0.09239033, 0.36876996, 0.23800293], +[ 0.09148554, 0.37223456, 0.23990332], +[ 0.09053798, 0.37570238, 0.2417867 ], +[ 0.08953167, 0.3791749 , 0.24365037], +[ 0.08848513, 0.38265026, 0.2454971 ], +[ 0.08739776, 0.3861285 , 0.24732662], +[ 0.08626466, 0.38961004, 0.24913796], +[ 0.08507286, 0.39309597, 0.25092886], +[ 0.08383877, 0.39658475, 0.25270175], +[ 0.0825619 , 0.40007639, 0.25445635], +[ 0.08124183, 0.4035709 , 0.25619236], +[ 0.07986463, 0.40706939, 0.25790734], +[ 0.07843839, 0.41057109, 0.25960234], +[ 0.07696833, 0.41407555, 0.26127794], +[ 0.07545435, 0.41758275, 0.26293384], +[ 0.07389642, 0.42109266, 0.26456976], +[ 0.07228966, 0.42460561, 0.26618462], +[ 0.07062863, 0.42812193, 0.26777721], +[ 0.06892492, 0.43164076, 0.26934902], +[ 0.06717918, 0.43516204, 0.27089974], +[ 0.06539233, 0.43868571, 0.27242909], +[ 0.06356557, 0.44221171, 0.27393677], +[ 0.06170041, 0.44573995, 0.27542249], +[ 0.05979877, 0.44927035, 0.27688596], +[ 0.05785702, 0.45280318, 0.27832599], +[ 0.05588066, 0.45633814, 0.27974269], +[ 0.05387746, 0.45987489, 0.28113643], +[ 0.05185174, 0.4634133 , 0.28250695], +[ 0.04980869, 0.46695324, 0.28385397], +[ 0.04775453, 0.47049459, 0.28517723], +[ 0.04569662, 0.47403719, 0.28647649], +[ 0.04364369, 0.47758089, 0.28775151], +[ 0.04160606, 0.48112551, 0.28900203], +[ 0.0395867 , 0.48467089, 0.29022786], +[ 0.03763814, 0.48821682, 0.29142876], +[ 0.03580155, 0.49176311, 0.29260454], +[ 0.03408899, 0.49530953, 0.29375502], +[ 0.03251323, 0.49885586, 0.29488003], +[ 0.03108771, 0.50240186, 0.29597942], +[ 0.02982666, 0.50594726, 0.29705307], +[ 0.02874508, 0.50949179, 0.29810087], +[ 0.02785177, 0.51303546, 0.29912154], +[ 0.02716441, 0.51657792, 0.3001151 ], +[ 0.02670582, 0.52011863, 0.30108235], +[ 0.02649479, 0.52365722, 0.30202332], +[ 0.02655111, 0.52719334, 0.30293807], +[ 0.0268957 , 0.53072659, 0.30382669], +[ 0.02754542, 0.53425678, 0.30468824], +[ 0.02851433, 0.53778386, 0.30552072], +[ 0.02984163, 0.54130675, 0.30632735], +[ 0.03155357, 0.54482496, 0.30710846], +[ 0.03367174, 0.54833822, 0.3078629 ], +[ 0.03621581, 0.55184641, 0.30858828], +[ 0.03923368, 0.55534819, 0.3092893 ], +[ 0.04267874, 0.55884313, 0.30996532], +[ 0.04642777, 0.56233118, 0.31061247], +[ 0.05049037, 0.56581074, 0.31123743], +[ 0.05483677, 0.56928169, 0.31183596], +[ 0.05945722, 0.57274288, 0.31241135], +[ 0.06433628, 0.57619346, 0.3129641 ], +[ 0.0694603 , 0.57963256, 0.31349439], +[ 0.07481987, 0.58305904, 0.31400453], +[ 0.08040588, 0.58647176, 0.31449636], +[ 0.08620977, 0.58986967, 0.3149695 ], +[ 0.09222724, 0.59325117, 0.31543058], +[ 0.0984523 , 0.59661516, 0.31587743], +[ 0.10488194, 0.59995997, 0.31631578], +[ 0.11151261, 0.60328396, 0.31675059], +[ 0.11834151, 0.60658549, 0.31718585], +[ 0.12536778, 0.6098628 , 0.31762468], +[ 0.13258816, 0.61311399, 0.31807501], +[ 0.13999895, 0.6163372 , 0.31854464], +[ 0.14759587, 0.61953055, 0.31904185], +[ 0.15537304, 0.62269226, 0.31957617], +[ 0.16332236, 0.62582066, 0.32015839], +[ 0.17143307, 0.62891434, 0.32080039], +[ 0.17969137, 0.63197223, 0.32151494], +[ 0.18808025, 0.63499369, 0.32231537], +[ 0.19658051, 0.63797853, 0.32321469], +[ 0.20516717, 0.6409274 , 0.32422681], +[ 0.21381461, 0.64384147, 0.32536378], +[ 0.22249597, 0.64672254, 0.32663605], +[ 0.23118418, 0.64957297, 0.32805203], +[ 0.23985293, 0.65239558, 0.32961779], +[ 0.24847602, 0.65519373, 0.33133728], +[ 0.25703342, 0.65797057, 0.33321113], +[ 0.26550717, 0.66072943, 0.3352381 ], +[ 0.2738829 , 0.66347352, 0.33741504], +[ 0.28214978, 0.66620584, 0.33973735], +[ 0.29030037, 0.66892916, 0.34219931], +[ 0.29833024, 0.67164589, 0.34479452], +[ 0.30623756, 0.67435818, 0.34751622], +[ 0.31401727, 0.67706862, 0.35035755], +[ 0.32167446, 0.67977832, 0.35331149], +[ 0.32921313, 0.68248841, 0.35637146], +[ 0.33663762, 0.6851999 , 0.35953132], +[ 0.34394207, 0.68791541, 0.36278437], +[ 0.35114051, 0.69063416, 0.36612568], +[ 0.35823533, 0.69335721, 0.36954994], +[ 0.36522563, 0.69608614, 0.37305153], +[ 0.37212492, 0.69881984, 0.37662736], +[ 0.37892642, 0.70156084, 0.38027132], +[ 0.3856453 , 0.70430747, 0.38398168], +[ 0.39227735, 0.70706166, 0.38775317], +[ 0.39883103, 0.70982284, 0.39158356], +[ 0.40531204, 0.71259083, 0.39547048], +[ 0.41171522, 0.7153677 , 0.39940867], +[ 0.41805337, 0.71815166, 0.40339835], +[ 0.42432867, 0.72094309, 0.40743704], +[ 0.43053587, 0.72374398, 0.41151964], +[ 0.43668612, 0.72655264, 0.41564705], +[ 0.44278167, 0.72936931, 0.41981738], +[ 0.44882469, 0.73219416, 0.42402884], +[ 0.45481188, 0.73502867, 0.42827737], +[ 0.46075114, 0.73787164, 0.43256386], +[ 0.46664458, 0.74072315, 0.43688699], +[ 0.47249405, 0.74358334, 0.44124545], +[ 0.47830134, 0.74645233, 0.44563802], +[ 0.48406816, 0.74933022, 0.45006358], +[ 0.48979527, 0.75221736, 0.45452056], +[ 0.49548385, 0.75511394, 0.45900769], +[ 0.50113714, 0.75801961, 0.46352502], +[ 0.50675657, 0.76093444, 0.46807172], +[ 0.51234353, 0.76385852, 0.47264701], +[ 0.51789934, 0.76679191, 0.47725017], +[ 0.52342527, 0.76973468, 0.48188052], +[ 0.52892256, 0.77268689, 0.48653744], +[ 0.53439237, 0.7756486 , 0.49122035], +[ 0.53983582, 0.77861987, 0.4959287 ], +[ 0.54525401, 0.78160076, 0.500662 ], +[ 0.55064796, 0.78459132, 0.50541978], +[ 0.55601867, 0.78759161, 0.5102016 ], +[ 0.56136709, 0.79060167, 0.51500705], +[ 0.56669416, 0.79362156, 0.51983577], +[ 0.57200073, 0.79665133, 0.5246874 ], +[ 0.57728767, 0.79969103, 0.52956161], +[ 0.5825556 , 0.80274077, 0.53445795], +[ 0.587804 , 0.80580103, 0.53937491], +[ 0.59303502, 0.80887141, 0.54431345], +[ 0.59824938, 0.81195197, 0.54927334], +[ 0.60344779, 0.81504274, 0.55425434], +[ 0.60863092, 0.8181438 , 0.55925625], +[ 0.61379944, 0.82125518, 0.56427887], +[ 0.61895395, 0.82437694, 0.56932201], +[ 0.62409506, 0.82750913, 0.57438551], +[ 0.62922216, 0.83065222, 0.5794679 ], +[ 0.63433574, 0.83380631, 0.58456889], +[ 0.63943758, 0.83697102, 0.58968966], +[ 0.64452821, 0.84014641, 0.59483008], +[ 0.64960814, 0.84333252, 0.59999004], +[ 0.65467785, 0.84652942, 0.60516941], +[ 0.65973664, 0.8497376 , 0.61036667], +[ 0.66478454, 0.8529573 , 0.61558114], +[ 0.66982361, 0.85618797, 0.62081462], +[ 0.67485427, 0.85942969, 0.62606703], +[ 0.67987695, 0.8626825 , 0.6313383 ], +[ 0.68489103, 0.86594688, 0.63662701], +[ 0.68989598, 0.86922324, 0.64193178], +[ 0.69489414, 0.87251091, 0.64725509], +[ 0.69988588, 0.87580994, 0.65259689], +[ 0.70487156, 0.87912041, 0.6579571 ], +[ 0.70984902, 0.88244339, 0.6633321 ], +[ 0.71482059, 0.88577817, 0.66872453], +[ 0.71978715, 0.88912459, 0.67413514], +[ 0.72474903, 0.89248272, 0.67956388], +[ 0.72970443, 0.89585351, 0.68500748], +[ 0.73465479, 0.89923659, 0.69046752], +[ 0.73960143, 0.90263159, 0.69594546], +[ 0.74454464, 0.90603859, 0.70144129], +[ 0.74948217, 0.90945876, 0.70695082], +[ 0.75441627, 0.91289135, 0.71247711], +[ 0.75934783, 0.91633616, 0.71802108], +[ 0.76427661, 0.91979348, 0.72358186], +[ 0.76920074, 0.92326438, 0.72915567], +[ 0.77412316, 0.92674772, 0.73474699], +[ 0.77904414, 0.93024359, 0.74035579], +[ 0.78396177, 0.93375306, 0.74597816], +[ 0.78887747, 0.93727567, 0.75161605], +[ 0.79379251, 0.94081106, 0.75727124], +[ 0.79870604, 0.9443598 , 0.76294165], +[ 0.80361734, 0.94792244, 0.76862535], +[ 0.80852873, 0.9514981 , 0.77432618], +[ 0.81344004, 0.95508703, 0.7800433 ], +[ 0.81834917, 0.95869047, 0.78577205], +[ 0.82325913, 0.96230716, 0.79151775], +[ 0.82817006, 0.96593722, 0.79728024], +[ 0.8330792 , 0.96958222, 0.80305326], +[ 0.83798987, 0.97324073, 0.80884306], +[ 0.84290226, 0.97691284, 0.81464957]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/cool.png b/node_modules/colormap/res/res/cool.png new file mode 100644 index 0000000..72945bd Binary files /dev/null and b/node_modules/colormap/res/res/cool.png differ diff --git a/node_modules/colormap/res/res/density.js b/node_modules/colormap/res/res/density.js new file mode 100644 index 0000000..d9fcc44 --- /dev/null +++ b/node_modules/colormap/res/res/density.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.21298394, 0.05589169, 0.14220951], +[ 0.21780744, 0.0570005 , 0.14665582], +[ 0.22261214, 0.05808842, 0.15115908], +[ 0.22739756, 0.05915624, 0.15572185], +[ 0.23216536, 0.06020099, 0.16034977], +[ 0.23691745, 0.06121879, 0.1650498 ], +[ 0.24164654, 0.06222163, 0.169816 ], +[ 0.24635153, 0.06321115, 0.17465056], +[ 0.25103114, 0.06418929, 0.1795555 ], +[ 0.25568737, 0.06515168, 0.1845388 ], +[ 0.26031556, 0.06610638, 0.18959733], +[ 0.26491272, 0.06705861, 0.19473015], +[ 0.26947709, 0.0680114 , 0.19993831], +[ 0.27400681, 0.06896804, 0.20522255], +[ 0.27849993, 0.06993211, 0.21058327], +[ 0.28295501, 0.07090603, 0.21602205], +[ 0.28737014, 0.0718934 , 0.22153921], +[ 0.29174204, 0.07290112, 0.22713094], +[ 0.29606871, 0.07393344, 0.23279613], +[ 0.30034822, 0.07499465, 0.23853326], +[ 0.30457867, 0.07608911, 0.24434046], +[ 0.30875826, 0.07722111, 0.25021549], +[ 0.31288529, 0.0783949 , 0.25615575], +[ 0.3169582 , 0.07961456, 0.26215837], +[ 0.32097556, 0.08088399, 0.26822019], +[ 0.32493609, 0.08220684, 0.27433782], +[ 0.3288387 , 0.08358647, 0.28050768], +[ 0.33268245, 0.08502593, 0.28672608], +[ 0.33646657, 0.08652789, 0.2929892 ], +[ 0.34019047, 0.08809468, 0.29929318], +[ 0.34385372, 0.08972821, 0.30563417], +[ 0.34745604, 0.09143006, 0.31200825], +[ 0.35099729, 0.0932014 , 0.31841152], +[ 0.35447749, 0.09504303, 0.32484029], +[ 0.35789677, 0.09695535, 0.33129096], +[ 0.36125536, 0.09893846, 0.33776007], +[ 0.36455362, 0.10099212, 0.34424427], +[ 0.36779195, 0.10311585, 0.35074041], +[ 0.37097085, 0.10530889, 0.35724546], +[ 0.37409088, 0.10757029, 0.36375657], +[ 0.37715263, 0.10989888, 0.37027108], +[ 0.38015674, 0.11229336, 0.37678646], +[ 0.38310387, 0.11475229, 0.38330035], +[ 0.38599472, 0.11727411, 0.38981058], +[ 0.38882999, 0.1198572 , 0.3963151 ], +[ 0.39161037, 0.12249987, 0.402812 ], +[ 0.3943366 , 0.12520039, 0.40929955], +[ 0.39700936, 0.12795703, 0.41577611], +[ 0.39962936, 0.13076802, 0.42224018], +[ 0.40219729, 0.13363161, 0.42869038], +[ 0.40471394, 0.13654614, 0.43512488], +[ 0.40717995, 0.13950986, 0.44154258], +[ 0.4095959 , 0.14252107, 0.44794287], +[ 0.41196239, 0.14557814, 0.45432475], +[ 0.41428002, 0.1486795 , 0.4606873 ], +[ 0.41654936, 0.15182361, 0.46702967], +[ 0.41877098, 0.15500903, 0.47335108], +[ 0.4209454 , 0.15823432, 0.4796508 ], +[ 0.42307313, 0.16149814, 0.48592814], +[ 0.42515465, 0.16479918, 0.49218247], +[ 0.42719043, 0.1681362 , 0.49841321], +[ 0.42918111, 0.17150798, 0.50461925], +[ 0.431127 , 0.17491341, 0.5108004 ], +[ 0.43302838, 0.17835141, 0.5169565 ], +[ 0.43488561, 0.18182099, 0.52308708], +[ 0.43669905, 0.18532117, 0.5291917 ], +[ 0.43846903, 0.18885105, 0.53526994], +[ 0.44019583, 0.19240976, 0.54132138], +[ 0.44187976, 0.19599648, 0.54734563], +[ 0.44352106, 0.19961045, 0.5533423 ], +[ 0.44512012, 0.2032509 , 0.55931077], +[ 0.44667705, 0.20691717, 0.56525088], +[ 0.44819199, 0.21060865, 0.57116243], +[ 0.44966511, 0.21432473, 0.57704502], +[ 0.45109659, 0.21806485, 0.58289828], +[ 0.45248658, 0.22182847, 0.58872183], +[ 0.45383521, 0.2256151 , 0.59451528], +[ 0.45514261, 0.22942427, 0.60027826], +[ 0.45640887, 0.23325554, 0.60601037], +[ 0.45763398, 0.23710854, 0.61171135], +[ 0.45881803, 0.24098289, 0.61738074], +[ 0.4599611 , 0.24487823, 0.62301809], +[ 0.46106323, 0.24879421, 0.62862296], +[ 0.46212445, 0.25273054, 0.63419487], +[ 0.46314479, 0.25668693, 0.63973335], +[ 0.46412426, 0.2606631 , 0.6452379 ], +[ 0.46506286, 0.2646588 , 0.650708 ], +[ 0.46596031, 0.26867393, 0.65614343], +[ 0.46681665, 0.27270825, 0.66154354], +[ 0.467632 , 0.27676148, 0.66690758], +[ 0.46840632, 0.28083345, 0.67223496], +[ 0.46913959, 0.28492398, 0.67752502], +[ 0.46983176, 0.28903289, 0.68277713], +[ 0.47048281, 0.29316004, 0.68799058], +[ 0.4710927 , 0.29730529, 0.69316468], +[ 0.47166137, 0.30146848, 0.69829868], +[ 0.47218867, 0.30564956, 0.70339194], +[ 0.47267406, 0.30984863, 0.70844403], +[ 0.47311806, 0.3140653 , 0.71345366], +[ 0.47352067, 0.31829946, 0.71841996], +[ 0.47388188, 0.322551 , 0.72334205], +[ 0.47420168, 0.32681981, 0.728219 ], +[ 0.47448009, 0.33110575, 0.73304987], +[ 0.47471715, 0.33540873, 0.73783366], +[ 0.4749129 , 0.33972863, 0.74256938], +[ 0.47506742, 0.34406531, 0.74725597], +[ 0.4751808 , 0.34841867, 0.75189235], +[ 0.47525316, 0.35278857, 0.75647742], +[ 0.47528466, 0.35717487, 0.76101004], +[ 0.47527514, 0.36157758, 0.76548918], +[ 0.47522479, 0.36599656, 0.76991363], +[ 0.47513427, 0.37043147, 0.77428199], +[ 0.47500393, 0.37488213, 0.77859297], +[ 0.47483412, 0.37934834, 0.7828453 ], +[ 0.4746253 , 0.38382989, 0.78703766], +[ 0.47437795, 0.38832654, 0.7911687 ], +[ 0.47409263, 0.39283807, 0.79523708], +[ 0.47376999, 0.39736419, 0.79924139], +[ 0.47341074, 0.40190463, 0.80318024], +[ 0.47301567, 0.40645908, 0.80705223], +[ 0.47258566, 0.41102721, 0.81085591], +[ 0.47212171, 0.41560865, 0.81458986], +[ 0.4716249 , 0.42020304, 0.81825263], +[ 0.47109642, 0.42480997, 0.82184277], +[ 0.47053758, 0.42942898, 0.82535887], +[ 0.4699498 , 0.43405962, 0.82879947], +[ 0.46933466, 0.43870139, 0.83216318], +[ 0.46869383, 0.44335376, 0.83544858], +[ 0.46802917, 0.44801616, 0.83865432], +[ 0.46734263, 0.45268799, 0.84177905], +[ 0.46663636, 0.45736864, 0.84482148], +[ 0.46591265, 0.46205743, 0.84778034], +[ 0.46517394, 0.46675366, 0.85065444], +[ 0.46442285, 0.47145661, 0.85344263], +[ 0.46366216, 0.4761655 , 0.85614385], +[ 0.46289481, 0.48087955, 0.85875708], +[ 0.46212297, 0.48559831, 0.8612812 ], +[ 0.4613509 , 0.49032052, 0.86371555], +[ 0.46058208, 0.49504528, 0.86605942], +[ 0.45982017, 0.49977167, 0.86831217], +[ 0.45906898, 0.50449872, 0.87047333], +[ 0.4583325 , 0.50922545, 0.87254251], +[ 0.45761487, 0.51395086, 0.87451947], +[ 0.45692037, 0.51867392, 0.87640412], +[ 0.45625342, 0.52339359, 0.87819649], +[ 0.45561856, 0.52810881, 0.87989676], +[ 0.45502044, 0.53281852, 0.88150529], +[ 0.45446291, 0.53752203, 0.8830221 ], +[ 0.45395166, 0.5422179 , 0.88444824], +[ 0.45349173, 0.54690499, 0.88578463], +[ 0.45308803, 0.55158223, 0.88703226], +[ 0.45274551, 0.55624857, 0.8881923 ], +[ 0.45246908, 0.56090297, 0.88926607], +[ 0.45226366, 0.5655444 , 0.89025507], +[ 0.45213406, 0.57017185, 0.89116092], +[ 0.45208461, 0.57478456, 0.89198505], +[ 0.45212047, 0.57938135, 0.89272981], +[ 0.45224622, 0.5839613 , 0.89339735], +[ 0.45246621, 0.58852353, 0.89398987], +[ 0.45278458, 0.59306722, 0.89450974], +[ 0.45320531, 0.59759159, 0.89495941], +[ 0.45373211, 0.60209592, 0.89534144], +[ 0.45436847, 0.60657953, 0.8956585 ], +[ 0.45511768, 0.61104174, 0.89591342], +[ 0.45598269, 0.61548199, 0.89610905], +[ 0.45696613, 0.61989976, 0.89624827], +[ 0.45807033, 0.62429458, 0.89633399], +[ 0.45929732, 0.62866605, 0.89636919], +[ 0.46064879, 0.63301382, 0.89635684], +[ 0.46212629, 0.6373375 , 0.89630027], +[ 0.46373081, 0.6416369 , 0.89620239], +[ 0.46546305, 0.64591186, 0.89606608], +[ 0.46732345, 0.65016224, 0.89589433], +[ 0.46931216, 0.65438798, 0.89569008], +[ 0.47142903, 0.65858902, 0.89545627], +[ 0.47367364, 0.66276538, 0.89519579], +[ 0.47604536, 0.66691708, 0.89491161], +[ 0.47854335, 0.67104413, 0.89460702], +[ 0.48116628, 0.67514678, 0.89428415], +[ 0.48391278, 0.67922522, 0.89394566], +[ 0.48678129, 0.68327963, 0.89359417], +[ 0.48977007, 0.68731025, 0.89323218], +[ 0.4928772 , 0.69131735, 0.89286215], +[ 0.49610063, 0.69530122, 0.89248647], +[ 0.49943822, 0.69926217, 0.89210744], +[ 0.50288765, 0.70320047, 0.89172772], +[ 0.50644655, 0.70711649, 0.89134936], +[ 0.51011248, 0.71101066, 0.8909741 ], +[ 0.51388294, 0.71488334, 0.89060393], +[ 0.51775541, 0.71873493, 0.89024078], +[ 0.52172732, 0.72256583, 0.8898865 ], +[ 0.5257961 , 0.72637645, 0.88954287], +[ 0.52995915, 0.7301672 , 0.8892116 ], +[ 0.53421391, 0.7339385 , 0.88889434], +[ 0.5385578 , 0.73769077, 0.88859267], +[ 0.5429883 , 0.74142444, 0.88830811], +[ 0.54750281, 0.74513991, 0.88804246], +[ 0.5520989 , 0.74883762, 0.88779685], +[ 0.55677422, 0.75251799, 0.88757251], +[ 0.56152638, 0.75618144, 0.88737072], +[ 0.56635309, 0.75982839, 0.88719273], +[ 0.57125208, 0.76345922, 0.88703974], +[ 0.57622118, 0.76707435, 0.8869129 ], +[ 0.58125826, 0.77067417, 0.88681333], +[ 0.58636126, 0.77425906, 0.88674212], +[ 0.59152819, 0.7778294 , 0.88670031], +[ 0.59675713, 0.78138555, 0.88668891], +[ 0.60204624, 0.78492789, 0.88670892], +[ 0.60739371, 0.78845676, 0.88676131], +[ 0.61279785, 0.79197249, 0.886847 ], +[ 0.61825699, 0.79547544, 0.88696697], +[ 0.62376953, 0.79896592, 0.88712212], +[ 0.62933401, 0.80244424, 0.88731328], +[ 0.63494897, 0.80591071, 0.88754133], +[ 0.64061303, 0.80936562, 0.88780715], +[ 0.64632485, 0.81280925, 0.88811162], +[ 0.65208315, 0.81624189, 0.88845562], +[ 0.65788673, 0.81966379, 0.88884001], +[ 0.6637344 , 0.82307522, 0.88926568], +[ 0.66962506, 0.82647642, 0.88973352], +[ 0.67555762, 0.82986764, 0.89024441], +[ 0.68153106, 0.83324911, 0.89079928], +[ 0.68754438, 0.83662105, 0.89139904], +[ 0.69359663, 0.83998369, 0.89204464], +[ 0.69968688, 0.84333724, 0.89273702], +[ 0.70581423, 0.84668191, 0.89347718], +[ 0.71197782, 0.85001791, 0.8942661 ], +[ 0.7181769 , 0.85334541, 0.89510469], +[ 0.72441053, 0.85666464, 0.89599414], +[ 0.73067788, 0.8599758 , 0.89693553], +[ 0.73697811, 0.8632791 , 0.89793 ], +[ 0.74331039, 0.86657473, 0.89897869], +[ 0.74967389, 0.86986292, 0.90008279], +[ 0.75606778, 0.87314387, 0.90124351], +[ 0.76249117, 0.87641781, 0.90246212], +[ 0.7689432 , 0.87968498, 0.90373988], +[ 0.77542295, 0.88294564, 0.9050781 ], +[ 0.78192947, 0.88620003, 0.90647814], +[ 0.78846179, 0.88944845, 0.90794134], +[ 0.79501887, 0.89269119, 0.9094691 ], +[ 0.80159965, 0.89592859, 0.91106281], +[ 0.80820295, 0.899161 , 0.91272391], +[ 0.81482754, 0.90238881, 0.91445386], +[ 0.82147215, 0.90561245, 0.91625407], +[ 0.82813543, 0.90883237, 0.91812595], +[ 0.83481598, 0.91204906, 0.92007088], +[ 0.84151229, 0.91526306, 0.92209023], +[ 0.84822279, 0.91847494, 0.92418529], +[ 0.85494584, 0.92168533, 0.92635732], +[ 0.8616797 , 0.9248949 , 0.92860749], +[ 0.86842255, 0.92810438, 0.9309369 ], +[ 0.87517248, 0.93131455, 0.93334654], +[ 0.88192751, 0.93452625, 0.93583728], +[ 0.88868558, 0.93774038, 0.93840987], +[ 0.89544454, 0.94095789, 0.94106488], +[ 0.90220216, 0.9441798 , 0.94380273]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/freesurface-blue.js b/node_modules/colormap/res/res/freesurface-blue.js new file mode 100644 index 0000000..60d24f0 --- /dev/null +++ b/node_modules/colormap/res/res/freesurface-blue.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.1184171 , 0.01526684, 0.43258407], +[ 0.12067921, 0.01695195, 0.44019564], +[ 0.12292561, 0.01870061, 0.44778812], +[ 0.12516611, 0.0204299 , 0.45544255], +[ 0.12740178, 0.02212366, 0.46317121], +[ 0.12962084, 0.02388413, 0.4708762 ], +[ 0.13184428, 0.02551152, 0.47874043], +[ 0.13405019, 0.02720668, 0.48657719], +[ 0.13625161, 0.02883854, 0.49450308], +[ 0.13844278, 0.03045804, 0.50247031], +[ 0.14062205, 0.03207814, 0.51046645], +[ 0.1427967 , 0.03361242, 0.51856222], +[ 0.1449535 , 0.03520311, 0.52663757], +[ 0.14710964, 0.03664387, 0.53485915], +[ 0.1492449 , 0.03816736, 0.5430377 ], +[ 0.15137874, 0.03952682, 0.55136664], +[ 0.15349186, 0.04094643, 0.55966145], +[ 0.15560044, 0.04218473, 0.56808911], +[ 0.15768855, 0.04345215, 0.57649466], +[ 0.15977029, 0.04455541, 0.58502949], +[ 0.16183005, 0.04569489, 0.59353876], +[ 0.16388276, 0.04665775, 0.60218868], +[ 0.1659106 , 0.04767989, 0.61079711], +[ 0.16793098, 0.04850252, 0.61956492], +[ 0.16992592, 0.04936978, 0.62830444], +[ 0.17190644, 0.05010385, 0.63715302], +[ 0.17386413, 0.05081207, 0.64602908], +[ 0.1757986 , 0.05148156, 0.65494351], +[ 0.17771337, 0.05202943, 0.66395927], +[ 0.17959783, 0.05260516, 0.67296536], +[ 0.18145903, 0.05305518, 0.6820771 ], +[ 0.18328976, 0.05346759, 0.69123007], +[ 0.18508507, 0.05389685, 0.70038651], +[ 0.18684943, 0.054201 , 0.70965092], +[ 0.18857478, 0.0544801 , 0.71895267], +[ 0.19025634, 0.05477218, 0.72826764], +[ 0.19189171, 0.05504984, 0.73761861], +[ 0.19347912, 0.05523593, 0.74706258], +[ 0.19500927, 0.05544767, 0.75652204], +[ 0.19647652, 0.05569024, 0.76599904], +[ 0.19787421, 0.05597203, 0.77549431], +[ 0.19919438, 0.05630563, 0.78500678], +[ 0.20042756, 0.05670906, 0.79453302], +[ 0.20156248, 0.05720727, 0.80406655], +[ 0.20258574, 0.05783365, 0.813597 ], +[ 0.20348138, 0.05863177, 0.82310915], +[ 0.20423053, 0.05965689, 0.83258175], +[ 0.20481088, 0.06097709, 0.84198626], +[ 0.20519624, 0.06267363, 0.85128544], +[ 0.20535608, 0.06483982, 0.86043187], +[ 0.20524597, 0.06751231, 0.86941942], +[ 0.20482205, 0.07083683, 0.87815481], +[ 0.20402781, 0.07492401, 0.88655917], +[ 0.20280157, 0.07990081, 0.89451884], +[ 0.20105818, 0.08585484, 0.90193183], +[ 0.19873624, 0.09290598, 0.90860845], +[ 0.19577427, 0.10108763, 0.91437814], +[ 0.19214412, 0.11035212, 0.91907504], +[ 0.18786629, 0.12054514, 0.92258204], +[ 0.18301848, 0.13141592, 0.92486664], +[ 0.17772066, 0.14266598, 0.92599399], +[ 0.17209996, 0.1540184 , 0.92610184], +[ 0.1662746 , 0.16525594, 0.92536036], +[ 0.16034251, 0.17623156, 0.92393962], +[ 0.15437891, 0.18685945, 0.92199054], +[ 0.14843929, 0.19709897, 0.9196379 ], +[ 0.14256438, 0.20693917, 0.91698076], +[ 0.13678494, 0.21638689, 0.91409626], +[ 0.13112573, 0.22545863, 0.91104404], +[ 0.12560866, 0.23417531, 0.90787071], +[ 0.12027291, 0.24254932, 0.90462742], +[ 0.11511943, 0.25061482, 0.90132803], +[ 0.11017434, 0.25839092, 0.89799932], +[ 0.10546991, 0.26589343, 0.89466799], +[ 0.10101201, 0.27315039, 0.89133411], +[ 0.09684739, 0.28016923, 0.88802801], +[ 0.09297879, 0.28697717, 0.8847393 ], +[ 0.08945391, 0.29357982, 0.88149375], +[ 0.08628097, 0.29999926, 0.87828076], +[ 0.08350124, 0.30624175, 0.87511843], +[ 0.08112903, 0.3123234 , 0.8720006 ], +[ 0.07919168, 0.31825276, 0.86893469], +[ 0.07770808, 0.32403948, 0.86592315], +[ 0.07668747, 0.32969443, 0.8629626 ], +[ 0.07614566, 0.33522255, 0.86006266], +[ 0.07607788, 0.34063415, 0.85721677], +[ 0.07648042, 0.3459357 , 0.85442643], +[ 0.07734525, 0.35113207, 0.85169635], +[ 0.07865155, 0.35623095, 0.84902118], +[ 0.08037858, 0.36123728, 0.84640214], +[ 0.08250226, 0.36615523, 0.84384177], +[ 0.08499262, 0.37099061, 0.84133588], +[ 0.08782078, 0.37574754, 0.83888445], +[ 0.09095822, 0.38042921, 0.83648995], +[ 0.09437482, 0.38504023, 0.83414844], +[ 0.09804302, 0.38958401, 0.83185942], +[ 0.10193714, 0.39406326, 0.82962414], +[ 0.10603274, 0.39848136, 0.82744043], +[ 0.11030778, 0.40284121, 0.82530706], +[ 0.11474237, 0.40714526, 0.82322397], +[ 0.11931856, 0.41139587, 0.82119087], +[ 0.12402036, 0.41559557, 0.81920587], +[ 0.12883364, 0.41974649, 0.81726827], +[ 0.13374571, 0.42385044, 0.8153784 ], +[ 0.13874558, 0.42790946, 0.81353471], +[ 0.14382356, 0.43192539, 0.81173625], +[ 0.14897104, 0.43589985, 0.80998256], +[ 0.15418031, 0.4398343 , 0.80827372], +[ 0.15944493, 0.44373037, 0.80660816], +[ 0.16475909, 0.44758948, 0.80498529], +[ 0.1701175 , 0.45141288, 0.80340503], +[ 0.17551557, 0.45520181, 0.801867 ], +[ 0.18094947, 0.45895755, 0.80037004], +[ 0.18641566, 0.46268124, 0.79891369], +[ 0.19191066, 0.46637387, 0.79749827], +[ 0.19743173, 0.47003651, 0.79612311], +[ 0.2029765 , 0.4736702 , 0.79478734], +[ 0.20854272, 0.4772759 , 0.79349059], +[ 0.21412783, 0.48085441, 0.79223357], +[ 0.21973012, 0.48440666, 0.79101552], +[ 0.22534809, 0.48793355, 0.78983567], +[ 0.23098018, 0.4914359 , 0.78869374], +[ 0.23662436, 0.49491442, 0.78759055], +[ 0.24227928, 0.49836989, 0.78652584], +[ 0.24794409, 0.50180315, 0.78549856], +[ 0.25361757, 0.50521492, 0.78450854], +[ 0.25929841, 0.50860589, 0.78355594], +[ 0.26498455, 0.51197668, 0.78264237], +[ 0.27067599, 0.51532809, 0.78176581], +[ 0.27637175, 0.51866081, 0.78092614], +[ 0.28207087, 0.5219755 , 0.78012328], +[ 0.28777201, 0.52527277, 0.77935786], +[ 0.29347355, 0.52855324, 0.77863104], +[ 0.29917572, 0.53181763, 0.77794091], +[ 0.30487771, 0.53506656, 0.77728742], +[ 0.31057873, 0.53830065, 0.7766705 ], +[ 0.31627805, 0.54152052, 0.77609009], +[ 0.32197393, 0.54472673, 0.77554771], +[ 0.32766595, 0.5479199 , 0.77504283], +[ 0.33335412, 0.55110066, 0.77457431], +[ 0.33903784, 0.55426957, 0.77414209], +[ 0.34471649, 0.5574272 , 0.7737461 ], +[ 0.35038951, 0.56057412, 0.77338624], +[ 0.35605637, 0.56371089, 0.77306243], +[ 0.36171657, 0.56683805, 0.77277458], +[ 0.36736829, 0.56995616, 0.77252452], +[ 0.37301239, 0.57306575, 0.77231023], +[ 0.37864854, 0.57616733, 0.77213146], +[ 0.38427639, 0.57926141, 0.77198808], +[ 0.38989559, 0.58234848, 0.77187991], +[ 0.39550584, 0.58542905, 0.77180681], +[ 0.40110688, 0.58850358, 0.7717686 ], +[ 0.40669845, 0.59157255, 0.7717651 ], +[ 0.41228034, 0.59463641, 0.77179611], +[ 0.41785238, 0.59769562, 0.77186144], +[ 0.4234144 , 0.60075062, 0.77196087], +[ 0.42896628, 0.60380182, 0.77209418], +[ 0.43450793, 0.60684966, 0.77226115], +[ 0.44003926, 0.60989453, 0.77246153], +[ 0.44556024, 0.61293683, 0.7726951 ], +[ 0.45107084, 0.61597694, 0.77296158], +[ 0.45657105, 0.61901525, 0.77326074], +[ 0.46206091, 0.62205211, 0.7735923 ], +[ 0.46754044, 0.62508788, 0.773956 ], +[ 0.47300972, 0.6281229 , 0.77435157], +[ 0.47846882, 0.63115751, 0.77477873], +[ 0.48391785, 0.63419203, 0.77523721], +[ 0.4893569 , 0.63722677, 0.77572673], +[ 0.49478611, 0.64026205, 0.77624701], +[ 0.50020562, 0.64329815, 0.77679777], +[ 0.50561558, 0.64633537, 0.77737874], +[ 0.51101555, 0.64937406, 0.77799041], +[ 0.51640493, 0.65241459, 0.77863354], +[ 0.52178515, 0.65545708, 0.7793062 ], +[ 0.52715641, 0.65850178, 0.78000811], +[ 0.53251892, 0.66154893, 0.78073899], +[ 0.53787287, 0.66459878, 0.78149858], +[ 0.54321848, 0.66765156, 0.78228662], +[ 0.54855597, 0.6707075 , 0.78310284], +[ 0.553885 , 0.67376689, 0.7839477 ], +[ 0.55920404, 0.67683023, 0.78482325], +[ 0.56451555, 0.67989738, 0.78572632], +[ 0.56981976, 0.68296857, 0.78665668], +[ 0.5751169 , 0.68604397, 0.7876141 ], +[ 0.58040721, 0.68912379, 0.78859835], +[ 0.58569045, 0.69220828, 0.78960981], +[ 0.59096442, 0.69529804, 0.7906514 ], +[ 0.5962322 , 0.69839278, 0.79171922], +[ 0.60149404, 0.70149268, 0.79281308], +[ 0.60675016, 0.70459789, 0.7939328 ], +[ 0.61200077, 0.70770859, 0.79507818], +[ 0.61724247, 0.7108256 , 0.79625374], +[ 0.62247912, 0.71394843, 0.79745462], +[ 0.62771092, 0.71707723, 0.79868068], +[ 0.63293811, 0.72021217, 0.79993176], +[ 0.63815932, 0.72335368, 0.80120973], +[ 0.64337408, 0.72650206, 0.80251531], +[ 0.64858488, 0.72965701, 0.80384548], +[ 0.6537919 , 0.73281869, 0.80520013], +[ 0.65899459, 0.73598738, 0.8065801 ], +[ 0.66419075, 0.7391637 , 0.80798836], +[ 0.66938376, 0.74234716, 0.80942073], +[ 0.67457379, 0.7455379 , 0.81087716], +[ 0.67976007, 0.74873625, 0.81235878], +[ 0.68494079, 0.75194275, 0.81386804], +[ 0.69011911, 0.75515692, 0.81540108], +[ 0.6952952 , 0.7583789 , 0.81695786], +[ 0.70046724, 0.76160923, 0.81854083], +[ 0.70563549, 0.76484803, 0.82014984], +[ 0.71080204, 0.76809501, 0.8217824 ], +[ 0.715967 , 0.7713503 , 0.82343853], +[ 0.72112701, 0.7746148 , 0.82512266], +[ 0.72628554, 0.77788792, 0.82683057], +[ 0.73144297, 0.78116972, 0.82856197], +[ 0.73659759, 0.78446073, 0.83031917], +[ 0.74174954, 0.78776109, 0.83210217], +[ 0.74690081, 0.7910705 , 0.83390864], +[ 0.7520509 , 0.79438922, 0.83573939], +[ 0.75719758, 0.79771792, 0.8375974 ], +[ 0.76234396, 0.80105604, 0.83947894], +[ 0.76749008, 0.8044037 , 0.84138415], +[ 0.77263291, 0.80776177, 0.843317 ], +[ 0.77777552, 0.81112968, 0.84527384], +[ 0.78291815, 0.81450751, 0.84725454], +[ 0.78805839, 0.81789599, 0.8492623 ], +[ 0.79319816, 0.82129481, 0.85129492], +[ 0.79833817, 0.82470394, 0.85335169], +[ 0.80347637, 0.82812402, 0.85543536], +[ 0.80861403, 0.83155488, 0.85754452], +[ 0.81375203, 0.83499646, 0.85967827], +[ 0.81888853, 0.83844935, 0.8618391 ], +[ 0.82402452, 0.84191346, 0.86402595], +[ 0.82916086, 0.84538871, 0.86623798], +[ 0.83429573, 0.8488757 , 0.86847759], +[ 0.83943012, 0.85237433, 0.87074375], +[ 0.8445647 , 0.85588457, 0.87303586], +[ 0.84969761, 0.85940704, 0.87535638], +[ 0.85482997, 0.86294159, 0.87770411], +[ 0.85996213, 0.8664883 , 0.88007884], +[ 0.86509212, 0.87004779, 0.88248314], +[ 0.87022126, 0.87361989, 0.88491561], +[ 0.87534946, 0.87720476, 0.88737656], +[ 0.88047462, 0.8808031 , 0.88986869], +[ 0.88559813, 0.8844147 , 0.89239053], +[ 0.89071914, 0.88803992, 0.89494329], +[ 0.89583606, 0.89167935, 0.89752907], +[ 0.90094937, 0.89533301, 0.90014746], +[ 0.90605758, 0.89900147, 0.90280044], +[ 0.91115913, 0.90268529, 0.90549004], +[ 0.91625315, 0.90638489, 0.90821747], +[ 0.92133683, 0.91010119, 0.91098624], +[ 0.92640723, 0.91383519, 0.91379998], +[ 0.93145998, 0.91758827, 0.916664 ], +[ 0.93648664, 0.92136298, 0.91958839], +[ 0.9414715 , 0.92516389, 0.92259171], +[ 0.94634709, 0.92901013, 0.92575324]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/freesurface-red.js b/node_modules/colormap/res/res/freesurface-red.js new file mode 100644 index 0000000..015f75c --- /dev/null +++ b/node_modules/colormap/res/res/freesurface-red.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.23605636, 0.03529748, 0.06943744], +[ 0.24100716, 0.0366455 , 0.07093641], +[ 0.2459526 , 0.03800641, 0.07241714], +[ 0.2509034 , 0.03936202, 0.07386826], +[ 0.25585309, 0.04071754, 0.07529764], +[ 0.26080496, 0.04203632, 0.07670212], +[ 0.26576047, 0.04332636, 0.07808053], +[ 0.2707143 , 0.0445977 , 0.07943946], +[ 0.27567706, 0.04583263, 0.08076716], +[ 0.28063775, 0.04705096, 0.08207671], +[ 0.28560487, 0.04823854, 0.08335867], +[ 0.29057488, 0.04940214, 0.08461748], +[ 0.29554566, 0.05054612, 0.085856 ], +[ 0.30052609, 0.05165528, 0.08706404], +[ 0.30550643, 0.05274743, 0.08825339], +[ 0.31049277, 0.0538122 , 0.08941707], +[ 0.31548518, 0.05484987, 0.09055518], +[ 0.32047859, 0.05587007, 0.09167406], +[ 0.32548137, 0.05685797, 0.09276372], +[ 0.33048827, 0.0578235 , 0.09383067], +[ 0.33549718, 0.05877098, 0.0948777 ], +[ 0.34051687, 0.05968444, 0.09589399], +[ 0.34554046, 0.06057698, 0.09688817], +[ 0.35056696, 0.06145082, 0.09786159], +[ 0.35560365, 0.06229245, 0.09880504], +[ 0.36064578, 0.06311109, 0.09972452], +[ 0.36569165, 0.06391033, 0.10062225], +[ 0.37074502, 0.06468313, 0.10149332], +[ 0.37580723, 0.06542701, 0.10233586], +[ 0.38087388, 0.06615078, 0.10315552], +[ 0.38594528, 0.0668541 , 0.10395184], +[ 0.39102665, 0.06752673, 0.10471769], +[ 0.39611513, 0.06817445, 0.10545665], +[ 0.40120891, 0.06880108, 0.10617097], +[ 0.40630826, 0.0694063 , 0.1068601 ], +[ 0.41141561, 0.06998523, 0.10752041], +[ 0.41653225, 0.07053523, 0.10814974], +[ 0.42165482, 0.07106338, 0.10875243], +[ 0.42678353, 0.0715694 , 0.10932784], +[ 0.43191855, 0.07205306, 0.10987533], +[ 0.43706005, 0.07251411, 0.11039422], +[ 0.44221111, 0.07294594, 0.11087949], +[ 0.44736935, 0.07335374, 0.11133402], +[ 0.45253406, 0.07373915, 0.11175827], +[ 0.45770533, 0.0741021 , 0.11215148], +[ 0.46288321, 0.07444262, 0.1125129 ], +[ 0.4680677 , 0.07476076, 0.11284174], +[ 0.4732588 , 0.07505667, 0.11313719], +[ 0.47845647, 0.07533058, 0.11339844], +[ 0.48366061, 0.07558282, 0.11362463], +[ 0.48887111, 0.07581382, 0.11381491], +[ 0.4940878 , 0.07602416, 0.1139684 ], +[ 0.49931047, 0.07621457, 0.11408421], +[ 0.50453883, 0.07638593, 0.11416144], +[ 0.50977257, 0.07653932, 0.11419919], +[ 0.5150113 , 0.07667605, 0.11419653], +[ 0.52025455, 0.07679768, 0.11415256], +[ 0.52550177, 0.07690603, 0.11406635], +[ 0.53075236, 0.07700327, 0.11393703], +[ 0.53600739, 0.07708717, 0.11376027], +[ 0.5412669 , 0.07715821, 0.11353335], +[ 0.54652771, 0.0772256 , 0.11325957], +[ 0.55178873, 0.07729327, 0.11293812], +[ 0.55705126, 0.0773588 , 0.11256303], +[ 0.56231549, 0.07742288, 0.11212994], +[ 0.56757608, 0.07750158, 0.11164576], +[ 0.57283634, 0.07758744, 0.11109863], +[ 0.57809224, 0.07769353, 0.1104918 ], +[ 0.58334302, 0.07782425, 0.10982081], +[ 0.58858654, 0.07798816, 0.10908346], +[ 0.59382205, 0.07819019, 0.10827304], +[ 0.59904386, 0.07844999, 0.10739406], +[ 0.60425238, 0.07877012, 0.10643397], +[ 0.60944301, 0.07916809, 0.10539092], +[ 0.61461016, 0.07966497, 0.10426379], +[ 0.61974864, 0.08028124, 0.10304728], +[ 0.62485149, 0.08104315, 0.10173715], +[ 0.62990947, 0.08198423, 0.10033109], +[ 0.63491247, 0.08314096, 0.09882123], +[ 0.6398442 , 0.08456761, 0.09721146], +[ 0.64468435, 0.08632922, 0.0955073 ], +[ 0.6494054 , 0.08850866, 0.09372537], +[ 0.65397108, 0.0912077 , 0.09189703], +[ 0.65833339, 0.09454784, 0.09009202], +[ 0.66243651, 0.09864878, 0.08842866], +[ 0.66622885, 0.10358333, 0.08708307], +[ 0.66968657, 0.10931333, 0.08625839], +[ 0.67283171, 0.11566769, 0.08610729], +[ 0.6757203 , 0.12241372, 0.08666976], +[ 0.67841932, 0.12933456, 0.08789535], +[ 0.68098053, 0.13629052, 0.08968512], +[ 0.68344163, 0.14319787, 0.09193958], +[ 0.68583135, 0.15000536, 0.09457167], +[ 0.68816291, 0.1567016 , 0.09751128], +[ 0.69045161, 0.16327156, 0.10070151], +[ 0.69270196, 0.16972257, 0.10409997], +[ 0.69492052, 0.17605644, 0.10767181], +[ 0.6971115 , 0.18227855, 0.11138953], +[ 0.6992774 , 0.18839616, 0.11523156], +[ 0.70141951, 0.19441742, 0.11918104], +[ 0.70353886, 0.20034973, 0.12322434], +[ 0.70564258, 0.20618991, 0.12734437], +[ 0.70772377, 0.21195649, 0.13153872], +[ 0.70978728, 0.21764841, 0.1357956 ], +[ 0.71183309, 0.22327171, 0.14010893], +[ 0.71386148, 0.22883139, 0.14447333], +[ 0.71587167, 0.23433333, 0.1488853 ], +[ 0.71786835, 0.23977551, 0.15333627], +[ 0.71984546, 0.24517019, 0.1578295 ], +[ 0.72180819, 0.25051406, 0.16235679], +[ 0.72375695, 0.25581008, 0.16691534], +[ 0.72568839, 0.26106558, 0.17150678], +[ 0.72760326, 0.26628236, 0.17612862], +[ 0.72950484, 0.27145906, 0.18077571], +[ 0.73139331, 0.27659801, 0.1854465 ], +[ 0.73326636, 0.28170419, 0.1901424 ], +[ 0.73512444, 0.28677915, 0.19486192], +[ 0.73696794, 0.29182437, 0.19960372], +[ 0.73879722, 0.29684126, 0.20436661], +[ 0.74061257, 0.3018312 , 0.20914956], +[ 0.74241428, 0.3067955 , 0.21395164], +[ 0.74420258, 0.31173541, 0.21877203], +[ 0.74597769, 0.31665214, 0.22360999], +[ 0.74773979, 0.32154685, 0.22846487], +[ 0.74948906, 0.32642063, 0.23333611], +[ 0.75122564, 0.33127454, 0.23822317], +[ 0.75294966, 0.33610958, 0.2431256 ], +[ 0.75466125, 0.34092672, 0.24804299], +[ 0.75636051, 0.34572688, 0.25297497], +[ 0.75804753, 0.35051093, 0.25792121], +[ 0.75972242, 0.35527971, 0.26288139], +[ 0.76138524, 0.36003402, 0.26785526], +[ 0.76303608, 0.36477461, 0.27284255], +[ 0.76467502, 0.36950222, 0.27784304], +[ 0.76630212, 0.37421753, 0.28285652], +[ 0.76791746, 0.37892121, 0.28788279], +[ 0.76952314, 0.38361222, 0.29291941], +[ 0.77111955, 0.38829095, 0.29796588], +[ 0.77270462, 0.39295977, 0.30302441], +[ 0.7742784 , 0.39761922, 0.30809485], +[ 0.77584097, 0.40226986, 0.31317706], +[ 0.77739238, 0.40691217, 0.31827091], +[ 0.77893512, 0.41154481, 0.32337366], +[ 0.78047016, 0.41616762, 0.32848423], +[ 0.78199439, 0.42078349, 0.33360594], +[ 0.78350789, 0.42539284, 0.33873868], +[ 0.78501073, 0.42999609, 0.34388233], +[ 0.78650668, 0.43459097, 0.34903287], +[ 0.78799506, 0.43917847, 0.354191 ], +[ 0.78947313, 0.44376102, 0.35935965], +[ 0.79094096, 0.44833894, 0.36453871], +[ 0.79240077, 0.45291112, 0.36972583], +[ 0.79385565, 0.45747587, 0.37491782], +[ 0.79530063, 0.46203701, 0.38011987], +[ 0.79673584, 0.46659481, 0.38533185], +[ 0.79816448, 0.47114749, 0.39055045], +[ 0.79958815, 0.47569443, 0.39577406], +[ 0.8010024 , 0.4802389 , 0.40100727], +[ 0.80240737, 0.48478113, 0.40624996], +[ 0.80380944, 0.48931741, 0.41149566], +[ 0.80520425, 0.49385086, 0.41674883], +[ 0.80659018, 0.49838283, 0.42201115], +[ 0.80797029, 0.50291172, 0.42727955], +[ 0.80934717, 0.50743629, 0.4325515 ], +[ 0.81071558, 0.51196007, 0.43783228], +[ 0.81207638, 0.5164828 , 0.44312105], +[ 0.81343685, 0.52100046, 0.44841067], +[ 0.8147893 , 0.52551795, 0.4537088 ], +[ 0.81613394, 0.53003538, 0.45901524], +[ 0.81747897, 0.5345483 , 0.46432204], +[ 0.81881703, 0.53906126, 0.46963645], +[ 0.8201478 , 0.54357471, 0.47495881], +[ 0.82147918, 0.54808444, 0.48028157], +[ 0.82280449, 0.55259451, 0.48561123], +[ 0.82412305, 0.55710554, 0.49094847], +[ 0.8254432 , 0.56161322, 0.49628544], +[ 0.82675744, 0.56612192, 0.50162934], +[ 0.82806604, 0.57063173, 0.50697994], +[ 0.82937681, 0.57513873, 0.51233002], +[ 0.83068173, 0.57964746, 0.51768714], +[ 0.83198326, 0.58415686, 0.52304908], +[ 0.83328588, 0.58866484, 0.5284118 ], +[ 0.83458333, 0.5931749 , 0.53378113], +[ 0.8358801 , 0.59768496, 0.53915303], +[ 0.83717645, 0.60219516, 0.54452738], +[ 0.83846835, 0.60670775, 0.54990789], +[ 0.83976265, 0.61121955, 0.55528849], +[ 0.8410547 , 0.61573311, 0.56067344], +[ 0.84234408, 0.62024886, 0.56606321], +[ 0.84363717, 0.62476392, 0.57145221], +[ 0.84492701, 0.62928191, 0.57684673], +[ 0.84621797, 0.63380094, 0.58224299], +[ 0.84751018, 0.63832119, 0.58764099], +[ 0.84879999, 0.64284461, 0.593044 ], +[ 0.85009482, 0.64736793, 0.59844571], +[ 0.85138839, 0.65189431, 0.60385164], +[ 0.85268319, 0.65642282, 0.60925975], +[ 0.85398149, 0.66095265, 0.61466822], +[ 0.85527884, 0.66548603, 0.62008095], +[ 0.85658162, 0.6700203 , 0.62549264], +[ 0.85788519, 0.67455777, 0.63090732], +[ 0.85919114, 0.67909794, 0.63632378], +[ 0.86050197, 0.68363992, 0.64174006], +[ 0.86181344, 0.68818579, 0.64715977], +[ 0.86313161, 0.69273312, 0.65257806], +[ 0.86445197, 0.69728408, 0.65799876], +[ 0.86577662, 0.70183799, 0.66342026], +[ 0.86710699, 0.70639443, 0.66884154], +[ 0.86843979, 0.71095503, 0.67426538], +[ 0.8697811 , 0.71551742, 0.67968704], +[ 0.87112572, 0.72008401, 0.6851108 ], +[ 0.87247699, 0.7246536 , 0.69053414], +[ 0.87383465, 0.72922652, 0.69595742], +[ 0.87519745, 0.7338035 , 0.70138174], +[ 0.87656942, 0.73838308, 0.7068041 ], +[ 0.87794657, 0.74296713, 0.71222776], +[ 0.87933298, 0.74755418, 0.71764969], +[ 0.88072655, 0.75214529, 0.72307166], +[ 0.88212837, 0.75674024, 0.72849299], +[ 0.88353983, 0.76133869, 0.73391278], +[ 0.88495882, 0.76594169, 0.73933276], +[ 0.88638969, 0.77054772, 0.74474984], +[ 0.88782898, 0.77515837, 0.75016676], +[ 0.88927961, 0.77977269, 0.7555815 ], +[ 0.89074089, 0.78439118, 0.76099475], +[ 0.89221327, 0.78901387, 0.76640633], +[ 0.89369834, 0.79364037, 0.77181526], +[ 0.89519472, 0.79827141, 0.77722272], +[ 0.89670542, 0.80290607, 0.78262669], +[ 0.8982287 , 0.80754523, 0.78802864], +[ 0.89976654, 0.81218834, 0.79342729], +[ 0.90131894, 0.81683563, 0.79882287], +[ 0.90288651, 0.8214871 , 0.80421511], +[ 0.9044705 , 0.82614249, 0.80960336], +[ 0.90607068, 0.83080212, 0.81498794], +[ 0.90768898, 0.83546549, 0.82036775], +[ 0.90932516, 0.84013293, 0.82574316], +[ 0.91098071, 0.8448041 , 0.83111336], +[ 0.91265627, 0.84947901, 0.83647814], +[ 0.91435297, 0.85415748, 0.84183697], +[ 0.91607186, 0.85883936, 0.84718938], +[ 0.91781428, 0.86352441, 0.85253473], +[ 0.9195813 , 0.86821249, 0.85787257], +[ 0.92137476, 0.87290318, 0.86320196], +[ 0.92319608, 0.87759623, 0.86852224], +[ 0.92504735, 0.88229114, 0.87383237], +[ 0.92693098, 0.88698733, 0.87913111], +[ 0.92884915, 0.8916843 , 0.8844174 ], +[ 0.93080613, 0.89638082, 0.8896889 ], +[ 0.93280442, 0.90107632, 0.89494445], +[ 0.93485093, 0.90576867, 0.90018015], +[ 0.93695162, 0.91045614, 0.9053928 ], +[ 0.93911755, 0.91513525, 0.91057619], +[ 0.94136572, 0.91980053, 0.91572063], +[ 0.9437291 , 0.92444114, 0.92080706], +[ 0.94634709, 0.92901013, 0.92575324]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/inferno.js b/node_modules/colormap/res/res/inferno.js new file mode 100644 index 0000000..59b06c6 --- /dev/null +++ b/node_modules/colormap/res/res/inferno.js @@ -0,0 +1,258 @@ +module.exports = [ +[0.001462, 0.000466, 0.013866], +[0.002267, 0.001270, 0.018570], +[0.003299, 0.002249, 0.024239], +[0.004547, 0.003392, 0.030909], +[0.006006, 0.004692, 0.038558], +[0.007676, 0.006136, 0.046836], +[0.009561, 0.007713, 0.055143], +[0.011663, 0.009417, 0.063460], +[0.013995, 0.011225, 0.071862], +[0.016561, 0.013136, 0.080282], +[0.019373, 0.015133, 0.088767], +[0.022447, 0.017199, 0.097327], +[0.025793, 0.019331, 0.105930], +[0.029432, 0.021503, 0.114621], +[0.033385, 0.023702, 0.123397], +[0.037668, 0.025921, 0.132232], +[0.042253, 0.028139, 0.141141], +[0.046915, 0.030324, 0.150164], +[0.051644, 0.032474, 0.159254], +[0.056449, 0.034569, 0.168414], +[0.061340, 0.036590, 0.177642], +[0.066331, 0.038504, 0.186962], +[0.071429, 0.040294, 0.196354], +[0.076637, 0.041905, 0.205799], +[0.081962, 0.043328, 0.215289], +[0.087411, 0.044556, 0.224813], +[0.092990, 0.045583, 0.234358], +[0.098702, 0.046402, 0.243904], +[0.104551, 0.047008, 0.253430], +[0.110536, 0.047399, 0.262912], +[0.116656, 0.047574, 0.272321], +[0.122908, 0.047536, 0.281624], +[0.129285, 0.047293, 0.290788], +[0.135778, 0.046856, 0.299776], +[0.142378, 0.046242, 0.308553], +[0.149073, 0.045468, 0.317085], +[0.155850, 0.044559, 0.325338], +[0.162689, 0.043554, 0.333277], +[0.169575, 0.042489, 0.340874], +[0.176493, 0.041402, 0.348111], +[0.183429, 0.040329, 0.354971], +[0.190367, 0.039309, 0.361447], +[0.197297, 0.038400, 0.367535], +[0.204209, 0.037632, 0.373238], +[0.211095, 0.037030, 0.378563], +[0.217949, 0.036615, 0.383522], +[0.224763, 0.036405, 0.388129], +[0.231538, 0.036405, 0.392400], +[0.238273, 0.036621, 0.396353], +[0.244967, 0.037055, 0.400007], +[0.251620, 0.037705, 0.403378], +[0.258234, 0.038571, 0.406485], +[0.264810, 0.039647, 0.409345], +[0.271347, 0.040922, 0.411976], +[0.277850, 0.042353, 0.414392], +[0.284321, 0.043933, 0.416608], +[0.290763, 0.045644, 0.418637], +[0.297178, 0.047470, 0.420491], +[0.303568, 0.049396, 0.422182], +[0.309935, 0.051407, 0.423721], +[0.316282, 0.053490, 0.425116], +[0.322610, 0.055634, 0.426377], +[0.328921, 0.057827, 0.427511], +[0.335217, 0.060060, 0.428524], +[0.341500, 0.062325, 0.429425], +[0.347771, 0.064616, 0.430217], +[0.354032, 0.066925, 0.430906], +[0.360284, 0.069247, 0.431497], +[0.366529, 0.071579, 0.431994], +[0.372768, 0.073915, 0.432400], +[0.379001, 0.076253, 0.432719], +[0.385228, 0.078591, 0.432955], +[0.391453, 0.080927, 0.433109], +[0.397674, 0.083257, 0.433183], +[0.403894, 0.085580, 0.433179], +[0.410113, 0.087896, 0.433098], +[0.416331, 0.090203, 0.432943], +[0.422549, 0.092501, 0.432714], +[0.428768, 0.094790, 0.432412], +[0.434987, 0.097069, 0.432039], +[0.441207, 0.099338, 0.431594], +[0.447428, 0.101597, 0.431080], +[0.453651, 0.103848, 0.430498], +[0.459875, 0.106089, 0.429846], +[0.466100, 0.108322, 0.429125], +[0.472328, 0.110547, 0.428334], +[0.478558, 0.112764, 0.427475], +[0.484789, 0.114974, 0.426548], +[0.491022, 0.117179, 0.425552], +[0.497257, 0.119379, 0.424488], +[0.503493, 0.121575, 0.423356], +[0.509730, 0.123769, 0.422156], +[0.515967, 0.125960, 0.420887], +[0.522206, 0.128150, 0.419549], +[0.528444, 0.130341, 0.418142], +[0.534683, 0.132534, 0.416667], +[0.540920, 0.134729, 0.415123], +[0.547157, 0.136929, 0.413511], +[0.553392, 0.139134, 0.411829], +[0.559624, 0.141346, 0.410078], +[0.565854, 0.143567, 0.408258], +[0.572081, 0.145797, 0.406369], +[0.578304, 0.148039, 0.404411], +[0.584521, 0.150294, 0.402385], +[0.590734, 0.152563, 0.400290], +[0.596940, 0.154848, 0.398125], +[0.603139, 0.157151, 0.395891], +[0.609330, 0.159474, 0.393589], +[0.615513, 0.161817, 0.391219], +[0.621685, 0.164184, 0.388781], +[0.627847, 0.166575, 0.386276], +[0.633998, 0.168992, 0.383704], +[0.640135, 0.171438, 0.381065], +[0.646260, 0.173914, 0.378359], +[0.652369, 0.176421, 0.375586], +[0.658463, 0.178962, 0.372748], +[0.664540, 0.181539, 0.369846], +[0.670599, 0.184153, 0.366879], +[0.676638, 0.186807, 0.363849], +[0.682656, 0.189501, 0.360757], +[0.688653, 0.192239, 0.357603], +[0.694627, 0.195021, 0.354388], +[0.700576, 0.197851, 0.351113], +[0.706500, 0.200728, 0.347777], +[0.712396, 0.203656, 0.344383], +[0.718264, 0.206636, 0.340931], +[0.724103, 0.209670, 0.337424], +[0.729909, 0.212759, 0.333861], +[0.735683, 0.215906, 0.330245], +[0.741423, 0.219112, 0.326576], +[0.747127, 0.222378, 0.322856], +[0.752794, 0.225706, 0.319085], +[0.758422, 0.229097, 0.315266], +[0.764010, 0.232554, 0.311399], +[0.769556, 0.236077, 0.307485], +[0.775059, 0.239667, 0.303526], +[0.780517, 0.243327, 0.299523], +[0.785929, 0.247056, 0.295477], +[0.791293, 0.250856, 0.291390], +[0.796607, 0.254728, 0.287264], +[0.801871, 0.258674, 0.283099], +[0.807082, 0.262692, 0.278898], +[0.812239, 0.266786, 0.274661], +[0.817341, 0.270954, 0.270390], +[0.822386, 0.275197, 0.266085], +[0.827372, 0.279517, 0.261750], +[0.832299, 0.283913, 0.257383], +[0.837165, 0.288385, 0.252988], +[0.841969, 0.292933, 0.248564], +[0.846709, 0.297559, 0.244113], +[0.851384, 0.302260, 0.239636], +[0.855992, 0.307038, 0.235133], +[0.860533, 0.311892, 0.230606], +[0.865006, 0.316822, 0.226055], +[0.869409, 0.321827, 0.221482], +[0.873741, 0.326906, 0.216886], +[0.878001, 0.332060, 0.212268], +[0.882188, 0.337287, 0.207628], +[0.886302, 0.342586, 0.202968], +[0.890341, 0.347957, 0.198286], +[0.894305, 0.353399, 0.193584], +[0.898192, 0.358911, 0.188860], +[0.902003, 0.364492, 0.184116], +[0.905735, 0.370140, 0.179350], +[0.909390, 0.375856, 0.174563], +[0.912966, 0.381636, 0.169755], +[0.916462, 0.387481, 0.164924], +[0.919879, 0.393389, 0.160070], +[0.923215, 0.399359, 0.155193], +[0.926470, 0.405389, 0.150292], +[0.929644, 0.411479, 0.145367], +[0.932737, 0.417627, 0.140417], +[0.935747, 0.423831, 0.135440], +[0.938675, 0.430091, 0.130438], +[0.941521, 0.436405, 0.125409], +[0.944285, 0.442772, 0.120354], +[0.946965, 0.449191, 0.115272], +[0.949562, 0.455660, 0.110164], +[0.952075, 0.462178, 0.105031], +[0.954506, 0.468744, 0.099874], +[0.956852, 0.475356, 0.094695], +[0.959114, 0.482014, 0.089499], +[0.961293, 0.488716, 0.084289], +[0.963387, 0.495462, 0.079073], +[0.965397, 0.502249, 0.073859], +[0.967322, 0.509078, 0.068659], +[0.969163, 0.515946, 0.063488], +[0.970919, 0.522853, 0.058367], +[0.972590, 0.529798, 0.053324], +[0.974176, 0.536780, 0.048392], +[0.975677, 0.543798, 0.043618], +[0.977092, 0.550850, 0.039050], +[0.978422, 0.557937, 0.034931], +[0.979666, 0.565057, 0.031409], +[0.980824, 0.572209, 0.028508], +[0.981895, 0.579392, 0.026250], +[0.982881, 0.586606, 0.024661], +[0.983779, 0.593849, 0.023770], +[0.984591, 0.601122, 0.023606], +[0.985315, 0.608422, 0.024202], +[0.985952, 0.615750, 0.025592], +[0.986502, 0.623105, 0.027814], +[0.986964, 0.630485, 0.030908], +[0.987337, 0.637890, 0.034916], +[0.987622, 0.645320, 0.039886], +[0.987819, 0.652773, 0.045581], +[0.987926, 0.660250, 0.051750], +[0.987945, 0.667748, 0.058329], +[0.987874, 0.675267, 0.065257], +[0.987714, 0.682807, 0.072489], +[0.987464, 0.690366, 0.079990], +[0.987124, 0.697944, 0.087731], +[0.986694, 0.705540, 0.095694], +[0.986175, 0.713153, 0.103863], +[0.985566, 0.720782, 0.112229], +[0.984865, 0.728427, 0.120785], +[0.984075, 0.736087, 0.129527], +[0.983196, 0.743758, 0.138453], +[0.982228, 0.751442, 0.147565], +[0.981173, 0.759135, 0.156863], +[0.980032, 0.766837, 0.166353], +[0.978806, 0.774545, 0.176037], +[0.977497, 0.782258, 0.185923], +[0.976108, 0.789974, 0.196018], +[0.974638, 0.797692, 0.206332], +[0.973088, 0.805409, 0.216877], +[0.971468, 0.813122, 0.227658], +[0.969783, 0.820825, 0.238686], +[0.968041, 0.828515, 0.249972], +[0.966243, 0.836191, 0.261534], +[0.964394, 0.843848, 0.273391], +[0.962517, 0.851476, 0.285546], +[0.960626, 0.859069, 0.298010], +[0.958720, 0.866624, 0.310820], +[0.956834, 0.874129, 0.323974], +[0.954997, 0.881569, 0.337475], +[0.953215, 0.888942, 0.351369], +[0.951546, 0.896226, 0.365627], +[0.950018, 0.903409, 0.380271], +[0.948683, 0.910473, 0.395289], +[0.947594, 0.917399, 0.410665], +[0.946809, 0.924168, 0.426373], +[0.946392, 0.930761, 0.442367], +[0.946403, 0.937159, 0.458592], +[0.946903, 0.943348, 0.474970], +[0.947937, 0.949318, 0.491426], +[0.949545, 0.955063, 0.507860], +[0.951740, 0.960587, 0.524203], +[0.954529, 0.965896, 0.540361], +[0.957896, 0.971003, 0.556275], +[0.961812, 0.975924, 0.571925], +[0.966249, 0.980678, 0.587206], +[0.971162, 0.985282, 0.602154], +[0.976511, 0.989753, 0.616760], +[0.982257, 0.994109, 0.631017], +[0.988362, 0.998364, 0.644924] +]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/magma.js b/node_modules/colormap/res/res/magma.js new file mode 100644 index 0000000..c3cd0ae --- /dev/null +++ b/node_modules/colormap/res/res/magma.js @@ -0,0 +1,258 @@ +module.exports = [ +[0.001462, 0.000466, 0.013866], +[0.002258, 0.001295, 0.018331], +[0.003279, 0.002305, 0.023708], +[0.004512, 0.003490, 0.029965], +[0.005950, 0.004843, 0.037130], +[0.007588, 0.006356, 0.044973], +[0.009426, 0.008022, 0.052844], +[0.011465, 0.009828, 0.060750], +[0.013708, 0.011771, 0.068667], +[0.016156, 0.013840, 0.076603], +[0.018815, 0.016026, 0.084584], +[0.021692, 0.018320, 0.092610], +[0.024792, 0.020715, 0.100676], +[0.028123, 0.023201, 0.108787], +[0.031696, 0.025765, 0.116965], +[0.035520, 0.028397, 0.125209], +[0.039608, 0.031090, 0.133515], +[0.043830, 0.033830, 0.141886], +[0.048062, 0.036607, 0.150327], +[0.052320, 0.039407, 0.158841], +[0.056615, 0.042160, 0.167446], +[0.060949, 0.044794, 0.176129], +[0.065330, 0.047318, 0.184892], +[0.069764, 0.049726, 0.193735], +[0.074257, 0.052017, 0.202660], +[0.078815, 0.054184, 0.211667], +[0.083446, 0.056225, 0.220755], +[0.088155, 0.058133, 0.229922], +[0.092949, 0.059904, 0.239164], +[0.097833, 0.061531, 0.248477], +[0.102815, 0.063010, 0.257854], +[0.107899, 0.064335, 0.267289], +[0.113094, 0.065492, 0.276784], +[0.118405, 0.066479, 0.286321], +[0.123833, 0.067295, 0.295879], +[0.129380, 0.067935, 0.305443], +[0.135053, 0.068391, 0.315000], +[0.140858, 0.068654, 0.324538], +[0.146785, 0.068738, 0.334011], +[0.152839, 0.068637, 0.343404], +[0.159018, 0.068354, 0.352688], +[0.165308, 0.067911, 0.361816], +[0.171713, 0.067305, 0.370771], +[0.178212, 0.066576, 0.379497], +[0.184801, 0.065732, 0.387973], +[0.191460, 0.064818, 0.396152], +[0.198177, 0.063862, 0.404009], +[0.204935, 0.062907, 0.411514], +[0.211718, 0.061992, 0.418647], +[0.218512, 0.061158, 0.425392], +[0.225302, 0.060445, 0.431742], +[0.232077, 0.059889, 0.437695], +[0.238826, 0.059517, 0.443256], +[0.245543, 0.059352, 0.448436], +[0.252220, 0.059415, 0.453248], +[0.258857, 0.059706, 0.457710], +[0.265447, 0.060237, 0.461840], +[0.271994, 0.060994, 0.465660], +[0.278493, 0.061978, 0.469190], +[0.284951, 0.063168, 0.472451], +[0.291366, 0.064553, 0.475462], +[0.297740, 0.066117, 0.478243], +[0.304081, 0.067835, 0.480812], +[0.310382, 0.069702, 0.483186], +[0.316654, 0.071690, 0.485380], +[0.322899, 0.073782, 0.487408], +[0.329114, 0.075972, 0.489287], +[0.335308, 0.078236, 0.491024], +[0.341482, 0.080564, 0.492631], +[0.347636, 0.082946, 0.494121], +[0.353773, 0.085373, 0.495501], +[0.359898, 0.087831, 0.496778], +[0.366012, 0.090314, 0.497960], +[0.372116, 0.092816, 0.499053], +[0.378211, 0.095332, 0.500067], +[0.384299, 0.097855, 0.501002], +[0.390384, 0.100379, 0.501864], +[0.396467, 0.102902, 0.502658], +[0.402548, 0.105420, 0.503386], +[0.408629, 0.107930, 0.504052], +[0.414709, 0.110431, 0.504662], +[0.420791, 0.112920, 0.505215], +[0.426877, 0.115395, 0.505714], +[0.432967, 0.117855, 0.506160], +[0.439062, 0.120298, 0.506555], +[0.445163, 0.122724, 0.506901], +[0.451271, 0.125132, 0.507198], +[0.457386, 0.127522, 0.507448], +[0.463508, 0.129893, 0.507652], +[0.469640, 0.132245, 0.507809], +[0.475780, 0.134577, 0.507921], +[0.481929, 0.136891, 0.507989], +[0.488088, 0.139186, 0.508011], +[0.494258, 0.141462, 0.507988], +[0.500438, 0.143719, 0.507920], +[0.506629, 0.145958, 0.507806], +[0.512831, 0.148179, 0.507648], +[0.519045, 0.150383, 0.507443], +[0.525270, 0.152569, 0.507192], +[0.531507, 0.154739, 0.506895], +[0.537755, 0.156894, 0.506551], +[0.544015, 0.159033, 0.506159], +[0.550287, 0.161158, 0.505719], +[0.556571, 0.163269, 0.505230], +[0.562866, 0.165368, 0.504692], +[0.569172, 0.167454, 0.504105], +[0.575490, 0.169530, 0.503466], +[0.581819, 0.171596, 0.502777], +[0.588158, 0.173652, 0.502035], +[0.594508, 0.175701, 0.501241], +[0.600868, 0.177743, 0.500394], +[0.607238, 0.179779, 0.499492], +[0.613617, 0.181811, 0.498536], +[0.620005, 0.183840, 0.497524], +[0.626401, 0.185867, 0.496456], +[0.632805, 0.187893, 0.495332], +[0.639216, 0.189921, 0.494150], +[0.645633, 0.191952, 0.492910], +[0.652056, 0.193986, 0.491611], +[0.658483, 0.196027, 0.490253], +[0.664915, 0.198075, 0.488836], +[0.671349, 0.200133, 0.487358], +[0.677786, 0.202203, 0.485819], +[0.684224, 0.204286, 0.484219], +[0.690661, 0.206384, 0.482558], +[0.697098, 0.208501, 0.480835], +[0.703532, 0.210638, 0.479049], +[0.709962, 0.212797, 0.477201], +[0.716387, 0.214982, 0.475290], +[0.722805, 0.217194, 0.473316], +[0.729216, 0.219437, 0.471279], +[0.735616, 0.221713, 0.469180], +[0.742004, 0.224025, 0.467018], +[0.748378, 0.226377, 0.464794], +[0.754737, 0.228772, 0.462509], +[0.761077, 0.231214, 0.460162], +[0.767398, 0.233705, 0.457755], +[0.773695, 0.236249, 0.455289], +[0.779968, 0.238851, 0.452765], +[0.786212, 0.241514, 0.450184], +[0.792427, 0.244242, 0.447543], +[0.798608, 0.247040, 0.444848], +[0.804752, 0.249911, 0.442102], +[0.810855, 0.252861, 0.439305], +[0.816914, 0.255895, 0.436461], +[0.822926, 0.259016, 0.433573], +[0.828886, 0.262229, 0.430644], +[0.834791, 0.265540, 0.427671], +[0.840636, 0.268953, 0.424666], +[0.846416, 0.272473, 0.421631], +[0.852126, 0.276106, 0.418573], +[0.857763, 0.279857, 0.415496], +[0.863320, 0.283729, 0.412403], +[0.868793, 0.287728, 0.409303], +[0.874176, 0.291859, 0.406205], +[0.879464, 0.296125, 0.403118], +[0.884651, 0.300530, 0.400047], +[0.889731, 0.305079, 0.397002], +[0.894700, 0.309773, 0.393995], +[0.899552, 0.314616, 0.391037], +[0.904281, 0.319610, 0.388137], +[0.908884, 0.324755, 0.385308], +[0.913354, 0.330052, 0.382563], +[0.917689, 0.335500, 0.379915], +[0.921884, 0.341098, 0.377376], +[0.925937, 0.346844, 0.374959], +[0.929845, 0.352734, 0.372677], +[0.933606, 0.358764, 0.370541], +[0.937221, 0.364929, 0.368567], +[0.940687, 0.371224, 0.366762], +[0.944006, 0.377643, 0.365136], +[0.947180, 0.384178, 0.363701], +[0.950210, 0.390820, 0.362468], +[0.953099, 0.397563, 0.361438], +[0.955849, 0.404400, 0.360619], +[0.958464, 0.411324, 0.360014], +[0.960949, 0.418323, 0.359630], +[0.963310, 0.425390, 0.359469], +[0.965549, 0.432519, 0.359529], +[0.967671, 0.439703, 0.359810], +[0.969680, 0.446936, 0.360311], +[0.971582, 0.454210, 0.361030], +[0.973381, 0.461520, 0.361965], +[0.975082, 0.468861, 0.363111], +[0.976690, 0.476226, 0.364466], +[0.978210, 0.483612, 0.366025], +[0.979645, 0.491014, 0.367783], +[0.981000, 0.498428, 0.369734], +[0.982279, 0.505851, 0.371874], +[0.983485, 0.513280, 0.374198], +[0.984622, 0.520713, 0.376698], +[0.985693, 0.528148, 0.379371], +[0.986700, 0.535582, 0.382210], +[0.987646, 0.543015, 0.385210], +[0.988533, 0.550446, 0.388365], +[0.989363, 0.557873, 0.391671], +[0.990138, 0.565296, 0.395122], +[0.990871, 0.572706, 0.398714], +[0.991558, 0.580107, 0.402441], +[0.992196, 0.587502, 0.406299], +[0.992785, 0.594891, 0.410283], +[0.993326, 0.602275, 0.414390], +[0.993834, 0.609644, 0.418613], +[0.994309, 0.616999, 0.422950], +[0.994738, 0.624350, 0.427397], +[0.995122, 0.631696, 0.431951], +[0.995480, 0.639027, 0.436607], +[0.995810, 0.646344, 0.441361], +[0.996096, 0.653659, 0.446213], +[0.996341, 0.660969, 0.451160], +[0.996580, 0.668256, 0.456192], +[0.996775, 0.675541, 0.461314], +[0.996925, 0.682828, 0.466526], +[0.997077, 0.690088, 0.471811], +[0.997186, 0.697349, 0.477182], +[0.997254, 0.704611, 0.482635], +[0.997325, 0.711848, 0.488154], +[0.997351, 0.719089, 0.493755], +[0.997351, 0.726324, 0.499428], +[0.997341, 0.733545, 0.505167], +[0.997285, 0.740772, 0.510983], +[0.997228, 0.747981, 0.516859], +[0.997138, 0.755190, 0.522806], +[0.997019, 0.762398, 0.528821], +[0.996898, 0.769591, 0.534892], +[0.996727, 0.776795, 0.541039], +[0.996571, 0.783977, 0.547233], +[0.996369, 0.791167, 0.553499], +[0.996162, 0.798348, 0.559820], +[0.995932, 0.805527, 0.566202], +[0.995680, 0.812706, 0.572645], +[0.995424, 0.819875, 0.579140], +[0.995131, 0.827052, 0.585701], +[0.994851, 0.834213, 0.592307], +[0.994524, 0.841387, 0.598983], +[0.994222, 0.848540, 0.605696], +[0.993866, 0.855711, 0.612482], +[0.993545, 0.862859, 0.619299], +[0.993170, 0.870024, 0.626189], +[0.992831, 0.877168, 0.633109], +[0.992440, 0.884330, 0.640099], +[0.992089, 0.891470, 0.647116], +[0.991688, 0.898627, 0.654202], +[0.991332, 0.905763, 0.661309], +[0.990930, 0.912915, 0.668481], +[0.990570, 0.920049, 0.675675], +[0.990175, 0.927196, 0.682926], +[0.989815, 0.934329, 0.690198], +[0.989434, 0.941470, 0.697519], +[0.989077, 0.948604, 0.704863], +[0.988717, 0.955742, 0.712242], +[0.988367, 0.962878, 0.719649], +[0.988033, 0.970012, 0.727077], +[0.987691, 0.977154, 0.734536], +[0.987387, 0.984288, 0.742002], +[0.987053, 0.991438, 0.749504] +]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/oxygen.js b/node_modules/colormap/res/res/oxygen.js new file mode 100644 index 0000000..f988404 --- /dev/null +++ b/node_modules/colormap/res/res/oxygen.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.25032177, 0.02046237, 0.01966892], +[ 0.25556485, 0.02111591, 0.02090008], +[ 0.26080155, 0.02176437, 0.02215967], +[ 0.26604463, 0.02238304, 0.02344016], +[ 0.27128867, 0.02298149, 0.02474302], +[ 0.27653264, 0.02356134, 0.02606762], +[ 0.28178616, 0.02410204, 0.02740685], +[ 0.2870368 , 0.02462864, 0.02876669], +[ 0.29229647, 0.02511521, 0.03013811], +[ 0.29755977, 0.02557236, 0.03152275], +[ 0.30282213, 0.02600981, 0.03292221], +[ 0.30809895, 0.02639179, 0.03432345], +[ 0.31337668, 0.02674829, 0.03573423], +[ 0.31865532, 0.02707913, 0.03715281], +[ 0.32394949, 0.02734825, 0.03856493], +[ 0.32924566, 0.0275874 , 0.03997916], +[ 0.33454443, 0.02779483, 0.04137064], +[ 0.33985476, 0.02794706, 0.04271748], +[ 0.34517249, 0.02805369, 0.04402858], +[ 0.35049427, 0.02812284, 0.04530589], +[ 0.35582068, 0.02815263, 0.04654771], +[ 0.36115912, 0.02812226, 0.04774545], +[ 0.36650539, 0.02804229, 0.04890135], +[ 0.37185718, 0.02791864, 0.05001584], +[ 0.37721491, 0.02774988, 0.05108646], +[ 0.38257895, 0.02753472, 0.05211053], +[ 0.38794955, 0.02727216, 0.0530851 ], +[ 0.39332999, 0.02695212, 0.05400333], +[ 0.39871727, 0.02658339, 0.05486495], +[ 0.4041101 , 0.02617015, 0.05566751], +[ 0.40950809, 0.02571398, 0.05640694], +[ 0.41491066, 0.02521742, 0.05707881], +[ 0.42031692, 0.02468426, 0.05767829], +[ 0.42572564, 0.02411983, 0.05820017], +[ 0.43113554, 0.02353014, 0.05863828], +[ 0.43654919, 0.02290868, 0.05897909], +[ 0.44195989, 0.02228071, 0.05922146], +[ 0.44736413, 0.02166211, 0.05935828], +[ 0.45275755, 0.02107282, 0.05938213], +[ 0.45814185, 0.02051271, 0.05927134], +[ 0.46350709, 0.02002405, 0.05902266], +[ 0.46884497, 0.01964556, 0.05862776], +[ 0.47415166, 0.01940234, 0.05806381], +[ 0.47941183, 0.01936335, 0.05733102], +[ 0.48461318, 0.01958983, 0.05642063], +[ 0.48974345, 0.02014613, 0.05532002], +[ 0.49478242, 0.02112808, 0.05404462], +[ 0.49971373, 0.0226195 , 0.05260679], +[ 0.50452218, 0.02470022, 0.05103037], +[ 0.50919629, 0.02743498, 0.04934859], +[ 0.51373016, 0.03086488, 0.04759931], +[ 0.51812392, 0.03500463, 0.04582043], +[ 0.52238301, 0.03984501, 0.04404711], +[ 0.52651678, 0.04511655, 0.04230179], +[ 0.53053614, 0.05056764, 0.0405991 ], +[ 0.53445216, 0.0561323 , 0.03893708], +[ 0.53827673, 0.0617482 , 0.03738225], +[ 0.54201853, 0.06738178, 0.03591446], +[ 0.54568722, 0.07300021, 0.03454024], +[ 0.54928963, 0.0785877 , 0.03324672], +[ 0.55283335, 0.08412806, 0.03203531], +[ 0.55632188, 0.08962115, 0.03088638], +[ 0.55976329, 0.09505189, 0.02981373], +[ 0.56315905, 0.10042718, 0.02879664], +[ 0.56651252, 0.10574699, 0.02783021], +[ 0.56982815, 0.11100806, 0.02691693], +[ 0.57310894, 0.11621126, 0.02605384], +[ 0.57635575, 0.12136236, 0.02523129], +[ 0.57957073, 0.12646316, 0.02444688], +[ 0.58275576, 0.1315157 , 0.02369841], +[ 0.5859125 , 0.13652212, 0.02298378], +[ 0.58904242, 0.14148465, 0.0223011 ], +[ 0.592147 , 0.14640517, 0.02164915], +[ 0.5952277 , 0.15128527, 0.02102731], +[ 0.59828484, 0.15612864, 0.02043163], +[ 0.60131931, 0.16093734, 0.01986079], +[ 0.60433195, 0.16571333, 0.01931361], +[ 0.60732351, 0.17045851, 0.01878899], +[ 0.61029466, 0.17517467, 0.01828593], +[ 0.61324599, 0.17986355, 0.01780353], +[ 0.61617893, 0.18452532, 0.01734338], +[ 0.61909328, 0.18916277, 0.01690272], +[ 0.6219895 , 0.19377738, 0.01648082], +[ 0.62486798, 0.1983706 , 0.01607703], +[ 0.62772912, 0.20294375, 0.01569076], +[ 0.63057325, 0.20749811, 0.0153215 ], +[ 0.63340069, 0.21203487, 0.01496877], +[ 0.63621174, 0.21655515, 0.01463216], +[ 0.63900669, 0.22106003, 0.01431132], +[ 0.64178639, 0.22554964, 0.01400751], +[ 0.64455206, 0.23002362, 0.01372295], +[ 0.6473024 , 0.23448507, 0.01345343], +[ 0.65003764, 0.23893485, 0.01319875], +[ 0.65275796, 0.24337375, 0.01295875], +[ 0.65546356, 0.24780256, 0.01273331], +[ 0.65815552, 0.25222081, 0.01252464], +[ 0.6608348 , 0.25662825, 0.01233463], +[ 0.66349987, 0.26102774, 0.01215897], +[ 0.66615089, 0.2654199 , 0.01199767], +[ 0.66878801, 0.2698053 , 0.01185078], +[ 0.67141252, 0.27418313, 0.01172117], +[ 0.67402504, 0.27855337, 0.01161017], +[ 0.67662404, 0.28291857, 0.01151371], +[ 0.67920965, 0.28727919, 0.01143195], +[ 0.681782 , 0.29163567, 0.01136508], +[ 0.68434402, 0.2959853 , 0.01132014], +[ 0.686893 , 0.30033171, 0.01129044], +[ 0.68942903, 0.30467536, 0.01127608], +[ 0.69195221, 0.3090166 , 0.01127734], +[ 0.69446517, 0.31335309, 0.01130065], +[ 0.69696575, 0.31768766, 0.01134076], +[ 0.69945374, 0.32202097, 0.01139719], +[ 0.70192928, 0.3263533 , 0.01147037], +[ 0.70439517, 0.33068214, 0.0115673 ], +[ 0.70684868, 0.33501077, 0.01168139], +[ 0.70928991, 0.33933943, 0.01181309], +[ 0.71171981, 0.34366752, 0.01196487], +[ 0.71413942, 0.34799439, 0.0121395 ], +[ 0.71654695, 0.35232217, 0.01233279], +[ 0.71894251, 0.35665105, 0.01254529], +[ 0.72132803, 0.36097949, 0.01278202], +[ 0.72370232, 0.36530896, 0.01304031], +[ 0.72606481, 0.36964029, 0.01331909], +[ 0.72841623, 0.37397307, 0.01362047], +[ 0.73075769, 0.37830656, 0.01394753], +[ 0.7330875 , 0.3826426 , 0.01429651], +[ 0.73540578, 0.3869813 , 0.0146681 ], +[ 0.73771444, 0.39132123, 0.01506735], +[ 0.74001188, 0.39566404, 0.0154908 ], +[ 0.74229795, 0.40001012, 0.0159385 ], +[ 0.74457375, 0.40435871, 0.01641363], +[ 0.7468391 , 0.40871021, 0.01691622], +[ 0.74909321, 0.41306552, 0.01744482], +[ 0.75133661, 0.41742436, 0.01800127], +[ 0.75357007, 0.42178631, 0.01858798], +[ 0.75579243, 0.42615255, 0.01920263], +[ 0.75800383, 0.43052314, 0.01984613], +[ 0.76020558, 0.43489718, 0.02052233], +[ 0.76239635, 0.43927596, 0.02122851], +[ 0.76457628, 0.44365952, 0.02196563], +[ 0.76674624, 0.44804735, 0.02273648], +[ 0.76890556, 0.45244015, 0.02354003], +[ 0.77105415, 0.45683815, 0.02437675], +[ 0.77319254, 0.46124109, 0.02524862], +[ 0.77532049, 0.46564932, 0.02615572], +[ 0.77743783, 0.47006311, 0.02709835], +[ 0.77954483, 0.47448241, 0.02807794], +[ 0.78164146, 0.4789074 , 0.0290951 ], +[ 0.78372758, 0.4833383 , 0.03015029], +[ 0.78580334, 0.48777515, 0.03124464], +[ 0.78786865, 0.49221815, 0.03237872], +[ 0.78992356, 0.4966674 , 0.03355346], +[ 0.79196818, 0.50112295, 0.03476996], +[ 0.79400213, 0.50558518, 0.03602816], +[ 0.79602577, 0.51005397, 0.03732978], +[ 0.79803924, 0.51452935, 0.03867607], +[ 0.80004182, 0.51901194, 0.04006614], +[ 0.80203408, 0.52350144, 0.04147691], +[ 0.80401624, 0.52799783, 0.04289943], +[ 0.80598747, 0.53250179, 0.04433686], +[ 0.8079482 , 0.53701313, 0.04579001], +[ 0.80989886, 0.54153165, 0.0472597 ], +[ 0.81183872, 0.54605798, 0.04874406], +[ 0.81376767, 0.55059227, 0.05024275], +[ 0.81568657, 0.55513405, 0.05175753], +[ 0.81759499, 0.55968372, 0.05328731], +[ 0.81949185, 0.56424207, 0.05482979], +[ 0.82137865, 0.56880822, 0.05638803], +[ 0.82325551, 0.57338218, 0.05796215], +[ 0.8251199 , 0.57796567, 0.05954713], +[ 0.82697416, 0.58255729, 0.0611476 ], +[ 0.82881842, 0.58715704, 0.06276375], +[ 0.83065077, 0.59176621, 0.06439206], +[ 0.83247193, 0.59638442, 0.06603397], +[ 0.83428298, 0.60101108, 0.06769149], +[ 0.83608314, 0.60564678, 0.06936327], +[ 0.83787054, 0.61029272, 0.07104627], +[ 0.83964766, 0.61494746, 0.07274493], +[ 0.84141458, 0.61961104, 0.07445946], +[ 0.84316828, 0.62428535, 0.07618511], +[ 0.8449106 , 0.62896934, 0.07792519], +[ 0.84664248, 0.63366253, 0.07968136], +[ 0.84836317, 0.63836545, 0.08145269], +[ 0.85006967, 0.64307988, 0.08323499], +[ 0.8517654 , 0.64780392, 0.08503379], +[ 0.85345037, 0.65253762, 0.08684936], +[ 0.85512241, 0.65728228, 0.08867898], +[ 0.85678071, 0.66203842, 0.09052203], +[ 0.85842781, 0.66680464, 0.09238251], +[ 0.86006366, 0.67158104, 0.09426077], +[ 0.86168545, 0.67636924, 0.0961536 ], +[ 0.86329311, 0.6811693 , 0.09806161], +[ 0.86488895, 0.68598001, 0.09998839], +[ 0.86647286, 0.69080147, 0.10193437], +[ 0.86804282, 0.69563482, 0.10389775], +[ 0.86959676, 0.7004812 , 0.10587693], +[ 0.87113804, 0.70533885, 0.10787672], +[ 0.87266647, 0.71020788, 0.10989772], +[ 0.87418187, 0.71508846, 0.11194054], +[ 0.87567959, 0.71998302, 0.11400111], +[ 0.87716225, 0.72489021, 0.11608345], +[ 0.87863089, 0.72980951, 0.11818975], +[ 0.88008521, 0.73474108, 0.12032085], +[ 0.88152491, 0.73968512, 0.12247764], +[ 0.88294684, 0.74464321, 0.12465844], +[ 0.88435056, 0.74961555, 0.1268644 ], +[ 0.88573838, 0.75460097, 0.12909932], +[ 0.88710988, 0.75959969, 0.13136443], +[ 0.88846459, 0.76461192, 0.13366106], +[ 0.88980202, 0.76963789, 0.13599066], +[ 0.89112162, 0.77467784, 0.1383548 ], +[ 0.89242043, 0.77973314, 0.14075338], +[ 0.89369837, 0.78480379, 0.14318884], +[ 0.89495679, 0.78988908, 0.14566486], +[ 0.89619502, 0.79498925, 0.14818373], +[ 0.89741236, 0.80010458, 0.15074796], +[ 0.89860807, 0.80523531, 0.15336033], +[ 0.89978135, 0.81038173, 0.15602391], +[ 0.90093137, 0.8155441 , 0.15874211], +[ 0.90205726, 0.82072269, 0.16151872], +[ 0.90315814, 0.82591775, 0.16435797], +[ 0.90423307, 0.83112953, 0.16726459], +[ 0.90528113, 0.83635827, 0.17024392], +[ 0.90630138, 0.84160414, 0.17330195], +[ 0.90729292, 0.84686732, 0.17644545], +[ 0.9082549 , 0.8521479 , 0.17968212], +[ 0.90918541, 0.85744638, 0.18302038], +[ 0.9100752 , 0.86276633, 0.18646838], +[ 0.9109312 , 0.86810433, 0.19004033], +[ 0.91175302, 0.87346008, 0.1937498 ], +[ 0.91254071, 0.87883301, 0.19761251], +[ 0.91327552, 0.88423014, 0.20164647], +[ 0.91397111, 0.88964499, 0.20587612], +[ 0.91462416, 0.89507797, 0.21032894], +[ 0.91521971, 0.9005338 , 0.2150418 ], +[ 0.91576919, 0.90600639, 0.22005714], +[ 0.9162675 , 0.91149583, 0.22543188], +[ 0.91670208, 0.91700434, 0.23124674], +[ 0.91708955, 0.92252213, 0.23759656], +[ 0.9174401 , 0.92804079, 0.24461551], +[ 0.91778416, 0.93354269, 0.25248 ], +[ 0.91818209, 0.93899707, 0.26142023], +[ 0.91880144, 0.94433427, 0.27160124], +[ 0.91988874, 0.94946138, 0.28299331], +[ 0.92170201, 0.95429517, 0.29515795], +[ 0.92432629, 0.95882577, 0.30744836], +[ 0.92765151, 0.96310918, 0.31947504], +[ 0.9315219 , 0.9672116 , 0.33105536], +[ 0.93580128, 0.97118464, 0.34221253], +[ 0.94039225, 0.97506515, 0.35296587], +[ 0.94522476, 0.97887874, 0.3633572 ], +[ 0.95025594, 0.9826387 , 0.37347976], +[ 0.95544153, 0.98636342, 0.38330209], +[ 0.96076275, 0.99005723, 0.39290859], +[ 0.96620066, 0.99372665, 0.40232518], +[ 0.97173864, 0.99737776, 0.41156586]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/phase.js b/node_modules/colormap/res/res/phase.js new file mode 100644 index 0000000..f97567a --- /dev/null +++ b/node_modules/colormap/res/res/phase.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.56724332, 0.41001824, 0.07083093], +[ 0.57369533, 0.40631385, 0.0676364 ], +[ 0.5799481 , 0.40262767, 0.06473393], +[ 0.58621727, 0.39883307, 0.06205459], +[ 0.59231449, 0.39504395, 0.05971206], +[ 0.59841114, 0.39115403, 0.05767412], +[ 0.60434243, 0.38726851, 0.05602886], +[ 0.61027304, 0.38327951, 0.05476297], +[ 0.61602853, 0.37930459, 0.05394142], +[ 0.62179468, 0.37521528, 0.05356325], +[ 0.62739819, 0.37113394, 0.05366089], +[ 0.63296349, 0.36697069, 0.05424569], +[ 0.63841081, 0.36278458, 0.05531731], +[ 0.64376271, 0.35855932, 0.05687403], +[ 0.64904584, 0.35427327, 0.05891871], +[ 0.65418902, 0.34998499, 0.06140802], +[ 0.65927887, 0.34562236, 0.06436753], +[ 0.6642461 , 0.34124422, 0.06774175], +[ 0.669082 , 0.33686041, 0.07149836], +[ 0.67385549, 0.33240821, 0.07567487], +[ 0.67849057, 0.32795839, 0.08019026], +[ 0.68299052, 0.32351058, 0.0850257 ], +[ 0.68739738, 0.31902389, 0.09021504], +[ 0.69166679, 0.31454412, 0.09569861], +[ 0.69579223, 0.31008093, 0.10145681], +[ 0.69977763, 0.30563295, 0.10748756], +[ 0.70363574, 0.30118776, 0.1138099 ], +[ 0.7073366 , 0.29678243, 0.12037554], +[ 0.71087774, 0.29242414, 0.1271783 ], +[ 0.71425607, 0.28812113, 0.13421258], +[ 0.71747399, 0.2838747 , 0.14148683], +[ 0.72052428, 0.27969884, 0.14899031], +[ 0.72339728, 0.27561226, 0.15670273], +[ 0.72609023, 0.27162524, 0.16461824], +[ 0.72860058, 0.26774828, 0.17273041], +[ 0.73092616, 0.26399183, 0.18103219], +[ 0.73306539, 0.2603659 , 0.18951638], +[ 0.73501868, 0.25687739, 0.19818207], +[ 0.73678279, 0.2535402 , 0.20700886], +[ 0.73835819, 0.25036227, 0.21598766], +[ 0.73974597, 0.24735064, 0.22510891], +[ 0.74094777, 0.2445114 , 0.23436265], +[ 0.74196578, 0.24184955, 0.24373863], +[ 0.74280272, 0.23936901, 0.25322643], +[ 0.74346173, 0.23707255, 0.26281551], +[ 0.74394637, 0.23496186, 0.27249532], +[ 0.7442605 , 0.23303771, 0.28225449], +[ 0.74440831, 0.23129966, 0.29208237], +[ 0.74439423, 0.22974621, 0.30196906], +[ 0.74422282, 0.22837499, 0.3119049 ], +[ 0.74389873, 0.22718285, 0.32188048], +[ 0.74342664, 0.22616596, 0.33188669], +[ 0.74281127, 0.22531985, 0.34191474], +[ 0.7420573 , 0.22463956, 0.35195616], +[ 0.74116936, 0.22411969, 0.36200283], +[ 0.7401524 , 0.22375458, 0.37204357], +[ 0.73901072, 0.22353801, 0.38207355], +[ 0.7377486 , 0.22346375, 0.39208656], +[ 0.73637028, 0.22352544, 0.40207607], +[ 0.73487988, 0.22371668, 0.41203587], +[ 0.73328139, 0.22403107, 0.42196011], +[ 0.73157865, 0.22446223, 0.43184326], +[ 0.72977536, 0.22500389, 0.44168013], +[ 0.72787579, 0.22564963, 0.45146241], +[ 0.72588267, 0.22639364, 0.46118937], +[ 0.7237992 , 0.22723013, 0.47085716], +[ 0.72162847, 0.22815351, 0.48046197], +[ 0.71937343, 0.22915837, 0.49000029], +[ 0.71703688, 0.23023956, 0.49946892], +[ 0.71462148, 0.23139217, 0.50886493], +[ 0.71213007, 0.23261136, 0.51818447], +[ 0.70956452, 0.23389296, 0.52742703], +[ 0.70692691, 0.23523289, 0.53659083], +[ 0.70421925, 0.23662728, 0.54567406], +[ 0.70144339, 0.23807254, 0.55467513], +[ 0.69860103, 0.23956532, 0.56359267], +[ 0.69569369, 0.24110255, 0.57242556], +[ 0.69272221, 0.24268169, 0.58117426], +[ 0.68968792, 0.24430011, 0.5898375 ], +[ 0.6865918 , 0.24595554, 0.59841463], +[ 0.68343465, 0.24764596, 0.60690513], +[ 0.68021707, 0.2493696 , 0.61530861], +[ 0.67693948, 0.25112494, 0.62362475], +[ 0.67360205, 0.25291077, 0.63185346], +[ 0.67020323, 0.25472691, 0.6399982 ], +[ 0.66674402, 0.25657195, 0.64805568], +[ 0.663224 , 0.25844541, 0.65602563], +[ 0.65964254, 0.26034702, 0.66390773], +[ 0.65599875, 0.26227679, 0.67170157], +[ 0.65229153, 0.26423496, 0.67940663], +[ 0.64851954, 0.26622203, 0.68702221], +[ 0.6446806 , 0.26823904, 0.69454851], +[ 0.6407712 , 0.27028786, 0.70198747], +[ 0.63679115, 0.27236872, 0.70933383], +[ 0.63273808, 0.27448309, 0.71658581], +[ 0.62860936, 0.27663269, 0.72374126], +[ 0.6244021 , 0.27881949, 0.73079761], +[ 0.62011309, 0.28104566, 0.73775186], +[ 0.61573889, 0.28331365, 0.74460048], +[ 0.61127572, 0.28562609, 0.7513394 ], +[ 0.60671957, 0.28798585, 0.75796392], +[ 0.60206609, 0.29039601, 0.76446868], +[ 0.59731069, 0.29285981, 0.77084761], +[ 0.59244787, 0.295381 , 0.77709461], +[ 0.58747183, 0.2979635 , 0.78320265], +[ 0.58237864, 0.30061025, 0.78916126], +[ 0.57716272, 0.30332502, 0.7949609 ], +[ 0.57181826, 0.30611163, 0.80059103], +[ 0.56633926, 0.30897393, 0.80604014], +[ 0.56071959, 0.31191571, 0.81129563], +[ 0.55495299, 0.31494071, 0.81634387], +[ 0.54903314, 0.31805247, 0.8211701 ], +[ 0.54295376, 0.32125431, 0.8257585 ], +[ 0.53670817, 0.3245495 , 0.83009251], +[ 0.53028763, 0.32794207, 0.83415578], +[ 0.52368879, 0.33143287, 0.83792761], +[ 0.51690635, 0.33502336, 0.84138818], +[ 0.50993559, 0.33871427, 0.84451696], +[ 0.50277257, 0.34250546, 0.84729293], +[ 0.49541426, 0.34639582, 0.8496948 ], +[ 0.48785876, 0.35038314, 0.85170127], +[ 0.48010551, 0.35446399, 0.85329141], +[ 0.47215549, 0.35863367, 0.85444501], +[ 0.46400447, 0.36288976, 0.8551434 ], +[ 0.45566227, 0.3672221 , 0.85536788], +[ 0.44713833, 0.37162047, 0.8551029 ], +[ 0.43844227, 0.37607441, 0.85433577], +[ 0.42958621, 0.38057218, 0.85305689], +[ 0.42058177, 0.38510239, 0.8512595 ], +[ 0.4114469 , 0.38965075, 0.84894112], +[ 0.40220605, 0.39420025, 0.8461049 ], +[ 0.39288171, 0.39873559, 0.84275762], +[ 0.38349855, 0.4032413 , 0.83891048], +[ 0.3740836 , 0.40770177, 0.8345792 ], +[ 0.36466722, 0.41210102, 0.82978465], +[ 0.35527868, 0.41642482, 0.82455055], +[ 0.34594787, 0.42066002, 0.81890378], +[ 0.3367081 , 0.42479323, 0.81287608], +[ 0.32759084, 0.42881325, 0.80650068], +[ 0.31862215, 0.43271248, 0.79980883], +[ 0.30982983, 0.43648364, 0.79283433], +[ 0.30124029, 0.440121 , 0.78561114], +[ 0.29288233, 0.44361869, 0.7781766 ], +[ 0.28477939, 0.44697375, 0.77056484], +[ 0.2769467 , 0.45018708, 0.76280283], +[ 0.26940193, 0.45325876, 0.7549202 ], +[ 0.26216024, 0.45619 , 0.74694475], +[ 0.25523415, 0.45898297, 0.73890234], +[ 0.24863345, 0.46164068, 0.73081674], +[ 0.24236623, 0.46416643, 0.72271109], +[ 0.23643887, 0.46656363, 0.71460825], +[ 0.23084854, 0.46883873, 0.70652028], +[ 0.22559388, 0.47099685, 0.69846259], +[ 0.22067083, 0.47304334, 0.69044868], +[ 0.21607267, 0.47498376, 0.68249026], +[ 0.21179018, 0.47682377, 0.67459735], +[ 0.20781175, 0.47856909, 0.6667784 ], +[ 0.20412355, 0.48022546, 0.65904036], +[ 0.20070972, 0.48179858, 0.65138879], +[ 0.1975526 , 0.48329407, 0.64382798], +[ 0.19463299, 0.48471751, 0.63636101], +[ 0.19193036, 0.48607431, 0.62898985], +[ 0.18942316, 0.48736979, 0.62171541], +[ 0.18708905, 0.48860912, 0.61453762], +[ 0.18490519, 0.4897973 , 0.6074555 ], +[ 0.1828485 , 0.49093918, 0.60046718], +[ 0.18089588, 0.49203942, 0.59356996], +[ 0.17902444, 0.4931025 , 0.58676036], +[ 0.17721176, 0.49413269, 0.58003415], +[ 0.17543603, 0.49513408, 0.57338636], +[ 0.17367625, 0.49611052, 0.56681136], +[ 0.17191243, 0.49706564, 0.56030287], +[ 0.1701257 , 0.49800282, 0.55385397], +[ 0.16829867, 0.4989251 , 0.54745788], +[ 0.16641491, 0.49983547, 0.54110563], +[ 0.16445972, 0.50073657, 0.53478849], +[ 0.16242011, 0.50163068, 0.52849746], +[ 0.16028489, 0.50251981, 0.52222315], +[ 0.15804478, 0.50340563, 0.51595585], +[ 0.15569256, 0.50428951, 0.50968556], +[ 0.15322322, 0.50517248, 0.50340207], +[ 0.15063412, 0.50605524, 0.49709504], +[ 0.14792513, 0.50693812, 0.49075405], +[ 0.14509892, 0.50782117, 0.48436869], +[ 0.14216108, 0.50870404, 0.47792862], +[ 0.13912049, 0.5095861 , 0.47142361], +[ 0.13598955, 0.51046638, 0.46484364], +[ 0.13278459, 0.5113436 , 0.45817896], +[ 0.12952624, 0.51221616, 0.45142008], +[ 0.12623991, 0.51308221, 0.44455788], +[ 0.12295556, 0.51393979, 0.43758212], +[ 0.11971036, 0.51478631, 0.43048588], +[ 0.11654716, 0.51561909, 0.42326145], +[ 0.11351549, 0.51643524, 0.41590148], +[ 0.11067183, 0.51723164, 0.40839906], +[ 0.10807962, 0.51800494, 0.40074776], +[ 0.10580878, 0.51875159, 0.39294158], +[ 0.10393472, 0.51946783, 0.38497499], +[ 0.10253597, 0.52014993, 0.3768393 ], +[ 0.10169355, 0.52079357, 0.36853055], +[ 0.10148616, 0.52139416, 0.36004512], +[ 0.10198647, 0.52194694, 0.35137897], +[ 0.10325739, 0.52244679, 0.34252861], +[ 0.10534865, 0.52288829, 0.33349121], +[ 0.10829448, 0.52326557, 0.32426472], +[ 0.11211265, 0.52357234, 0.31484804], +[ 0.11680808, 0.52380192, 0.30523576], +[ 0.12238518, 0.52394702, 0.29540477], +[ 0.12881123, 0.52399876, 0.28538279], +[ 0.13605621, 0.5239482 , 0.27517603], +[ 0.14410514, 0.52378513, 0.26476898], +[ 0.15293375, 0.5234978 , 0.2541648 ], +[ 0.16247977, 0.52307494, 0.24341445], +[ 0.17276282, 0.52250055, 0.23248374], +[ 0.18369893, 0.52176275, 0.22146098], +[ 0.19529772, 0.52084321, 0.2103468 ], +[ 0.20746308, 0.51973103, 0.19925592], +[ 0.22018049, 0.51840885, 0.18823609], +[ 0.23332581, 0.51687146, 0.17744061], +[ 0.2467881 , 0.51511657, 0.16701119], +[ 0.26043578, 0.51314954, 0.1571029 ], +[ 0.27409793, 0.51098848, 0.14788694], +[ 0.28761884, 0.50865777, 0.1395008 ], +[ 0.30086975, 0.50618505, 0.1320371 ], +[ 0.31370489, 0.50360866, 0.12556363], +[ 0.32609538, 0.50094907, 0.12005608], +[ 0.33799424, 0.49823249, 0.11547743], +[ 0.34938489, 0.49547991, 0.11175786], +[ 0.36029622, 0.49270114, 0.10880174], +[ 0.37075574, 0.48990462, 0.10651189], +[ 0.38076313, 0.48710519, 0.10479584], +[ 0.39039628, 0.48429421, 0.10355136], +[ 0.39968164, 0.48147509, 0.1026934 ], +[ 0.40861182, 0.47866075, 0.10214468], +[ 0.41725511, 0.47583919, 0.10183013], +[ 0.42563941, 0.47300913, 0.10168644], +[ 0.43378927, 0.47016919, 0.10165742], +[ 0.44172797, 0.46731733, 0.10169329], +[ 0.44947742, 0.464451 , 0.10174995], +[ 0.45705812, 0.46156726, 0.10178816], +[ 0.46448913, 0.45866282, 0.10177265], +[ 0.47178813, 0.45573417, 0.10167122], +[ 0.47897143, 0.45277762, 0.10145383], +[ 0.48605409, 0.44978932, 0.10109169], +[ 0.49304995, 0.44676536, 0.10055631], +[ 0.49997171, 0.44370173, 0.09981844], +[ 0.50683102, 0.44059441, 0.09884695], +[ 0.5136386 , 0.43743936, 0.0976074 ], +[ 0.52040425, 0.43423253, 0.09606047], +[ 0.52713698, 0.43096991, 0.0941598 ], +[ 0.53384504, 0.42764756, 0.09184919], +[ 0.54053593, 0.42426164, 0.08905888], +[ 0.54721632, 0.42080854, 0.08570001], +[ 0.55389186, 0.41728505, 0.0816566 ], +[ 0.5605668 , 0.4136887 , 0.07677269], +[ 0.56724332, 0.41001824, 0.07083093]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/plasma.js b/node_modules/colormap/res/res/plasma.js new file mode 100644 index 0000000..a60b124 --- /dev/null +++ b/node_modules/colormap/res/res/plasma.js @@ -0,0 +1,258 @@ +module.exports = [ +[0.050383, 0.029803, 0.527975], +[0.063536, 0.028426, 0.533124], +[0.075353, 0.027206, 0.538007], +[0.086222, 0.026125, 0.542658], +[0.096379, 0.025165, 0.547103], +[0.105980, 0.024309, 0.551368], +[0.115124, 0.023556, 0.555468], +[0.123903, 0.022878, 0.559423], +[0.132381, 0.022258, 0.563250], +[0.140603, 0.021687, 0.566959], +[0.148607, 0.021154, 0.570562], +[0.156421, 0.020651, 0.574065], +[0.164070, 0.020171, 0.577478], +[0.171574, 0.019706, 0.580806], +[0.178950, 0.019252, 0.584054], +[0.186213, 0.018803, 0.587228], +[0.193374, 0.018354, 0.590330], +[0.200445, 0.017902, 0.593364], +[0.207435, 0.017442, 0.596333], +[0.214350, 0.016973, 0.599239], +[0.221197, 0.016497, 0.602083], +[0.227983, 0.016007, 0.604867], +[0.234715, 0.015502, 0.607592], +[0.241396, 0.014979, 0.610259], +[0.248032, 0.014439, 0.612868], +[0.254627, 0.013882, 0.615419], +[0.261183, 0.013308, 0.617911], +[0.267703, 0.012716, 0.620346], +[0.274191, 0.012109, 0.622722], +[0.280648, 0.011488, 0.625038], +[0.287076, 0.010855, 0.627295], +[0.293478, 0.010213, 0.629490], +[0.299855, 0.009561, 0.631624], +[0.306210, 0.008902, 0.633694], +[0.312543, 0.008239, 0.635700], +[0.318856, 0.007576, 0.637640], +[0.325150, 0.006915, 0.639512], +[0.331426, 0.006261, 0.641316], +[0.337683, 0.005618, 0.643049], +[0.343925, 0.004991, 0.644710], +[0.350150, 0.004382, 0.646298], +[0.356359, 0.003798, 0.647810], +[0.362553, 0.003243, 0.649245], +[0.368733, 0.002724, 0.650601], +[0.374897, 0.002245, 0.651876], +[0.381047, 0.001814, 0.653068], +[0.387183, 0.001434, 0.654177], +[0.393304, 0.001114, 0.655199], +[0.399411, 0.000859, 0.656133], +[0.405503, 0.000678, 0.656977], +[0.411580, 0.000577, 0.657730], +[0.417642, 0.000564, 0.658390], +[0.423689, 0.000646, 0.658956], +[0.429719, 0.000831, 0.659425], +[0.435734, 0.001127, 0.659797], +[0.441732, 0.001540, 0.660069], +[0.447714, 0.002080, 0.660240], +[0.453677, 0.002755, 0.660310], +[0.459623, 0.003574, 0.660277], +[0.465550, 0.004545, 0.660139], +[0.471457, 0.005678, 0.659897], +[0.477344, 0.006980, 0.659549], +[0.483210, 0.008460, 0.659095], +[0.489055, 0.010127, 0.658534], +[0.494877, 0.011990, 0.657865], +[0.500678, 0.014055, 0.657088], +[0.506454, 0.016333, 0.656202], +[0.512206, 0.018833, 0.655209], +[0.517933, 0.021563, 0.654109], +[0.523633, 0.024532, 0.652901], +[0.529306, 0.027747, 0.651586], +[0.534952, 0.031217, 0.650165], +[0.540570, 0.034950, 0.648640], +[0.546157, 0.038954, 0.647010], +[0.551715, 0.043136, 0.645277], +[0.557243, 0.047331, 0.643443], +[0.562738, 0.051545, 0.641509], +[0.568201, 0.055778, 0.639477], +[0.573632, 0.060028, 0.637349], +[0.579029, 0.064296, 0.635126], +[0.584391, 0.068579, 0.632812], +[0.589719, 0.072878, 0.630408], +[0.595011, 0.077190, 0.627917], +[0.600266, 0.081516, 0.625342], +[0.605485, 0.085854, 0.622686], +[0.610667, 0.090204, 0.619951], +[0.615812, 0.094564, 0.617140], +[0.620919, 0.098934, 0.614257], +[0.625987, 0.103312, 0.611305], +[0.631017, 0.107699, 0.608287], +[0.636008, 0.112092, 0.605205], +[0.640959, 0.116492, 0.602065], +[0.645872, 0.120898, 0.598867], +[0.650746, 0.125309, 0.595617], +[0.655580, 0.129725, 0.592317], +[0.660374, 0.134144, 0.588971], +[0.665129, 0.138566, 0.585582], +[0.669845, 0.142992, 0.582154], +[0.674522, 0.147419, 0.578688], +[0.679160, 0.151848, 0.575189], +[0.683758, 0.156278, 0.571660], +[0.688318, 0.160709, 0.568103], +[0.692840, 0.165141, 0.564522], +[0.697324, 0.169573, 0.560919], +[0.701769, 0.174005, 0.557296], +[0.706178, 0.178437, 0.553657], +[0.710549, 0.182868, 0.550004], +[0.714883, 0.187299, 0.546338], +[0.719181, 0.191729, 0.542663], +[0.723444, 0.196158, 0.538981], +[0.727670, 0.200586, 0.535293], +[0.731862, 0.205013, 0.531601], +[0.736019, 0.209439, 0.527908], +[0.740143, 0.213864, 0.524216], +[0.744232, 0.218288, 0.520524], +[0.748289, 0.222711, 0.516834], +[0.752312, 0.227133, 0.513149], +[0.756304, 0.231555, 0.509468], +[0.760264, 0.235976, 0.505794], +[0.764193, 0.240396, 0.502126], +[0.768090, 0.244817, 0.498465], +[0.771958, 0.249237, 0.494813], +[0.775796, 0.253658, 0.491171], +[0.779604, 0.258078, 0.487539], +[0.783383, 0.262500, 0.483918], +[0.787133, 0.266922, 0.480307], +[0.790855, 0.271345, 0.476706], +[0.794549, 0.275770, 0.473117], +[0.798216, 0.280197, 0.469538], +[0.801855, 0.284626, 0.465971], +[0.805467, 0.289057, 0.462415], +[0.809052, 0.293491, 0.458870], +[0.812612, 0.297928, 0.455338], +[0.816144, 0.302368, 0.451816], +[0.819651, 0.306812, 0.448306], +[0.823132, 0.311261, 0.444806], +[0.826588, 0.315714, 0.441316], +[0.830018, 0.320172, 0.437836], +[0.833422, 0.324635, 0.434366], +[0.836801, 0.329105, 0.430905], +[0.840155, 0.333580, 0.427455], +[0.843484, 0.338062, 0.424013], +[0.846788, 0.342551, 0.420579], +[0.850066, 0.347048, 0.417153], +[0.853319, 0.351553, 0.413734], +[0.856547, 0.356066, 0.410322], +[0.859750, 0.360588, 0.406917], +[0.862927, 0.365119, 0.403519], +[0.866078, 0.369660, 0.400126], +[0.869203, 0.374212, 0.396738], +[0.872303, 0.378774, 0.393355], +[0.875376, 0.383347, 0.389976], +[0.878423, 0.387932, 0.386600], +[0.881443, 0.392529, 0.383229], +[0.884436, 0.397139, 0.379860], +[0.887402, 0.401762, 0.376494], +[0.890340, 0.406398, 0.373130], +[0.893250, 0.411048, 0.369768], +[0.896131, 0.415712, 0.366407], +[0.898984, 0.420392, 0.363047], +[0.901807, 0.425087, 0.359688], +[0.904601, 0.429797, 0.356329], +[0.907365, 0.434524, 0.352970], +[0.910098, 0.439268, 0.349610], +[0.912800, 0.444029, 0.346251], +[0.915471, 0.448807, 0.342890], +[0.918109, 0.453603, 0.339529], +[0.920714, 0.458417, 0.336166], +[0.923287, 0.463251, 0.332801], +[0.925825, 0.468103, 0.329435], +[0.928329, 0.472975, 0.326067], +[0.930798, 0.477867, 0.322697], +[0.933232, 0.482780, 0.319325], +[0.935630, 0.487712, 0.315952], +[0.937990, 0.492667, 0.312575], +[0.940313, 0.497642, 0.309197], +[0.942598, 0.502639, 0.305816], +[0.944844, 0.507658, 0.302433], +[0.947051, 0.512699, 0.299049], +[0.949217, 0.517763, 0.295662], +[0.951344, 0.522850, 0.292275], +[0.953428, 0.527960, 0.288883], +[0.955470, 0.533093, 0.285490], +[0.957469, 0.538250, 0.282096], +[0.959424, 0.543431, 0.278701], +[0.961336, 0.548636, 0.275305], +[0.963203, 0.553865, 0.271909], +[0.965024, 0.559118, 0.268513], +[0.966798, 0.564396, 0.265118], +[0.968526, 0.569700, 0.261721], +[0.970205, 0.575028, 0.258325], +[0.971835, 0.580382, 0.254931], +[0.973416, 0.585761, 0.251540], +[0.974947, 0.591165, 0.248151], +[0.976428, 0.596595, 0.244767], +[0.977856, 0.602051, 0.241387], +[0.979233, 0.607532, 0.238013], +[0.980556, 0.613039, 0.234646], +[0.981826, 0.618572, 0.231287], +[0.983041, 0.624131, 0.227937], +[0.984199, 0.629718, 0.224595], +[0.985301, 0.635330, 0.221265], +[0.986345, 0.640969, 0.217948], +[0.987332, 0.646633, 0.214648], +[0.988260, 0.652325, 0.211364], +[0.989128, 0.658043, 0.208100], +[0.989935, 0.663787, 0.204859], +[0.990681, 0.669558, 0.201642], +[0.991365, 0.675355, 0.198453], +[0.991985, 0.681179, 0.195295], +[0.992541, 0.687030, 0.192170], +[0.993032, 0.692907, 0.189084], +[0.993456, 0.698810, 0.186041], +[0.993814, 0.704741, 0.183043], +[0.994103, 0.710698, 0.180097], +[0.994324, 0.716681, 0.177208], +[0.994474, 0.722691, 0.174381], +[0.994553, 0.728728, 0.171622], +[0.994561, 0.734791, 0.168938], +[0.994495, 0.740880, 0.166335], +[0.994355, 0.746995, 0.163821], +[0.994141, 0.753137, 0.161404], +[0.993851, 0.759304, 0.159092], +[0.993482, 0.765499, 0.156891], +[0.993033, 0.771720, 0.154808], +[0.992505, 0.777967, 0.152855], +[0.991897, 0.784239, 0.151042], +[0.991209, 0.790537, 0.149377], +[0.990439, 0.796859, 0.147870], +[0.989587, 0.803205, 0.146529], +[0.988648, 0.809579, 0.145357], +[0.987621, 0.815978, 0.144363], +[0.986509, 0.822401, 0.143557], +[0.985314, 0.828846, 0.142945], +[0.984031, 0.835315, 0.142528], +[0.982653, 0.841812, 0.142303], +[0.981190, 0.848329, 0.142279], +[0.979644, 0.854866, 0.142453], +[0.977995, 0.861432, 0.142808], +[0.976265, 0.868016, 0.143351], +[0.974443, 0.874622, 0.144061], +[0.972530, 0.881250, 0.144923], +[0.970533, 0.887896, 0.145919], +[0.968443, 0.894564, 0.147014], +[0.966271, 0.901249, 0.148180], +[0.964021, 0.907950, 0.149370], +[0.961681, 0.914672, 0.150520], +[0.959276, 0.921407, 0.151566], +[0.956808, 0.928152, 0.152409], +[0.954287, 0.934908, 0.152921], +[0.951726, 0.941671, 0.152925], +[0.949151, 0.948435, 0.152178], +[0.946602, 0.955190, 0.150328], +[0.944152, 0.961916, 0.146861], +[0.941896, 0.968590, 0.140956], +[0.940015, 0.975158, 0.131326] +]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/rainbow.png b/node_modules/colormap/res/res/rainbow.png new file mode 100644 index 0000000..cf5b7ed Binary files /dev/null and b/node_modules/colormap/res/res/rainbow.png differ diff --git a/node_modules/colormap/res/res/salinity.js b/node_modules/colormap/res/res/salinity.js new file mode 100644 index 0000000..b735be7 --- /dev/null +++ b/node_modules/colormap/res/res/salinity.js @@ -0,0 +1,256 @@ +module.exports =[[ 0.16295295, 0.09521592, 0.42257292], +[ 0.16481011, 0.09635116, 0.43184597], +[ 0.16661617, 0.09744967, 0.44120648], +[ 0.16836624, 0.09851521, 0.4506511 ], +[ 0.17005471, 0.09955275, 0.46017511], +[ 0.17167508, 0.10056873, 0.46977222], +[ 0.17321987, 0.10157136, 0.47943423], +[ 0.17468043, 0.10257097, 0.48915068], +[ 0.17604337, 0.10356584, 0.4989416 ], +[ 0.17729823, 0.10458025, 0.50877159], +[ 0.1784323 , 0.10563803, 0.51861083], +[ 0.17942267, 0.10674166, 0.52848361], +[ 0.18025423, 0.10793563, 0.53832457], +[ 0.18089754, 0.10923866, 0.54813521], +[ 0.18132983, 0.11070429, 0.55784354], +[ 0.18150693, 0.11236134, 0.56744719], +[ 0.18139596, 0.11428044, 0.57685059], +[ 0.18094994, 0.11652515, 0.5859821 ], +[ 0.18011665, 0.1191683 , 0.59474942], +[ 0.17884196, 0.12228861, 0.60303661], +[ 0.17707513, 0.12596207, 0.61070774], +[ 0.1747765 , 0.13024864, 0.61761743], +[ 0.17192559, 0.13517685, 0.62362908], +[ 0.16853023, 0.14073088, 0.62863572], +[ 0.16463735, 0.14684332, 0.63257966], +[ 0.16031417, 0.15340748, 0.63547019], +[ 0.15565395, 0.16029118, 0.63737422], +[ 0.15073736, 0.16736889, 0.63839897], +[ 0.14564276, 0.17452933, 0.63866876], +[ 0.14043681, 0.18168415, 0.63830895], +[ 0.13517265, 0.18876883, 0.63743501], +[ 0.12989066, 0.19573986, 0.63614699], +[ 0.12462051, 0.20257034, 0.63452826], +[ 0.1193859 , 0.20924466, 0.63264783], +[ 0.11422949, 0.21574563, 0.63057687], +[ 0.10914049, 0.22208312, 0.62834552], +[ 0.10414386, 0.22825465, 0.62599796], +[ 0.09926305, 0.23426098, 0.62357178], +[ 0.09449513, 0.240114 , 0.62108167], +[ 0.08986952, 0.24581472, 0.61855919], +[ 0.08539286, 0.25137295, 0.61601663], +[ 0.08106757, 0.25679971, 0.61345967], +[ 0.07694419, 0.26209156, 0.61092383], +[ 0.07300704, 0.2672655 , 0.6083965 ], +[ 0.06927651, 0.2723273 , 0.60588732], +[ 0.06578801, 0.27727895, 0.60341418], +[ 0.06255595, 0.28212824, 0.60097879], +[ 0.05959205, 0.28688317, 0.59857975], +[ 0.05691772, 0.29154887, 0.5962215 ], +[ 0.05455347, 0.29613025, 0.5939076 ], +[ 0.0525189 , 0.30063184, 0.59164148], +[ 0.05083877, 0.30505623, 0.58943153], +[ 0.04951454, 0.30941022, 0.58727149], +[ 0.0485549 , 0.31369777, 0.58516273], +[ 0.04796369, 0.3179226 , 0.58310625], +[ 0.04773946, 0.32208826, 0.58110273], +[ 0.04787545, 0.32619809, 0.57915259], +[ 0.04835985, 0.33025524, 0.57725602], +[ 0.04917639, 0.3342627 , 0.57541302], +[ 0.05030519, 0.3382233 , 0.57362343], +[ 0.05172369, 0.34213968, 0.57188697], +[ 0.05340768, 0.34601437, 0.57020322], +[ 0.05533215, 0.34984975, 0.5685717 ], +[ 0.05747218, 0.35364807, 0.56699183], +[ 0.05980352, 0.35741146, 0.56546298], +[ 0.06230309, 0.36114193, 0.56398445], +[ 0.06494928, 0.36484141, 0.56255553], +[ 0.06772215, 0.3685117 , 0.56117544], +[ 0.07060351, 0.37215453, 0.55984338], +[ 0.0735784 , 0.37577101, 0.55856129], +[ 0.07663101, 0.379363 , 0.55732688], +[ 0.0797474 , 0.38293224, 0.55613803], +[ 0.08291581, 0.38648014, 0.55499386], +[ 0.08612581, 0.39000807, 0.55389345], +[ 0.08936818, 0.39351731, 0.55283591], +[ 0.09263475, 0.39700911, 0.5518203 ], +[ 0.09591831, 0.40048465, 0.55084572], +[ 0.09921324, 0.4039447 , 0.54991337], +[ 0.10251396, 0.40739026, 0.54902285], +[ 0.10581449, 0.41082289, 0.54817039], +[ 0.10911041, 0.41424357, 0.54735502], +[ 0.11239785, 0.41765327, 0.5465758 ], +[ 0.11567334, 0.42105293, 0.54583174], +[ 0.11893417, 0.42444322, 0.54512319], +[ 0.12217819, 0.42782467, 0.5444513 ], +[ 0.12540189, 0.43119871, 0.54381137], +[ 0.12860313, 0.43456614, 0.54320239], +[ 0.13177997, 0.43792773, 0.54262334], +[ 0.1349307 , 0.44128422, 0.54207318], +[ 0.13805491, 0.44463569, 0.54155509], +[ 0.14115011, 0.44798348, 0.54106381], +[ 0.14421502, 0.45132831, 0.54059793], +[ 0.14724858, 0.45467082, 0.54015636], +[ 0.15024993, 0.4580116 , 0.5397383 ], +[ 0.1532192 , 0.46135071, 0.53934608], +[ 0.15615459, 0.46468937, 0.53897446], +[ 0.15905548, 0.46802811, 0.53862227], +[ 0.16192139, 0.47136748, 0.53828832], +[ 0.16475245, 0.4747077 , 0.53797335], +[ 0.16754826, 0.47804933, 0.5376757 ], +[ 0.17030807, 0.48139312, 0.53739229], +[ 0.17303172, 0.4847395 , 0.53712185], +[ 0.17571937, 0.48808883, 0.53686368], +[ 0.17837165, 0.49144123, 0.53661836], +[ 0.18098782, 0.4947975 , 0.53638175], +[ 0.18356807, 0.49815802, 0.53615252], +[ 0.18611271, 0.50152311, 0.53592932], +[ 0.18862304, 0.50489271, 0.53571335], +[ 0.19109853, 0.50826757, 0.53550031], +[ 0.19353972, 0.51164795, 0.53528878], +[ 0.19594729, 0.51503411, 0.53507737], +[ 0.19832271, 0.51842599, 0.53486655], +[ 0.20066603, 0.52182411, 0.5346528 ], +[ 0.20297814, 0.52522869, 0.53443452], +[ 0.20526004, 0.52863989, 0.53421026], +[ 0.20751347, 0.53205763, 0.53398 ], +[ 0.20973895, 0.53548228, 0.53374061], +[ 0.21193777, 0.53891395, 0.53349055], +[ 0.21411134, 0.54235271, 0.53322838], +[ 0.21626158, 0.54579847, 0.53295358], +[ 0.21838953, 0.54925145, 0.53266342], +[ 0.2204969 , 0.55271165, 0.53235648], +[ 0.22258553, 0.55617904, 0.53203143], +[ 0.22465737, 0.55965355, 0.53168703], +[ 0.22671414, 0.56313522, 0.53132127], +[ 0.22875792, 0.56662395, 0.53093283], +[ 0.23079087, 0.57011965, 0.53052033], +[ 0.23281507, 0.57362224, 0.53008206], +[ 0.23483286, 0.57713158, 0.52961673], +[ 0.23684665, 0.58064749, 0.52912308], +[ 0.23885883, 0.58416983, 0.52859959], +[ 0.24087168, 0.5876985 , 0.52804439], +[ 0.24288806, 0.59123319, 0.52745678], +[ 0.24491068, 0.59477367, 0.52683562], +[ 0.24694203, 0.59831977, 0.52617913], +[ 0.24898467, 0.60187131, 0.5254855 ], +[ 0.25104184, 0.60542788, 0.52475455], +[ 0.25311648, 0.60898917, 0.5239853 ], +[ 0.25521116, 0.61255501, 0.52317565], +[ 0.25732863, 0.61612516, 0.52232392], +[ 0.25947244, 0.61969909, 0.52143048], +[ 0.26164566, 0.62327645, 0.52049446], +[ 0.26385093, 0.62685702, 0.51951365], +[ 0.26609108, 0.63044055, 0.51848614], +[ 0.26836985, 0.63402641, 0.51741302], +[ 0.27069035, 0.63761419, 0.51629357], +[ 0.27305542, 0.64120359, 0.51512593], +[ 0.27546763, 0.64479445, 0.51390698], +[ 0.2779309 , 0.64838599, 0.51263903], +[ 0.28044833, 0.65197775, 0.51132146], +[ 0.283023 , 0.65556926, 0.5099537 ], +[ 0.28565699, 0.6591606 , 0.50852973], +[ 0.28835435, 0.66275079, 0.50705376], +[ 0.29111809, 0.66633932, 0.50552536], +[ 0.29395118, 0.66992568, 0.50394405], +[ 0.29685621, 0.67350965, 0.50230621], +[ 0.29983621, 0.6770907 , 0.50061096], +[ 0.3028944 , 0.68066801, 0.49886092], +[ 0.30603358, 0.68424103, 0.49705572], +[ 0.30925654, 0.6878092 , 0.495195 ], +[ 0.31256595, 0.69137231, 0.4932732 ], +[ 0.31596475, 0.69492953, 0.49129275], +[ 0.31945565, 0.6984801 , 0.48925534], +[ 0.32304124, 0.70202339, 0.48716074], +[ 0.3267241 , 0.70555876, 0.48500876], +[ 0.33050708, 0.70908574, 0.48279556], +[ 0.33439297, 0.71260364, 0.48052013], +[ 0.33838396, 0.71611153, 0.47818646], +[ 0.34248248, 0.71960867, 0.47579452], +[ 0.34669093, 0.72309429, 0.47334431], +[ 0.3510117 , 0.72656762, 0.4708359 ], +[ 0.35544775, 0.73002792, 0.46826672], +[ 0.36000221, 0.73347437, 0.46563433], +[ 0.36467645, 0.73690592, 0.46294413], +[ 0.36947282, 0.74032165, 0.46019651], +[ 0.37439369, 0.7437206 , 0.45739197], +[ 0.37944143, 0.74710175, 0.45453114], +[ 0.38461841, 0.75046408, 0.45161478], +[ 0.38992704, 0.75380647, 0.44864382], +[ 0.39536975, 0.75712778, 0.44561937], +[ 0.40095086, 0.76042675, 0.44253806], +[ 0.4066714 , 0.76370211, 0.43940565], +[ 0.41253348, 0.76695254, 0.43622497], +[ 0.41853957, 0.77017668, 0.43299833], +[ 0.42469214, 0.77337305, 0.42972841], +[ 0.43099366, 0.77654014, 0.42641835], +[ 0.4374466 , 0.77967637, 0.4230718 ], +[ 0.44405337, 0.78278006, 0.41969303], +[ 0.45081634, 0.78584949, 0.41628696], +[ 0.45773776, 0.78888286, 0.41285929], +[ 0.46481977, 0.79187831, 0.40941661], +[ 0.47206428, 0.7948339 , 0.4059665 ], +[ 0.47947297, 0.79774769, 0.40251764], +[ 0.4870472 , 0.80061765, 0.39907996], +[ 0.49478789, 0.80344179, 0.39566477], +[ 0.50269545, 0.80621808, 0.39228485], +[ 0.51077223, 0.80894416, 0.38895135], +[ 0.51901758, 0.81161801, 0.38568043], +[ 0.52742705, 0.81423825, 0.38249349], +[ 0.53599744, 0.81680329, 0.37941065], +[ 0.5447243 , 0.8193118 , 0.37645392], +[ 0.55360175, 0.82176277, 0.37364707], +[ 0.56262239, 0.82415554, 0.37101546], +[ 0.57178017, 0.8264893 , 0.36858305], +[ 0.58106198, 0.82876481, 0.36637986], +[ 0.59045227, 0.83098363, 0.36443634], +[ 0.59993631, 0.83314747, 0.3627802 ], +[ 0.60949784, 0.8352587 , 0.36143806], +[ 0.61911788, 0.83732074, 0.3604355 ], +[ 0.62877531, 0.83933797, 0.35979568], +[ 0.63845159, 0.84131462, 0.35953618], +[ 0.64812757, 0.84325556, 0.35967077], +[ 0.65778455, 0.84516598, 0.36020866], +[ 0.66740471, 0.84705131, 0.36115427], +[ 0.67696176, 0.84891984, 0.36250963], +[ 0.68644876, 0.85077489, 0.36426656], +[ 0.69585443, 0.85262128, 0.36641547], +[ 0.70516856, 0.85446373, 0.36894368], +[ 0.71438303, 0.85630656, 0.37183582], +[ 0.72349176, 0.85815365, 0.3750745 ], +[ 0.73249065, 0.86000837, 0.37864099], +[ 0.74137736, 0.86187357, 0.3825159 ], +[ 0.7501512 , 0.86375161, 0.38667965], +[ 0.75881284, 0.86564434, 0.39111303], +[ 0.76736417, 0.8675532 , 0.39579749], +[ 0.77580803, 0.86947917, 0.40071548], +[ 0.78414804, 0.87142291, 0.40585059], +[ 0.79237773, 0.87338865, 0.41118249], +[ 0.80049763, 0.87537819, 0.41669356], +[ 0.80852429, 0.87738718, 0.42237605], +[ 0.81646307, 0.87941518, 0.42821863], +[ 0.82431945, 0.88146161, 0.43421127], +[ 0.83208604, 0.88353084, 0.44033585], +[ 0.83975443, 0.88562785, 0.44657232], +[ 0.8473544 , 0.88774214, 0.45293066], +[ 0.85489132, 0.88987266, 0.45940532], +[ 0.86234095, 0.89203075, 0.46596504], +[ 0.86971917, 0.89421116, 0.47261258], +[ 0.87704795, 0.89640559, 0.4793596 ], +[ 0.88430614, 0.89862422, 0.48617718], +[ 0.89149679, 0.90086694, 0.49305896], +[ 0.89865066, 0.90312109, 0.50002982], +[ 0.90573286, 0.90540326, 0.50704449], +[ 0.91276817, 0.90770328, 0.51412293], +[ 0.91977198, 0.91001483, 0.52127748], +[ 0.92669995, 0.91235949, 0.52844799], +[ 0.93360939, 0.91471118, 0.53569895], +[ 0.94046103, 0.91708934, 0.5429753 ], +[ 0.94728035, 0.91948254, 0.55030445], +[ 0.95406597, 0.92189212, 0.55767999], +[ 0.96080498, 0.92432523, 0.56507901], +[ 0.96752874, 0.92676689, 0.57254139], +[ 0.97419673, 0.92923821, 0.58000416], +[ 0.9808627 , 0.93171248, 0.58754258], +[ 0.98746841, 0.93422029, 0.59506489], +[ 0.99408058, 0.93672758, 0.60267 ]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/temperature.js b/node_modules/colormap/res/res/temperature.js new file mode 100644 index 0000000..4a273d3 --- /dev/null +++ b/node_modules/colormap/res/res/temperature.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.01555601, 0.13824425, 0.20181089], +[ 0.01620184, 0.14105074, 0.20897651], +[ 0.01685649, 0.14382701, 0.21623868], +[ 0.0175264 , 0.14657173, 0.2235997 ], +[ 0.01821872, 0.14928346, 0.23106187], +[ 0.01894138, 0.15196073, 0.23862748], +[ 0.01969968, 0.15460145, 0.24630497], +[ 0.02050332, 0.15720378, 0.25409711], +[ 0.02136721, 0.15976645, 0.26199915], +[ 0.02230341, 0.16228755, 0.27001321], +[ 0.0233252 , 0.16476505, 0.27814139], +[ 0.02444728, 0.16719678, 0.28638573], +[ 0.02568582, 0.16958042, 0.29474817], +[ 0.02705867, 0.1719135 , 0.30323056], +[ 0.02858553, 0.17419338, 0.31183463], +[ 0.03028808, 0.17641726, 0.32056191], +[ 0.03219022, 0.17858215, 0.32941369], +[ 0.03431826, 0.18068487, 0.33839101], +[ 0.03670118, 0.18272205, 0.34749451], +[ 0.03937082, 0.18469014, 0.35672441], +[ 0.04230474, 0.18658537, 0.36608039], +[ 0.04544128, 0.1884038 , 0.37556146], +[ 0.04879889, 0.1901413 , 0.38516584], +[ 0.05238565, 0.19179358, 0.39489082], +[ 0.05620897, 0.19335621, 0.40473254], +[ 0.06027561, 0.19482469, 0.41468582], +[ 0.06459519, 0.19618775, 0.42477146], +[ 0.06917294, 0.19744583, 0.43495728], +[ 0.07401398, 0.19859437, 0.44523225], +[ 0.07912633, 0.19962514, 0.45559656], +[ 0.08452075, 0.20052842, 0.46605087], +[ 0.09019392, 0.20130794, 0.47654788], +[ 0.09616431, 0.20194725, 0.48710445], +[ 0.1024254 , 0.20245202, 0.49766462], +[ 0.10899443, 0.20280889, 0.50822709], +[ 0.11585974, 0.20302735, 0.51872453], +[ 0.12304243, 0.2030938 , 0.52914838], +[ 0.13052767, 0.20302178, 0.53942012], +[ 0.13830991, 0.20281956, 0.54947678], +[ 0.14637971, 0.20250018, 0.55924613], +[ 0.15471863, 0.20208507, 0.56864226], +[ 0.16329705, 0.20160546, 0.57756769], +[ 0.17207282, 0.20110273, 0.58591838], +[ 0.18099176, 0.20062705, 0.59359182], +[ 0.18999022, 0.20023416, 0.60049707], +[ 0.19899974, 0.19998029, 0.60656515], +[ 0.20795298, 0.19991643, 0.61175706], +[ 0.21678952, 0.20008303, 0.61606739], +[ 0.22546043, 0.20050671, 0.61952279], +[ 0.23393063, 0.2011992 , 0.62217608], +[ 0.24217907, 0.20215872, 0.62409793], +[ 0.25019713, 0.20337273, 0.62536824], +[ 0.25798611, 0.20482134, 0.62606879], +[ 0.26555442, 0.20648047, 0.62627797], +[ 0.27291504, 0.20832446, 0.62606758], +[ 0.28008339, 0.21032792, 0.62550133], +[ 0.28706751, 0.21246914, 0.624642 ], +[ 0.29388514, 0.21472543, 0.62353802], +[ 0.30055772, 0.21707565, 0.62222519], +[ 0.30708438, 0.21950598, 0.6207555 ], +[ 0.31349163, 0.22199831, 0.61914522], +[ 0.31977984, 0.22454204, 0.61743434], +[ 0.32596955, 0.22712412, 0.61563293], +[ 0.33205791, 0.22973736, 0.61377715], +[ 0.33806601, 0.23237153, 0.61186606], +[ 0.34399174, 0.23502151, 0.60992807], +[ 0.34984607, 0.23768089, 0.60796949], +[ 0.35563846, 0.2403444 , 0.60599535], +[ 0.36136863, 0.24300892, 0.60402414], +[ 0.36704345, 0.24567078, 0.60206076], +[ 0.37267088, 0.2483267 , 0.60010594], +[ 0.3782548 , 0.25097436, 0.59816563], +[ 0.38379608, 0.25361228, 0.59624988], +[ 0.38929883, 0.25623877, 0.5943618 ], +[ 0.3947691 , 0.25885207, 0.59249964], +[ 0.40020989, 0.26145107, 0.59066609], +[ 0.40562409, 0.26403484, 0.58886331], +[ 0.41101442, 0.26660262, 0.58709291], +[ 0.41638322, 0.26915383, 0.5853566 ], +[ 0.42173132, 0.27168825, 0.58365836], +[ 0.42706343, 0.27420503, 0.5819941 ], +[ 0.43238181, 0.2767038 , 0.58036393], +[ 0.43768862, 0.27918426, 0.57876764], +[ 0.44298597, 0.28164615, 0.5772048 ], +[ 0.44827587, 0.28408925, 0.57567472], +[ 0.45356026, 0.28651338, 0.57417648], +[ 0.45884104, 0.28891838, 0.57270899], +[ 0.46412001, 0.2913041 , 0.57127095], +[ 0.46939893, 0.29367044, 0.5698609 ], +[ 0.47467951, 0.29601729, 0.56847725], +[ 0.47996336, 0.29834456, 0.56711823], +[ 0.48525207, 0.30065217, 0.56578195], +[ 0.49054716, 0.30294008, 0.5644664 ], +[ 0.49585007, 0.30520822, 0.56316946], +[ 0.50116221, 0.30745656, 0.56188888], +[ 0.50648491, 0.30968508, 0.56062233], +[ 0.51181943, 0.31189376, 0.55936737], +[ 0.51716699, 0.31408263, 0.55812148], +[ 0.52252871, 0.31625172, 0.55688205], +[ 0.52790567, 0.31840106, 0.55564642], +[ 0.53329886, 0.32053073, 0.55441182], +[ 0.5387092 , 0.32264084, 0.55317546], +[ 0.54413753, 0.3247315 , 0.55193448], +[ 0.54958461, 0.32680287, 0.55068596], +[ 0.55505113, 0.32885514, 0.54942696], +[ 0.56053768, 0.33088852, 0.54815451], +[ 0.56604476, 0.33290327, 0.54686563], +[ 0.57157236, 0.33489987, 0.54555812], +[ 0.57712131, 0.33687845, 0.54422801], +[ 0.58269186, 0.33883938, 0.54287227], +[ 0.58828416, 0.34078308, 0.54148789], +[ 0.59389827, 0.34271002, 0.54007187], +[ 0.59953415, 0.34462069, 0.53862124], +[ 0.60519167, 0.34651565, 0.53713308], +[ 0.61087061, 0.34839552, 0.5356045 ], +[ 0.61657065, 0.35026093, 0.53403268], +[ 0.62229138, 0.3521126 , 0.53241484], +[ 0.62803229, 0.35395127, 0.53074831], +[ 0.63379279, 0.35577776, 0.52903045], +[ 0.63957219, 0.35759292, 0.52725878], +[ 0.64536975, 0.35939765, 0.52543076], +[ 0.6511847 , 0.36119285, 0.52354391], +[ 0.6570161 , 0.36297956, 0.52159597], +[ 0.66286293, 0.36475881, 0.51958481], +[ 0.6687241 , 0.36653173, 0.51750839], +[ 0.67459845, 0.36829947, 0.5153648 ], +[ 0.68048472, 0.37006325, 0.51315222], +[ 0.68638162, 0.37182432, 0.51086898], +[ 0.69228775, 0.37358401, 0.50851352], +[ 0.69820166, 0.37534367, 0.50608439], +[ 0.70412186, 0.37710473, 0.50358028], +[ 0.71004688, 0.37886859, 0.50099965], +[ 0.71597525, 0.3806367 , 0.49834106], +[ 0.72190503, 0.38241075, 0.4956041 ], +[ 0.72783443, 0.38419239, 0.49278795], +[ 0.73376164, 0.3859833 , 0.4898919 ], +[ 0.73968475, 0.38778523, 0.48691538], +[ 0.7456018 , 0.38960001, 0.48385794], +[ 0.75151077, 0.39142951, 0.48071927], +[ 0.75740957, 0.39327566, 0.47749914], +[ 0.76329604, 0.39514048, 0.4741975 ], +[ 0.76916794, 0.39702603, 0.47081439], +[ 0.77502298, 0.39893446, 0.46735 ], +[ 0.78085877, 0.400868 , 0.46380463], +[ 0.78667286, 0.40282892, 0.46017874], +[ 0.79246271, 0.4048196 , 0.45647292], +[ 0.79822569, 0.40684249, 0.45268792], +[ 0.80395908, 0.40890011, 0.44882462], +[ 0.80966007, 0.41099506, 0.44488409], +[ 0.81532584, 0.41313001, 0.4408672 ], +[ 0.82095338, 0.41530771, 0.43677537], +[ 0.82653946, 0.41753108, 0.43261066], +[ 0.83208085, 0.41980305, 0.42837489], +[ 0.83757423, 0.42212661, 0.42407011], +[ 0.84301618, 0.42450482, 0.4196986 ], +[ 0.84840316, 0.42694082, 0.41526288], +[ 0.85373155, 0.4294378 , 0.41076573], +[ 0.8589976 , 0.43199897, 0.40621024], +[ 0.8641975 , 0.4346276 , 0.40159975], +[ 0.86932733, 0.43732696, 0.39693796], +[ 0.87438311, 0.44010033, 0.39222887], +[ 0.87936081, 0.44295096, 0.38747682], +[ 0.88425632, 0.44588207, 0.38268654], +[ 0.88906554, 0.44889681, 0.37786308], +[ 0.89378437, 0.45199824, 0.3730116 ], +[ 0.89840867, 0.45518929, 0.36813827], +[ 0.90293439, 0.45847274, 0.36324942], +[ 0.90735756, 0.46185117, 0.35835166], +[ 0.91167433, 0.46532694, 0.35345197], +[ 0.915881 , 0.46890217, 0.34855767], +[ 0.91997406, 0.47257868, 0.34367638], +[ 0.92395023, 0.47635796, 0.33881601], +[ 0.92780648, 0.48024117, 0.33398471], +[ 0.93154008, 0.48422909, 0.3291908 ], +[ 0.93514863, 0.48832213, 0.32444275], +[ 0.93863008, 0.49252027, 0.31974912], +[ 0.94198274, 0.49682311, 0.31511847], +[ 0.94520535, 0.50122981, 0.31055931], +[ 0.94829701, 0.50573917, 0.30608003], +[ 0.95125725, 0.51034957, 0.30168887], +[ 0.954086 , 0.51505906, 0.29739377], +[ 0.95678355, 0.51986536, 0.2932024 ], +[ 0.95935057, 0.52476587, 0.28912206], +[ 0.96178805, 0.52975777, 0.28515964], +[ 0.9640973 , 0.53483802, 0.28132156], +[ 0.96627986, 0.54000343, 0.27761379], +[ 0.9683375 , 0.5452507 , 0.27404177], +[ 0.97027215, 0.55057645, 0.27061043], +[ 0.97208896, 0.55597442, 0.26733231], +[ 0.97378824, 0.56144311, 0.26420514], +[ 0.97537225, 0.56697917, 0.2612321 ], +[ 0.97684333, 0.5725793 , 0.2584161 ], +[ 0.97820376, 0.57824032, 0.25575953], +[ 0.9794557 , 0.58395922, 0.25326432], +[ 0.9806012 , 0.58973318, 0.25093197], +[ 0.98164451, 0.59555764, 0.24876746], +[ 0.9825958 , 0.60142353, 0.24678389], +[ 0.98344841, 0.60733543, 0.24496692], +[ 0.98420378, 0.61329131, 0.24331643], +[ 0.98486309, 0.61928934, 0.24183204], +[ 0.98543359, 0.62532321, 0.24052074], +[ 0.98592661, 0.63138392, 0.2393925 ], +[ 0.98632908, 0.63748058, 0.2384285 ], +[ 0.98664126, 0.64361223, 0.23762727], +[ 0.9868743 , 0.64977022, 0.23699778], +[ 0.98703872, 0.65594684, 0.236546 ], +[ 0.98711602, 0.66215449, 0.23625164], +[ 0.98710548, 0.66839291, 0.23611251], +[ 0.98704522, 0.67463615, 0.23615516], +[ 0.98690081, 0.68090692, 0.23634896], +[ 0.98666929, 0.68720645, 0.23669008], +[ 0.98639295, 0.6935072 , 0.23720252], +[ 0.98603581, 0.69983201, 0.23785913], +[ 0.98559369, 0.70618283, 0.23865535], +[ 0.98511668, 0.71252856, 0.23961378], +[ 0.98455154, 0.71890163, 0.24070275], +[ 0.98392192, 0.72528731, 0.2419305 ], +[ 0.98324116, 0.73167761, 0.24329811], +[ 0.98246864, 0.738096 , 0.2447854 ], +[ 0.98166755, 0.74450581, 0.24641186], +[ 0.98078113, 0.75093941, 0.24815276], +[ 0.97983772, 0.75738047, 0.25001371], +[ 0.97883927, 0.7638279 , 0.25199054], +[ 0.97775747, 0.7702969 , 0.25407166], +[ 0.97664794, 0.77675738, 0.25626641], +[ 0.9754357 , 0.78324913, 0.25855344], +[ 0.9742107 , 0.7897247 , 0.26094721], +[ 0.97288357, 0.79623051, 0.2634262 ], +[ 0.97152974, 0.80272764, 0.26599948], +[ 0.97008613, 0.80924798, 0.2686529 ], +[ 0.96860571, 0.81576486, 0.27138993], +[ 0.96704307, 0.82230061, 0.27420073], +[ 0.96543772, 0.82883583, 0.27708584], +[ 0.96375242, 0.83538829, 0.28003763], +[ 0.96202315, 0.84194079, 0.28305544], +[ 0.96021049, 0.84851164, 0.28613254], +[ 0.95835763, 0.85508072, 0.28926815], +[ 0.95641175, 0.86167196, 0.29245571], +[ 0.95443484, 0.8682573 , 0.29569479], +[ 0.95234871, 0.87487125, 0.29897882], +[ 0.95024646, 0.88147281, 0.30230776], +[ 0.94801413, 0.88811109, 0.3056752 ], +[ 0.94578198, 0.89473018, 0.30908112], +[ 0.94341986, 0.90138491, 0.31252002], +[ 0.94102862, 0.90803285, 0.31599064], +[ 0.93853313, 0.91470475, 0.31948933], +[ 0.93597111, 0.92138481, 0.32301384], +[ 0.9333376 , 0.92807483, 0.32656155], +[ 0.93059157, 0.93479051, 0.33012998], +[ 0.92781425, 0.94149986, 0.33371683], +[ 0.92488992, 0.94824702, 0.33731997], +[ 0.92194114, 0.95498491, 0.34093705], +[ 0.91886139, 0.96175325, 0.3445663 ], +[ 0.91569318, 0.96853549, 0.34820569], +[ 0.91244907, 0.97532669, 0.35185336], +[ 0.90904184, 0.98215741, 0.35550781]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/turbidity.js b/node_modules/colormap/res/res/turbidity.js new file mode 100644 index 0000000..8ce61ca --- /dev/null +++ b/node_modules/colormap/res/res/turbidity.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.13399213, 0.11971138, 0.10619267], +[ 0.13788616, 0.12236452, 0.10817502], +[ 0.14178245, 0.1250035 , 0.11014172], +[ 0.14568096, 0.12762883, 0.11209297], +[ 0.14958171, 0.13024099, 0.11402893], +[ 0.15348472, 0.13284043, 0.11594979], +[ 0.15739005, 0.13542757, 0.11785572], +[ 0.16129774, 0.13800281, 0.11974689], +[ 0.16520787, 0.14056654, 0.12162345], +[ 0.16912051, 0.14311912, 0.12348554], +[ 0.17303574, 0.14566089, 0.12533331], +[ 0.17695362, 0.1481922 , 0.12716687], +[ 0.18087425, 0.15071336, 0.12898633], +[ 0.18479769, 0.15322469, 0.13079179], +[ 0.18872403, 0.15572648, 0.13258333], +[ 0.19265334, 0.15821903, 0.13436103], +[ 0.1965857 , 0.16070261, 0.13612494], +[ 0.20052118, 0.1631775 , 0.13787511], +[ 0.20445985, 0.16564396, 0.13961158], +[ 0.20840178, 0.16810225, 0.14133436], +[ 0.21234703, 0.17055262, 0.14304348], +[ 0.21629568, 0.17299532, 0.14473894], +[ 0.22024776, 0.17543059, 0.14642072], +[ 0.22420335, 0.17785866, 0.14808882], +[ 0.22816249, 0.18027976, 0.1497432 ], +[ 0.23212523, 0.18269412, 0.15138382], +[ 0.23609162, 0.18510196, 0.15301064], +[ 0.24006169, 0.18750349, 0.1546236 ], +[ 0.24403549, 0.18989895, 0.15622264], +[ 0.24801304, 0.19228853, 0.15780767], +[ 0.25199437, 0.19467245, 0.15937863], +[ 0.2559795 , 0.19705092, 0.16093541], +[ 0.25996846, 0.19942415, 0.16247792], +[ 0.26396126, 0.20179233, 0.16400606], +[ 0.26795789, 0.20415569, 0.1655197 ], +[ 0.27195838, 0.20651441, 0.16701873], +[ 0.27596271, 0.2088687 , 0.16850302], +[ 0.27997087, 0.21121876, 0.16997243], +[ 0.28398286, 0.21356481, 0.17142682], +[ 0.28799865, 0.21590704, 0.17286605], +[ 0.29201822, 0.21824565, 0.17428995], +[ 0.29604153, 0.22058085, 0.17569837], +[ 0.30006855, 0.22291285, 0.17709115], +[ 0.30409923, 0.22524186, 0.17846811], +[ 0.30813351, 0.22756808, 0.17982907], +[ 0.31217135, 0.22989172, 0.18117386], +[ 0.31621274, 0.23221296, 0.18250219], +[ 0.3202577 , 0.23453198, 0.18381375], +[ 0.32430601, 0.23684907, 0.18510854], +[ 0.32835756, 0.23916444, 0.18638636], +[ 0.33241225, 0.24147832, 0.18764703], +[ 0.33646999, 0.24379093, 0.18889033], +[ 0.34053064, 0.24610252, 0.19011606], +[ 0.34459409, 0.24841331, 0.19132403], +[ 0.34866019, 0.25072355, 0.19251403], +[ 0.35272881, 0.25303348, 0.19368584], +[ 0.3567998 , 0.25534333, 0.19483924], +[ 0.36087335, 0.25765321, 0.19597352], +[ 0.36494892, 0.25996354, 0.19708898], +[ 0.36902633, 0.26227457, 0.19818543], +[ 0.37310537, 0.26458658, 0.19926266], +[ 0.37718583, 0.26689984, 0.2003205 ], +[ 0.3812675 , 0.26921464, 0.20135875], +[ 0.38535015, 0.27153126, 0.20237724], +[ 0.38943387, 0.27384983, 0.20337522], +[ 0.39351818, 0.27617075, 0.20435286], +[ 0.39760271, 0.27849439, 0.20531022], +[ 0.40168716, 0.28082104, 0.20624715], +[ 0.40577124, 0.28315104, 0.2071635 ], +[ 0.40985466, 0.28548469, 0.20805916], +[ 0.41393747, 0.28782216, 0.20893331], +[ 0.41801909, 0.29016391, 0.20978634], +[ 0.42209904, 0.29251032, 0.21061836], +[ 0.42617698, 0.29486174, 0.21142931], +[ 0.43025255, 0.29721853, 0.21221915], +[ 0.43432568, 0.29958089, 0.21298723], +[ 0.43839585, 0.30194926, 0.21373378], +[ 0.44246248, 0.30432409, 0.21445918], +[ 0.44652517, 0.30670574, 0.21516346], +[ 0.45058349, 0.30909459, 0.21584668], +[ 0.45463748, 0.31149081, 0.21650795], +[ 0.45868623, 0.31389501, 0.21714835], +[ 0.46272931, 0.31630755, 0.21776801], +[ 0.46676627, 0.31872884, 0.21836709], +[ 0.47079694, 0.32115912, 0.2189451 ], +[ 0.47482065, 0.32359888, 0.21950271], +[ 0.47883684, 0.32604855, 0.22004041], +[ 0.48284504, 0.32850852, 0.22055847], +[ 0.48684501, 0.33097908, 0.2210566 ], +[ 0.4908361 , 0.33346069, 0.22153554], +[ 0.49481775, 0.33595376, 0.22199587], +[ 0.49878951, 0.33845868, 0.22243799], +[ 0.50275108, 0.34097574, 0.22286173], +[ 0.50670179, 0.34350541, 0.22326812], +[ 0.51064114, 0.34604804, 0.22365772], +[ 0.51456871, 0.348604 , 0.22403092], +[ 0.5184841 , 0.35117361, 0.22438803], +[ 0.52238672, 0.35375727, 0.22473004], +[ 0.52627611, 0.35635533, 0.22505754], +[ 0.53015188, 0.3589681 , 0.22537099], +[ 0.53401354, 0.36159592, 0.22567117], +[ 0.53786062, 0.36423912, 0.22595888], +[ 0.54169271, 0.36689801, 0.22623484], +[ 0.54550938, 0.3695729 , 0.22649972], +[ 0.54931021, 0.37226407, 0.22675441], +[ 0.55309477, 0.37497182, 0.2269997 ], +[ 0.55686267, 0.37769641, 0.22723646], +[ 0.5606135 , 0.38043812, 0.22746557], +[ 0.5643469 , 0.3831972 , 0.22768784], +[ 0.56806249, 0.38597389, 0.22790415], +[ 0.57175986, 0.38876844, 0.22811569], +[ 0.57543869, 0.39158106, 0.22832317], +[ 0.57909864, 0.39441197, 0.22852751], +[ 0.58273935, 0.39726139, 0.22872981], +[ 0.58636045, 0.40012951, 0.22893126], +[ 0.58996167, 0.40301651, 0.22913257], +[ 0.59354267, 0.40592259, 0.22933476], +[ 0.59710311, 0.40884791, 0.22953924], +[ 0.60064269, 0.41179264, 0.22974695], +[ 0.60416113, 0.41475694, 0.22995876], +[ 0.60765812, 0.41774097, 0.23017579], +[ 0.61113333, 0.42074485, 0.23039975], +[ 0.61458651, 0.42376873, 0.23063131], +[ 0.61801735, 0.42681274, 0.23087155], +[ 0.62142558, 0.42987703, 0.23112168], +[ 0.62481089, 0.43296166, 0.23138362], +[ 0.62817301, 0.43606678, 0.23165793], +[ 0.63151166, 0.43919252, 0.23194585], +[ 0.63482655, 0.44233896, 0.23224868], +[ 0.63811743, 0.44550616, 0.23256847], +[ 0.64138399, 0.44869425, 0.23290586], +[ 0.64462596, 0.45190333, 0.2332622 ], +[ 0.64784305, 0.45513348, 0.23363888], +[ 0.65103503, 0.45838472, 0.23403788], +[ 0.65420161, 0.46165715, 0.23446031], +[ 0.65734248, 0.46495086, 0.23490744], +[ 0.66045737, 0.46826591, 0.23538076], +[ 0.66354603, 0.47160233, 0.23588203], +[ 0.66660826, 0.47496011, 0.23641317], +[ 0.66964372, 0.47833936, 0.23697519], +[ 0.67265213, 0.48174012, 0.2375697 ], +[ 0.67563323, 0.48516242, 0.23819834], +[ 0.67858688, 0.4886062 , 0.2388632 ], +[ 0.68151283, 0.49207145, 0.2395659 ], +[ 0.68441077, 0.49555825, 0.24030777], +[ 0.68728046, 0.49906659, 0.24109054], +[ 0.6901217 , 0.50259645, 0.24191594], +[ 0.69293438, 0.50614772, 0.24278601], +[ 0.6957184 , 0.50972028, 0.24370267], +[ 0.69847345, 0.51331421, 0.24466721], +[ 0.70119936, 0.51692942, 0.24568138], +[ 0.70389601, 0.52056583, 0.24674692], +[ 0.70656328, 0.52422334, 0.24786557], +[ 0.70920134, 0.52790167, 0.24903951], +[ 0.71181008, 0.53160072, 0.25027024], +[ 0.71438933, 0.53532044, 0.25155916], +[ 0.7169391 , 0.53906066, 0.25290789], +[ 0.71945941, 0.54282119, 0.25431803], +[ 0.72195034, 0.54660183, 0.2557911 ], +[ 0.724412 , 0.55040235, 0.25732861], +[ 0.72684491, 0.55422228, 0.25893238], +[ 0.72924911, 0.55806146, 0.26060351], +[ 0.73162465, 0.56191971, 0.26234308], +[ 0.73397181, 0.56579673, 0.26415228], +[ 0.73629088, 0.5696922 , 0.2660322 ], +[ 0.73858224, 0.5736058 , 0.26798385], +[ 0.74084627, 0.57753717, 0.27000813], +[ 0.74308341, 0.58148594, 0.27210583], +[ 0.74529416, 0.58545174, 0.27427764], +[ 0.74747902, 0.58943418, 0.27652413], +[ 0.74963858, 0.59343284, 0.27884576], +[ 0.75177354, 0.59744726, 0.28124289], +[ 0.75388476, 0.60147688, 0.28371577], +[ 0.75597255, 0.60552149, 0.28626438], +[ 0.75803761, 0.60958066, 0.28888871], +[ 0.76008063, 0.61365394, 0.29158862], +[ 0.76210238, 0.61774092, 0.29436388], +[ 0.7641036 , 0.62184117, 0.29721414], +[ 0.76608507, 0.62595425, 0.30013896], +[ 0.76804758, 0.63007976, 0.30313777], +[ 0.76999192, 0.63421728, 0.30620996], +[ 0.77191901, 0.63836635, 0.3093548 ], +[ 0.77383044, 0.6425262 , 0.31257131], +[ 0.77572638, 0.64669677, 0.31585869], +[ 0.77760765, 0.65087769, 0.31921599], +[ 0.77947503, 0.6550686 , 0.32264222], +[ 0.7813293 , 0.65926917, 0.32613634], +[ 0.78317122, 0.66347909, 0.32969726], +[ 0.7850015 , 0.66769808, 0.33332391], +[ 0.78682085, 0.67192585, 0.33701518], +[ 0.78862994, 0.67616218, 0.34076995], +[ 0.79042938, 0.68040682, 0.34458712], +[ 0.79222382, 0.68465779, 0.3484636 ], +[ 0.79401088, 0.68891625, 0.35239953], +[ 0.7957906 , 0.69318226, 0.35639404], +[ 0.7975635 , 0.69745568, 0.36044607], +[ 0.79933001, 0.7017364 , 0.36455459], +[ 0.80109199, 0.70602372, 0.36871773], +[ 0.80285453, 0.71031558, 0.37293152], +[ 0.80461256, 0.71461427, 0.37719818], +[ 0.80636635, 0.71891976, 0.38151687], +[ 0.80811614, 0.72323206, 0.38588678], +[ 0.80986949, 0.72754816, 0.39030199], +[ 0.81162258, 0.73186978, 0.39476429], +[ 0.813373 , 0.73619803, 0.39927478], +[ 0.81512083, 0.74053296, 0.40383288], +[ 0.81687743, 0.74487018, 0.40842935], +[ 0.81863351, 0.74921355, 0.41307053], +[ 0.82038791, 0.75356362, 0.41775687], +[ 0.82214756, 0.75791781, 0.42248232], +[ 0.8239136 , 0.76227586, 0.4272453 ], +[ 0.82567856, 0.76664076, 0.43205146], +[ 0.82744797, 0.77101054, 0.43689575], +[ 0.82922751, 0.77538321, 0.44177277], +[ 0.83100631, 0.77976299, 0.44669145], +[ 0.83279191, 0.78414721, 0.45164484], +[ 0.83458779, 0.78853475, 0.45662933], +[ 0.83638303, 0.79292976, 0.46165442], +[ 0.83819092, 0.79732754, 0.46670762], +[ 0.84000532, 0.80173047, 0.47179418], +[ 0.84181974, 0.80614103, 0.47691997], +[ 0.84365489, 0.81055198, 0.48206501], +[ 0.84548938, 0.81497108, 0.48724941], +[ 0.84733547, 0.81939415, 0.49246112], +[ 0.84919219, 0.82382169, 0.49770079], +[ 0.85105061, 0.82825693, 0.50297708], +[ 0.85293078, 0.83269316, 0.50826969], +[ 0.85480977, 0.83713834, 0.51360152], +[ 0.85670839, 0.8415856 , 0.51895122], +[ 0.85861179, 0.84604008, 0.52433384], +[ 0.86052811, 0.85049922, 0.52974081], +[ 0.86245682, 0.85496335, 0.53517252], +[ 0.86439284, 0.8594343 , 0.54063422], +[ 0.86634766, 0.86390849, 0.54611354], +[ 0.86830532, 0.86839123, 0.55162751], +[ 0.87028696, 0.87287588, 0.55715317], +[ 0.87226814, 0.87737042, 0.56271705], +[ 0.87427719, 0.88186601, 0.56828799], +[ 0.87628373, 0.88637239, 0.57389949], +[ 0.87832071, 0.8908794 , 0.57951484], +[ 0.88035438, 0.8953977 , 0.58517178], +[ 0.88241971, 0.89991665, 0.59083084], +[ 0.88448221, 0.90444699, 0.59653114], +[ 0.88657626, 0.90897841, 0.60223338], +[ 0.88866925, 0.91352092, 0.60797504], +[ 0.89079231, 0.91806535, 0.61372008], +[ 0.89291737, 0.92262023, 0.61950119], +[ 0.89506967, 0.92717824, 0.62528881], +[ 0.89722833, 0.93174568, 0.63110756], +[ 0.89941005, 0.93631784, 0.63693766], +[ 0.90160377, 0.94089809, 0.64279232], +[ 0.90381505, 0.94548499, 0.64866493], +[ 0.90604523, 0.95007831, 0.65455386], +[ 0.90828616, 0.95468053, 0.66046911], +[ 0.91055414, 0.95928721, 0.66639076], +[ 0.91282478, 0.96390535, 0.67234889]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/velocity-blue.js b/node_modules/colormap/res/res/velocity-blue.js new file mode 100644 index 0000000..57791f5 --- /dev/null +++ b/node_modules/colormap/res/res/velocity-blue.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.06597739, 0.12386005, 0.24948116], +[ 0.06865758, 0.1266325 , 0.25557624], +[ 0.07132312, 0.12939515, 0.26166391], +[ 0.07396584, 0.13214058, 0.2677948 ], +[ 0.07658629, 0.13486916, 0.27396904], +[ 0.07919242, 0.13758843, 0.28014206], +[ 0.08176925, 0.14028419, 0.28640499], +[ 0.08433407, 0.14297318, 0.29265629], +[ 0.08687299, 0.14564215, 0.29898019], +[ 0.08939564, 0.14830082, 0.30531941], +[ 0.09189721, 0.15094484, 0.311703 ], +[ 0.09437767, 0.1535746 , 0.31813071], +[ 0.09684032, 0.15619402, 0.32458157], +[ 0.09927797, 0.15879644, 0.33109756], +[ 0.10169939, 0.16139154, 0.33762358], +[ 0.10409298, 0.1639684 , 0.34422672], +[ 0.10647003, 0.16653949, 0.35083602], +[ 0.10881765, 0.16909286, 0.35752405], +[ 0.11114624, 0.1716403 , 0.36422476], +[ 0.11344526, 0.17417268, 0.37099405], +[ 0.11572015, 0.17669703, 0.37779407], +[ 0.11796711, 0.17921142, 0.38463932], +[ 0.12018172, 0.18171361, 0.39154591], +[ 0.12237222, 0.18421369, 0.39845983], +[ 0.12451836, 0.18669519, 0.40547913], +[ 0.12663654, 0.18917624, 0.41250469], +[ 0.12871435, 0.19164859, 0.41958831], +[ 0.13074695, 0.19411179, 0.42673806], +[ 0.13274084, 0.19657524, 0.43390608], +[ 0.13468282, 0.19903239, 0.44113668], +[ 0.13656674, 0.2014837 , 0.44843501], +[ 0.13839602, 0.20393744, 0.4557622 ], +[ 0.14016368, 0.20639447, 0.46312314], +[ 0.14185409, 0.20885126, 0.47055044], +[ 0.14345986, 0.21131167, 0.47803591], +[ 0.14497642, 0.2137823 , 0.485557 ], +[ 0.146391 , 0.21626634, 0.49311434], +[ 0.14768864, 0.218768 , 0.50070638], +[ 0.14885173, 0.22129285, 0.50832846], +[ 0.14985965, 0.22384818, 0.51597154], +[ 0.1506884 , 0.2264434 , 0.52362079], +[ 0.15131023, 0.22909058, 0.53125369], +[ 0.15168425, 0.23180303, 0.53885457], +[ 0.15175702, 0.23459819, 0.54640144], +[ 0.15150762, 0.23750367, 0.55379602], +[ 0.15085272, 0.24054407, 0.56100954], +[ 0.149778 , 0.24375297, 0.56790391], +[ 0.1482413 , 0.24715977, 0.57437788], +[ 0.14626774, 0.25078506, 0.58029534], +[ 0.14393556, 0.25462901, 0.58555075], +[ 0.14135408, 0.25866955, 0.59010335], +[ 0.13864079, 0.26286871, 0.59397852], +[ 0.13589174, 0.26718438, 0.59724867], +[ 0.13319563, 0.27157423, 0.60000635], +[ 0.13058114, 0.2760103 , 0.60234289], +[ 0.12806719, 0.28047115, 0.60433583], +[ 0.12569199, 0.28493491, 0.60605594], +[ 0.12343537, 0.28939604, 0.60755039], +[ 0.12131237, 0.29384382, 0.60886431], +[ 0.1193314 , 0.29827105, 0.61003449], +[ 0.11747335, 0.3026784 , 0.61108156], +[ 0.11574105, 0.30706267, 0.61202824], +[ 0.11415261, 0.31141804, 0.61290024], +[ 0.11269166, 0.31574724, 0.61370617], +[ 0.11135538, 0.32005035, 0.61445721], +[ 0.11014377, 0.32432716, 0.6151638 ], +[ 0.10905648, 0.32857778, 0.61583463], +[ 0.10809281, 0.3328026 , 0.61647697], +[ 0.10725185, 0.33700217, 0.61709693], +[ 0.10653241, 0.34117717, 0.61769964], +[ 0.10593314, 0.34532836, 0.61828945], +[ 0.1054525 , 0.34945656, 0.61887003], +[ 0.10508879, 0.35356261, 0.61944452], +[ 0.10484013, 0.35764738, 0.62001559], +[ 0.10470452, 0.36171173, 0.62058554], +[ 0.10467981, 0.36575652, 0.62115635], +[ 0.10476371, 0.36978259, 0.62172971], +[ 0.10495382, 0.37379076, 0.62230709], +[ 0.10524762, 0.37778184, 0.62288978], +[ 0.10564252, 0.3817566 , 0.62347886], +[ 0.1061358 , 0.38571579, 0.62407531], +[ 0.10672471, 0.38966014, 0.62467996], +[ 0.10740642, 0.39359035, 0.62529352], +[ 0.10817806, 0.39750711, 0.62591662], +[ 0.10903675, 0.40141105, 0.62654981], +[ 0.10998202, 0.40530231, 0.62719516], +[ 0.11100819, 0.40918206, 0.62785128], +[ 0.11211222, 0.41305092, 0.62851837], +[ 0.11329127, 0.41690943, 0.62919672], +[ 0.11454253, 0.42075813, 0.62988653], +[ 0.11586327, 0.42459754, 0.63058799], +[ 0.11725083, 0.42842816, 0.63130122], +[ 0.1187026 , 0.43225046, 0.63202632], +[ 0.12021702, 0.4360647 , 0.63276403], +[ 0.12179033, 0.43987161, 0.6335134 ], +[ 0.1234202 , 0.44367161, 0.63427436], +[ 0.12510445, 0.4474651 , 0.6350469 ], +[ 0.12684102, 0.45125247, 0.63583095], +[ 0.12862799, 0.45503408, 0.63662642], +[ 0.13046351, 0.45881028, 0.6374332 ], +[ 0.13234563, 0.46258148, 0.63825092], +[ 0.13427263, 0.46634802, 0.63907929], +[ 0.13624311, 0.4701102 , 0.63991816], +[ 0.13825578, 0.47386832, 0.64076733], +[ 0.14030945, 0.47762263, 0.64162657], +[ 0.14240307, 0.48137341, 0.64249562], +[ 0.14453572, 0.48512091, 0.64337422], +[ 0.14670608, 0.48886546, 0.64426159], +[ 0.14891319, 0.49260737, 0.64515709], +[ 0.15115711, 0.49634669, 0.64606096], +[ 0.15343746, 0.50008362, 0.64697283], +[ 0.15575396, 0.50381833, 0.64789234], +[ 0.15810648, 0.50755096, 0.64881909], +[ 0.160495 , 0.51128167, 0.64975267], +[ 0.16291965, 0.51501059, 0.65069263], +[ 0.16538066, 0.51873781, 0.6516385 ], +[ 0.16787709, 0.52246378, 0.65258827], +[ 0.17041079, 0.52618823, 0.65354289], +[ 0.17298246, 0.52991124, 0.65450185], +[ 0.17559291, 0.53363281, 0.65546464], +[ 0.1782431 , 0.53735298, 0.65643069], +[ 0.18093416, 0.54107173, 0.65739946], +[ 0.18366735, 0.54478903, 0.65837034], +[ 0.18644408, 0.54850484, 0.65934275], +[ 0.18926596, 0.55221906, 0.66031605], +[ 0.19213472, 0.5559316 , 0.66128961], +[ 0.19505228, 0.55964231, 0.66226278], +[ 0.19802076, 0.56335105, 0.66323489], +[ 0.20104242, 0.5670576 , 0.66420528], +[ 0.20411976, 0.57076173, 0.66517325], +[ 0.20725543, 0.57446319, 0.66613812], +[ 0.21045232, 0.57816165, 0.6670992 ], +[ 0.2137135 , 0.58185676, 0.66805579], +[ 0.21704227, 0.58554813, 0.6690072 ], +[ 0.22044214, 0.58923531, 0.66995277], +[ 0.22391686, 0.59291779, 0.67089183], +[ 0.22747037, 0.59659503, 0.67182375], +[ 0.23110686, 0.6002664 , 0.67274791], +[ 0.23483073, 0.60393124, 0.67366376], +[ 0.2386466 , 0.60758879, 0.67457077], +[ 0.24255928, 0.61123826, 0.67546847], +[ 0.24657379, 0.61487875, 0.67635647], +[ 0.25069532, 0.61850931, 0.67723446], +[ 0.25492963, 0.62212933, 0.67809791], +[ 0.25928228, 0.62573723, 0.67895065], +[ 0.26375886, 0.62933183, 0.67979274], +[ 0.26836502, 0.63291182, 0.68062438], +[ 0.27310635, 0.63647586, 0.68144595], +[ 0.27799067, 0.64002284, 0.68225204], +[ 0.28302187, 0.64355084, 0.68304906], +[ 0.28820489, 0.64705829, 0.68383831], +[ 0.29354581, 0.65054365, 0.68461866], +[ 0.29905039, 0.65400523, 0.68538993], +[ 0.30471967, 0.65744127, 0.68615859], +[ 0.31055832, 0.66085014, 0.68692427], +[ 0.31656915, 0.66423017, 0.68768878], +[ 0.32274951, 0.66757995, 0.68845924], +[ 0.32910283, 0.67089793, 0.68923459], +[ 0.33562308, 0.67418311, 0.69002275], +[ 0.34230732, 0.67743451, 0.69082687], +[ 0.34914976, 0.68065146, 0.69165158], +[ 0.35614127, 0.68383379, 0.69250293], +[ 0.36327369, 0.68698145, 0.69338491], +[ 0.37053484, 0.69009497, 0.6943034 ], +[ 0.37791226, 0.69317522, 0.69526327], +[ 0.38539385, 0.69622324, 0.69626827], +[ 0.39296332, 0.69924082, 0.697324 ], +[ 0.4006094 , 0.70222938, 0.69843223], +[ 0.40831594, 0.70519122, 0.69959724], +[ 0.41607015, 0.7081284 , 0.7008209 ], +[ 0.42386201, 0.71104276, 0.70210342], +[ 0.43167256, 0.71393771, 0.70344961], +[ 0.43949947, 0.71681422, 0.70485557], +[ 0.44732849, 0.71967527, 0.70632366], +[ 0.45514951, 0.72252334, 0.70785413], +[ 0.46296115, 0.72535947, 0.70944335], +[ 0.47075349, 0.72818626, 0.71109189], +[ 0.47851694, 0.73100635, 0.71280025], +[ 0.48625412, 0.73382019, 0.71456376], +[ 0.49396102, 0.73662941, 0.716381 ], +[ 0.50163106, 0.73943622, 0.71825179], +[ 0.50925965, 0.74224248, 0.72017521], +[ 0.51685029, 0.74504841, 0.72214731], +[ 0.52440134, 0.74785523, 0.72416643], +[ 0.53191155, 0.75066408, 0.72623094], +[ 0.53938005, 0.753476 , 0.72833923], +[ 0.54680444, 0.75629239, 0.73049037], +[ 0.55418394, 0.75911426, 0.73268299], +[ 0.5615215 , 0.76194178, 0.73491438], +[ 0.56881727, 0.7647757 , 0.73718308], +[ 0.57607152, 0.76761672, 0.73948764], +[ 0.58328469, 0.7704655 , 0.74182668], +[ 0.5904573 , 0.77332263, 0.74419886], +[ 0.59758995, 0.77618869, 0.74660289], +[ 0.60468333, 0.77906419, 0.7490375 ], +[ 0.61173817, 0.78194964, 0.75150151], +[ 0.61875522, 0.7848455 , 0.75399375], +[ 0.62573528, 0.7877522 , 0.7565131 ], +[ 0.63267915, 0.79067016, 0.75905849], +[ 0.63958763, 0.79359978, 0.76162887], +[ 0.64646151, 0.79654145, 0.76422323], +[ 0.6533016 , 0.79949552, 0.76684059], +[ 0.66010867, 0.80246236, 0.76948001], +[ 0.66688348, 0.80544232, 0.77214056], +[ 0.67362676, 0.80843573, 0.77482134], +[ 0.68033922, 0.81144292, 0.77752145], +[ 0.68702155, 0.81446423, 0.78024002], +[ 0.69367439, 0.81749998, 0.7829762 ], +[ 0.7002975 , 0.82055075, 0.78572944], +[ 0.70689165, 0.82361681, 0.78849881], +[ 0.71345823, 0.82669826, 0.79128316], +[ 0.7199978 , 0.82979542, 0.79408159], +[ 0.72651088, 0.83290861, 0.7968932 ], +[ 0.73299796, 0.83603816, 0.79971707], +[ 0.73945951, 0.8391844 , 0.80255223], +[ 0.74589598, 0.84234767, 0.8053977 ], +[ 0.7523078 , 0.84552831, 0.80825242], +[ 0.75869517, 0.84872673, 0.81111536], +[ 0.76505775, 0.85194348, 0.81398568], +[ 0.77139709, 0.85517859, 0.81686163], +[ 0.77771359, 0.85843239, 0.81974187], +[ 0.78400765, 0.86170526, 0.82262493], +[ 0.79027967, 0.86499755, 0.82550921], +[ 0.79653012, 0.8683096 , 0.82839299], +[ 0.8027595 , 0.87164177, 0.83127437], +[ 0.80896806, 0.87499448, 0.83415141], +[ 0.8151567 , 0.87836796, 0.83702171], +[ 0.82132643, 0.88176244, 0.83988264], +[ 0.82747812, 0.88517819, 0.84273144], +[ 0.83361281, 0.88861542, 0.8455651 ], +[ 0.83973174, 0.89207431, 0.84838033], +[ 0.84583638, 0.89555495, 0.85117353], +[ 0.85192854, 0.89905734, 0.85394079], +[ 0.85801043, 0.90258135, 0.85667786], +[ 0.86408444, 0.90612679, 0.85938032], +[ 0.87015339, 0.9096933 , 0.86204351], +[ 0.87622047, 0.9132804 , 0.8646626 ], +[ 0.88228934, 0.9168874 , 0.86723268], +[ 0.88836402, 0.92051348, 0.86974885], +[ 0.89444909, 0.92415756, 0.87220619], +[ 0.90054949, 0.92781839, 0.87459995], +[ 0.90666975, 0.93149475, 0.87692634], +[ 0.91281478, 0.93518523, 0.87918186], +[ 0.91898934, 0.93888836, 0.88136368], +[ 0.92519787, 0.94260271, 0.88346979], +[ 0.93144429, 0.94632694, 0.88549899], +[ 0.93773184, 0.95005986, 0.88745092], +[ 0.94406341, 0.95380038, 0.88932539], +[ 0.95044015, 0.95754793, 0.89112376], +[ 0.95686223, 0.96130226, 0.89284794], +[ 0.963329 , 0.96506343, 0.8944999 ], +[ 0.96983887, 0.96883187, 0.89608183], +[ 0.97638938, 0.97260834, 0.89759591], +[ 0.98297732, 0.97639393, 0.89904421], +[ 0.98959887, 0.98019003, 0.90042859], +[ 0.99624974, 0.98399826, 0.90175064]]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/velocity-green.js b/node_modules/colormap/res/res/velocity-green.js new file mode 100644 index 0000000..aef066d --- /dev/null +++ b/node_modules/colormap/res/res/velocity-green.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.09053276, 0.13733861, 0.07325761], +[ 0.09149314, 0.14105046, 0.07638733], +[ 0.09241015, 0.14475747, 0.07947497], +[ 0.09328192, 0.14846061, 0.08252095], +[ 0.09408911, 0.15216506, 0.08552629], +[ 0.09484852, 0.15586693, 0.08848984], +[ 0.0955584 , 0.15956697, 0.09141177], +[ 0.09620477, 0.16326879, 0.09429209], +[ 0.09679537, 0.1669707 , 0.09713043], +[ 0.09733238, 0.17067237, 0.09992671], +[ 0.09781114, 0.17437504, 0.10268064], +[ 0.0982227 , 0.17808082, 0.10539142], +[ 0.09857703, 0.18178753, 0.10805922], +[ 0.09887273, 0.18549555, 0.11068374], +[ 0.09910575, 0.18920581, 0.11326433], +[ 0.099269 , 0.19291982, 0.11579981], +[ 0.09937074, 0.19663577, 0.11829057], +[ 0.09940988, 0.2003539 , 0.12073611], +[ 0.09938537, 0.20407438, 0.12313591], +[ 0.09929071, 0.20779846, 0.12548854], +[ 0.09912769, 0.21152567, 0.12779367], +[ 0.09889926, 0.21525533, 0.13005125], +[ 0.09860476, 0.21898749, 0.13226069], +[ 0.09824359, 0.22272214, 0.13442135], +[ 0.09781527, 0.22645927, 0.13653262], +[ 0.09731337, 0.2301999 , 0.13859263], +[ 0.09674403, 0.23394277, 0.14060198], +[ 0.09610733, 0.23768772, 0.14256015], +[ 0.09540319, 0.24143464, 0.14446653], +[ 0.09463164, 0.24518338, 0.14632057], +[ 0.09379283, 0.24893377, 0.14812169], +[ 0.09288704, 0.25268563, 0.14986937], +[ 0.09191348, 0.25643894, 0.15156278], +[ 0.09087165, 0.26019363, 0.15320113], +[ 0.08976486, 0.26394904, 0.15478462], +[ 0.08859393, 0.26770495, 0.1563128 ], +[ 0.08735983, 0.27146109, 0.15778524], +[ 0.08606372, 0.27521722, 0.15920155], +[ 0.08470696, 0.27897306, 0.16056134], +[ 0.0832911 , 0.28272833, 0.16186426], +[ 0.08181798, 0.28648275, 0.16310997], +[ 0.08028966, 0.29023603, 0.16429815], +[ 0.07870853, 0.29398786, 0.1654285 ], +[ 0.07707731, 0.29773796, 0.16650073], +[ 0.07539909, 0.30148601, 0.16751459], +[ 0.0736774 , 0.3052317 , 0.16846982], +[ 0.07191583, 0.30897477, 0.16936603], +[ 0.07011887, 0.31271491, 0.17020297], +[ 0.06829236, 0.31645172, 0.17098061], +[ 0.06644218, 0.3201849 , 0.17169874], +[ 0.06457505, 0.32391411, 0.17235714], +[ 0.06269859, 0.32763902, 0.1729556 ], +[ 0.06082143, 0.33135932, 0.17349393], +[ 0.05895335, 0.33507466, 0.17397193], +[ 0.05710539, 0.33878471, 0.1743894 ], +[ 0.05528998, 0.34248913, 0.17474614], +[ 0.05352104, 0.34618758, 0.17504196], +[ 0.05181408, 0.34987969, 0.17527666], +[ 0.05018627, 0.35356513, 0.17545005], +[ 0.04865644, 0.35724353, 0.17556193], +[ 0.04724506, 0.36091453, 0.17561211], +[ 0.04597406, 0.36457776, 0.1756004 ], +[ 0.04486662, 0.36823283, 0.17552659], +[ 0.04394675, 0.37187939, 0.17539051], +[ 0.04323878, 0.37551702, 0.17519196], +[ 0.04276673, 0.37914535, 0.17493074], +[ 0.04255352, 0.38276397, 0.17460669], +[ 0.04262018, 0.38637248, 0.17421963], +[ 0.04298497, 0.38997047, 0.17376937], +[ 0.04366274, 0.39355751, 0.17325577], +[ 0.04466372, 0.39713324, 0.17267831], +[ 0.04599481, 0.40069717, 0.1720371 ], +[ 0.04765813, 0.40424888, 0.17133208], +[ 0.04965139, 0.40778792, 0.17056314], +[ 0.05196846, 0.41131384, 0.16973019], +[ 0.05459993, 0.41482619, 0.16883316], +[ 0.05753382, 0.41832454, 0.16787201], +[ 0.06075626, 0.42180841, 0.16684671], +[ 0.06425218, 0.42527736, 0.1657573 ], +[ 0.06800589, 0.42873094, 0.16460379], +[ 0.07200158, 0.43216868, 0.16338628], +[ 0.07622371, 0.43559013, 0.16210488], +[ 0.08065728, 0.43899485, 0.16075975], +[ 0.08528802, 0.4423824 , 0.15935107], +[ 0.09010251, 0.44575233, 0.15787909], +[ 0.09508832, 0.44910425, 0.15634337], +[ 0.10023389, 0.4524377 , 0.15474474], +[ 0.10552844, 0.45575227, 0.15308384], +[ 0.11096207, 0.45904759, 0.15136111], +[ 0.11652565, 0.46232325, 0.14957707], +[ 0.12221076, 0.46557892, 0.14773227], +[ 0.12800964, 0.46881425, 0.14582732], +[ 0.1339151 , 0.47202893, 0.14386292], +[ 0.13992049, 0.47522266, 0.14183978], +[ 0.14601973, 0.47839518, 0.13975846], +[ 0.15220721, 0.48154623, 0.13761954], +[ 0.15847719, 0.48467561, 0.13542453], +[ 0.16482456, 0.48778316, 0.13317442], +[ 0.17124448, 0.49086871, 0.13087024], +[ 0.1777324 , 0.49393216, 0.12851305], +[ 0.18428396, 0.49697343, 0.126104 ], +[ 0.19089503, 0.49999248, 0.12364426], +[ 0.19756167, 0.50298929, 0.12113505], +[ 0.20428009, 0.50596389, 0.11857764], +[ 0.21104652, 0.50891636, 0.11597358], +[ 0.21785748, 0.51184679, 0.11332427], +[ 0.22470961, 0.51475531, 0.11063114], +[ 0.23159967, 0.5176421 , 0.1078957 ], +[ 0.23852458, 0.52050736, 0.10511948], +[ 0.24548136, 0.52335131, 0.10230412], +[ 0.25246703, 0.52617424, 0.09945144], +[ 0.25947856, 0.52897647, 0.09656369], +[ 0.26651361, 0.5317583 , 0.09364228], +[ 0.27356965, 0.53452006, 0.09068917], +[ 0.2806443 , 0.53726212, 0.08770643], +[ 0.28773525, 0.53998488, 0.08469633], +[ 0.29484032, 0.54268874, 0.08166129], +[ 0.30195743, 0.54537413, 0.07860394], +[ 0.3090846 , 0.5480415 , 0.07552722], +[ 0.31621948, 0.55069139, 0.07243519], +[ 0.32336047, 0.55332424, 0.06933118], +[ 0.3305062 , 0.55594049, 0.0662188 ], +[ 0.33765509, 0.55854062, 0.06310264], +[ 0.34480568, 0.56112513, 0.05998797], +[ 0.35195658, 0.56369452, 0.05688086], +[ 0.3591065 , 0.56624928, 0.05378828], +[ 0.36625424, 0.56878993, 0.05071836], +[ 0.37339864, 0.57131697, 0.0476805 ], +[ 0.38053866, 0.57383092, 0.04468567], +[ 0.38767326, 0.57633228, 0.04174672], +[ 0.39480098, 0.5788217 , 0.0388712 ], +[ 0.4019216 , 0.58129953, 0.03616635], +[ 0.40903431, 0.58376629, 0.03367283], +[ 0.41613836, 0.58622247, 0.03139676], +[ 0.42323306, 0.58866858, 0.02934437], +[ 0.43031775, 0.5911051 , 0.02752213], +[ 0.43739183, 0.59353253, 0.0259367 ], +[ 0.44445471, 0.59595137, 0.024595 ], +[ 0.45150585, 0.5983621 , 0.02350422], +[ 0.45854471, 0.60076521, 0.02267188], +[ 0.46557081, 0.60316118, 0.0221058 ], +[ 0.47258366, 0.6055505 , 0.02181419], +[ 0.47958278, 0.60793365, 0.02180565], +[ 0.48656773, 0.61031113, 0.02208919], +[ 0.49353805, 0.61268341, 0.02267429], +[ 0.50049318, 0.61505101, 0.02357107], +[ 0.50743284, 0.61741438, 0.02478977], +[ 0.51435656, 0.61977401, 0.02634145], +[ 0.52126388, 0.62213041, 0.02823776], +[ 0.52815431, 0.62448406, 0.03049096], +[ 0.53502735, 0.6268355 , 0.033114 ], +[ 0.54188249, 0.62918522, 0.03612051], +[ 0.54871918, 0.63153377, 0.03952488], +[ 0.55553684, 0.63388168, 0.04323651], +[ 0.56233489, 0.6362295 , 0.04713774], +[ 0.56911267, 0.6385778 , 0.05121917], +[ 0.5758695 , 0.64092715, 0.05546448], +[ 0.58260468, 0.64327815, 0.05985969], +[ 0.58931743, 0.64563142, 0.06439288], +[ 0.59600693, 0.64798759, 0.06905401], +[ 0.60267232, 0.65034731, 0.0738347 ], +[ 0.60931267, 0.65271125, 0.078728 ], +[ 0.61592727, 0.65508003, 0.08372822], +[ 0.62251497, 0.65745441, 0.08883077], +[ 0.62907452, 0.65983518, 0.09403193], +[ 0.63560473, 0.66222315, 0.09932877], +[ 0.64210433, 0.66461911, 0.10471901], +[ 0.64857199, 0.66702394, 0.11020095], +[ 0.65500629, 0.66943851, 0.11577336], +[ 0.66140573, 0.67186375, 0.1214354 ], +[ 0.66776872, 0.67430062, 0.12718656], +[ 0.67409362, 0.67675013, 0.13302663], +[ 0.68037867, 0.67921331, 0.13895556], +[ 0.68662205, 0.68169124, 0.14497353], +[ 0.69282238, 0.68418481, 0.15108128], +[ 0.69897728, 0.68669535, 0.15727889], +[ 0.70508453, 0.68922412, 0.16356662], +[ 0.71114201, 0.69177235, 0.16994487], +[ 0.71714753, 0.6943413 , 0.17641399], +[ 0.72309885, 0.69693228, 0.18297431], +[ 0.72899368, 0.6995466 , 0.18962605], +[ 0.73482974, 0.70218562, 0.1963693 ], +[ 0.74060474, 0.70485066, 0.20320411], +[ 0.7463166 , 0.70754299, 0.2101307 ], +[ 0.75196261, 0.71026417, 0.21714799], +[ 0.75754052, 0.71301555, 0.22425532], +[ 0.76304813, 0.7157985 , 0.23145177], +[ 0.76848332, 0.71861432, 0.2387362 ], +[ 0.77384408, 0.72146431, 0.2461072 ], +[ 0.77912853, 0.7243497 , 0.25356307], +[ 0.78433484, 0.72727172, 0.2611016 ], +[ 0.7894614 , 0.73023149, 0.26872033], +[ 0.79450691, 0.73323004, 0.27641686], +[ 0.79947022, 0.73626828, 0.2841884 ], +[ 0.80435041, 0.73934706, 0.29203197], +[ 0.80914682, 0.74246709, 0.29994435], +[ 0.81385901, 0.74562899, 0.30792214], +[ 0.81848682, 0.74883326, 0.31596178], +[ 0.82303017, 0.75208041, 0.32405836], +[ 0.8274895 , 0.75537065, 0.33220817], +[ 0.83186554, 0.75870402, 0.34040823], +[ 0.83615916, 0.76208053, 0.34865469], +[ 0.84037142, 0.76550008, 0.35694373], +[ 0.84450364, 0.76896245, 0.36527157], +[ 0.84855731, 0.77246735, 0.37363449], +[ 0.8525341 , 0.77601436, 0.38202889], +[ 0.85643585, 0.77960299, 0.39045126], +[ 0.86026452, 0.78323268, 0.39889826], +[ 0.8640222 , 0.7869028 , 0.4073667 ], +[ 0.86771108, 0.79061266, 0.41585355], +[ 0.87133343, 0.79436152, 0.42435598], +[ 0.87489155, 0.7981486 , 0.43287135], +[ 0.87838781, 0.8019731 , 0.4413972 ], +[ 0.88182459, 0.80583419, 0.44993127], +[ 0.88520428, 0.80973103, 0.45847151], +[ 0.88852927, 0.81366275, 0.46701603], +[ 0.89180194, 0.81762851, 0.47556314], +[ 0.89502462, 0.82162744, 0.4841113 ], +[ 0.89819963, 0.82565871, 0.49265916], +[ 0.90132924, 0.82972148, 0.50120551], +[ 0.90441569, 0.83381493, 0.50974926], +[ 0.90746117, 0.83793825, 0.51828947], +[ 0.9104678 , 0.84209066, 0.52682531], +[ 0.91343769, 0.84627138, 0.53535605], +[ 0.91637286, 0.85047967, 0.54388105], +[ 0.9192753 , 0.85471481, 0.55239974], +[ 0.92214698, 0.85897609, 0.56091165], +[ 0.9249901 , 0.86326276, 0.56941517], +[ 0.92780705, 0.86757406, 0.57790823], +[ 0.93059881, 0.87190949, 0.5863936 ], +[ 0.93336714, 0.87626844, 0.59487104], +[ 0.93611377, 0.88065031, 0.60334038], +[ 0.93884038, 0.88505451, 0.61180142], +[ 0.94154864, 0.88948047, 0.620254 ], +[ 0.94424022, 0.89392765, 0.62869796], +[ 0.94691718, 0.89839541, 0.63713184], +[ 0.94958118, 0.90288322, 0.6455555 ], +[ 0.95223308, 0.90739072, 0.65397092], +[ 0.95487445, 0.91191742, 0.66237802], +[ 0.95750683, 0.91646282, 0.67077672], +[ 0.96013179, 0.92102646, 0.67916692], +[ 0.96275088, 0.92560786, 0.68754852], +[ 0.96536576, 0.93020653, 0.69592114], +[ 0.96797753, 0.93482212, 0.70428588], +[ 0.97058766, 0.93945419, 0.71264291], +[ 0.97319768, 0.9441023 , 0.72099216], +[ 0.97580917, 0.94876601, 0.72933356], +[ 0.97842373, 0.95344486, 0.73766705], +[ 0.98104259, 0.95813849, 0.74599345], +[ 0.98366662, 0.9628466 , 0.75431452], +[ 0.98629803, 0.96756863, 0.76262887], +[ 0.98893848, 0.97230412, 0.77093649], +[ 0.99158968, 0.97705259, 0.77923744], +[ 0.99425336, 0.98181358, 0.78753178], +[ 0.9969313 , 0.98658659, 0.79581965], +[ 0.99962532, 0.99137112, 0.80410124]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/viridis.js b/node_modules/colormap/res/res/viridis.js new file mode 100644 index 0000000..5a01c6d --- /dev/null +++ b/node_modules/colormap/res/res/viridis.js @@ -0,0 +1,258 @@ +module.exports = [ +[0.267004, 0.004874, 0.329415], +[0.268510, 0.009605, 0.335427], +[0.269944, 0.014625, 0.341379], +[0.271305, 0.019942, 0.347269], +[0.272594, 0.025563, 0.353093], +[0.273809, 0.031497, 0.358853], +[0.274952, 0.037752, 0.364543], +[0.276022, 0.044167, 0.370164], +[0.277018, 0.050344, 0.375715], +[0.277941, 0.056324, 0.381191], +[0.278791, 0.062145, 0.386592], +[0.279566, 0.067836, 0.391917], +[0.280267, 0.073417, 0.397163], +[0.280894, 0.078907, 0.402329], +[0.281446, 0.084320, 0.407414], +[0.281924, 0.089666, 0.412415], +[0.282327, 0.094955, 0.417331], +[0.282656, 0.100196, 0.422160], +[0.282910, 0.105393, 0.426902], +[0.283091, 0.110553, 0.431554], +[0.283197, 0.115680, 0.436115], +[0.283229, 0.120777, 0.440584], +[0.283187, 0.125848, 0.444960], +[0.283072, 0.130895, 0.449241], +[0.282884, 0.135920, 0.453427], +[0.282623, 0.140926, 0.457517], +[0.282290, 0.145912, 0.461510], +[0.281887, 0.150881, 0.465405], +[0.281412, 0.155834, 0.469201], +[0.280868, 0.160771, 0.472899], +[0.280255, 0.165693, 0.476498], +[0.279574, 0.170599, 0.479997], +[0.278826, 0.175490, 0.483397], +[0.278012, 0.180367, 0.486697], +[0.277134, 0.185228, 0.489898], +[0.276194, 0.190074, 0.493001], +[0.275191, 0.194905, 0.496005], +[0.274128, 0.199721, 0.498911], +[0.273006, 0.204520, 0.501721], +[0.271828, 0.209303, 0.504434], +[0.270595, 0.214069, 0.507052], +[0.269308, 0.218818, 0.509577], +[0.267968, 0.223549, 0.512008], +[0.266580, 0.228262, 0.514349], +[0.265145, 0.232956, 0.516599], +[0.263663, 0.237631, 0.518762], +[0.262138, 0.242286, 0.520837], +[0.260571, 0.246922, 0.522828], +[0.258965, 0.251537, 0.524736], +[0.257322, 0.256130, 0.526563], +[0.255645, 0.260703, 0.528312], +[0.253935, 0.265254, 0.529983], +[0.252194, 0.269783, 0.531579], +[0.250425, 0.274290, 0.533103], +[0.248629, 0.278775, 0.534556], +[0.246811, 0.283237, 0.535941], +[0.244972, 0.287675, 0.537260], +[0.243113, 0.292092, 0.538516], +[0.241237, 0.296485, 0.539709], +[0.239346, 0.300855, 0.540844], +[0.237441, 0.305202, 0.541921], +[0.235526, 0.309527, 0.542944], +[0.233603, 0.313828, 0.543914], +[0.231674, 0.318106, 0.544834], +[0.229739, 0.322361, 0.545706], +[0.227802, 0.326594, 0.546532], +[0.225863, 0.330805, 0.547314], +[0.223925, 0.334994, 0.548053], +[0.221989, 0.339161, 0.548752], +[0.220057, 0.343307, 0.549413], +[0.218130, 0.347432, 0.550038], +[0.216210, 0.351535, 0.550627], +[0.214298, 0.355619, 0.551184], +[0.212395, 0.359683, 0.551710], +[0.210503, 0.363727, 0.552206], +[0.208623, 0.367752, 0.552675], +[0.206756, 0.371758, 0.553117], +[0.204903, 0.375746, 0.553533], +[0.203063, 0.379716, 0.553925], +[0.201239, 0.383670, 0.554294], +[0.199430, 0.387607, 0.554642], +[0.197636, 0.391528, 0.554969], +[0.195860, 0.395433, 0.555276], +[0.194100, 0.399323, 0.555565], +[0.192357, 0.403199, 0.555836], +[0.190631, 0.407061, 0.556089], +[0.188923, 0.410910, 0.556326], +[0.187231, 0.414746, 0.556547], +[0.185556, 0.418570, 0.556753], +[0.183898, 0.422383, 0.556944], +[0.182256, 0.426184, 0.557120], +[0.180629, 0.429975, 0.557282], +[0.179019, 0.433756, 0.557430], +[0.177423, 0.437527, 0.557565], +[0.175841, 0.441290, 0.557685], +[0.174274, 0.445044, 0.557792], +[0.172719, 0.448791, 0.557885], +[0.171176, 0.452530, 0.557965], +[0.169646, 0.456262, 0.558030], +[0.168126, 0.459988, 0.558082], +[0.166617, 0.463708, 0.558119], +[0.165117, 0.467423, 0.558141], +[0.163625, 0.471133, 0.558148], +[0.162142, 0.474838, 0.558140], +[0.160665, 0.478540, 0.558115], +[0.159194, 0.482237, 0.558073], +[0.157729, 0.485932, 0.558013], +[0.156270, 0.489624, 0.557936], +[0.154815, 0.493313, 0.557840], +[0.153364, 0.497000, 0.557724], +[0.151918, 0.500685, 0.557587], +[0.150476, 0.504369, 0.557430], +[0.149039, 0.508051, 0.557250], +[0.147607, 0.511733, 0.557049], +[0.146180, 0.515413, 0.556823], +[0.144759, 0.519093, 0.556572], +[0.143343, 0.522773, 0.556295], +[0.141935, 0.526453, 0.555991], +[0.140536, 0.530132, 0.555659], +[0.139147, 0.533812, 0.555298], +[0.137770, 0.537492, 0.554906], +[0.136408, 0.541173, 0.554483], +[0.135066, 0.544853, 0.554029], +[0.133743, 0.548535, 0.553541], +[0.132444, 0.552216, 0.553018], +[0.131172, 0.555899, 0.552459], +[0.129933, 0.559582, 0.551864], +[0.128729, 0.563265, 0.551229], +[0.127568, 0.566949, 0.550556], +[0.126453, 0.570633, 0.549841], +[0.125394, 0.574318, 0.549086], +[0.124395, 0.578002, 0.548287], +[0.123463, 0.581687, 0.547445], +[0.122606, 0.585371, 0.546557], +[0.121831, 0.589055, 0.545623], +[0.121148, 0.592739, 0.544641], +[0.120565, 0.596422, 0.543611], +[0.120092, 0.600104, 0.542530], +[0.119738, 0.603785, 0.541400], +[0.119512, 0.607464, 0.540218], +[0.119423, 0.611141, 0.538982], +[0.119483, 0.614817, 0.537692], +[0.119699, 0.618490, 0.536347], +[0.120081, 0.622161, 0.534946], +[0.120638, 0.625828, 0.533488], +[0.121380, 0.629492, 0.531973], +[0.122312, 0.633153, 0.530398], +[0.123444, 0.636809, 0.528763], +[0.124780, 0.640461, 0.527068], +[0.126326, 0.644107, 0.525311], +[0.128087, 0.647749, 0.523491], +[0.130067, 0.651384, 0.521608], +[0.132268, 0.655014, 0.519661], +[0.134692, 0.658636, 0.517649], +[0.137339, 0.662252, 0.515571], +[0.140210, 0.665859, 0.513427], +[0.143303, 0.669459, 0.511215], +[0.146616, 0.673050, 0.508936], +[0.150148, 0.676631, 0.506589], +[0.153894, 0.680203, 0.504172], +[0.157851, 0.683765, 0.501686], +[0.162016, 0.687316, 0.499129], +[0.166383, 0.690856, 0.496502], +[0.170948, 0.694384, 0.493803], +[0.175707, 0.697900, 0.491033], +[0.180653, 0.701402, 0.488189], +[0.185783, 0.704891, 0.485273], +[0.191090, 0.708366, 0.482284], +[0.196571, 0.711827, 0.479221], +[0.202219, 0.715272, 0.476084], +[0.208030, 0.718701, 0.472873], +[0.214000, 0.722114, 0.469588], +[0.220124, 0.725509, 0.466226], +[0.226397, 0.728888, 0.462789], +[0.232815, 0.732247, 0.459277], +[0.239374, 0.735588, 0.455688], +[0.246070, 0.738910, 0.452024], +[0.252899, 0.742211, 0.448284], +[0.259857, 0.745492, 0.444467], +[0.266941, 0.748751, 0.440573], +[0.274149, 0.751988, 0.436601], +[0.281477, 0.755203, 0.432552], +[0.288921, 0.758394, 0.428426], +[0.296479, 0.761561, 0.424223], +[0.304148, 0.764704, 0.419943], +[0.311925, 0.767822, 0.415586], +[0.319809, 0.770914, 0.411152], +[0.327796, 0.773980, 0.406640], +[0.335885, 0.777018, 0.402049], +[0.344074, 0.780029, 0.397381], +[0.352360, 0.783011, 0.392636], +[0.360741, 0.785964, 0.387814], +[0.369214, 0.788888, 0.382914], +[0.377779, 0.791781, 0.377939], +[0.386433, 0.794644, 0.372886], +[0.395174, 0.797475, 0.367757], +[0.404001, 0.800275, 0.362552], +[0.412913, 0.803041, 0.357269], +[0.421908, 0.805774, 0.351910], +[0.430983, 0.808473, 0.346476], +[0.440137, 0.811138, 0.340967], +[0.449368, 0.813768, 0.335384], +[0.458674, 0.816363, 0.329727], +[0.468053, 0.818921, 0.323998], +[0.477504, 0.821444, 0.318195], +[0.487026, 0.823929, 0.312321], +[0.496615, 0.826376, 0.306377], +[0.506271, 0.828786, 0.300362], +[0.515992, 0.831158, 0.294279], +[0.525776, 0.833491, 0.288127], +[0.535621, 0.835785, 0.281908], +[0.545524, 0.838039, 0.275626], +[0.555484, 0.840254, 0.269281], +[0.565498, 0.842430, 0.262877], +[0.575563, 0.844566, 0.256415], +[0.585678, 0.846661, 0.249897], +[0.595839, 0.848717, 0.243329], +[0.606045, 0.850733, 0.236712], +[0.616293, 0.852709, 0.230052], +[0.626579, 0.854645, 0.223353], +[0.636902, 0.856542, 0.216620], +[0.647257, 0.858400, 0.209861], +[0.657642, 0.860219, 0.203082], +[0.668054, 0.861999, 0.196293], +[0.678489, 0.863742, 0.189503], +[0.688944, 0.865448, 0.182725], +[0.699415, 0.867117, 0.175971], +[0.709898, 0.868751, 0.169257], +[0.720391, 0.870350, 0.162603], +[0.730889, 0.871916, 0.156029], +[0.741388, 0.873449, 0.149561], +[0.751884, 0.874951, 0.143228], +[0.762373, 0.876424, 0.137064], +[0.772852, 0.877868, 0.131109], +[0.783315, 0.879285, 0.125405], +[0.793760, 0.880678, 0.120005], +[0.804182, 0.882046, 0.114965], +[0.814576, 0.883393, 0.110347], +[0.824940, 0.884720, 0.106217], +[0.835270, 0.886029, 0.102646], +[0.845561, 0.887322, 0.099702], +[0.855810, 0.888601, 0.097452], +[0.866013, 0.889868, 0.095953], +[0.876168, 0.891125, 0.095250], +[0.886271, 0.892374, 0.095374], +[0.896320, 0.893616, 0.096335], +[0.906311, 0.894855, 0.098125], +[0.916242, 0.896091, 0.100717], +[0.926106, 0.897330, 0.104071], +[0.935904, 0.898570, 0.108131], +[0.945636, 0.899815, 0.112838], +[0.955300, 0.901065, 0.118128], +[0.964894, 0.902323, 0.123941], +[0.974417, 0.903590, 0.130215], +[0.983868, 0.904867, 0.136897], +[0.993248, 0.906157, 0.143936] +]; \ No newline at end of file diff --git a/node_modules/colormap/res/res/vorticity-pink.js b/node_modules/colormap/res/res/vorticity-pink.js new file mode 100644 index 0000000..ed6ce61 --- /dev/null +++ b/node_modules/colormap/res/res/vorticity-pink.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.20340025, 0.05125715, 0.20853721], +[ 0.20826202, 0.05257439, 0.2129329 ], +[ 0.21313526, 0.05385492, 0.21730306], +[ 0.21802045, 0.05509893, 0.22164676], +[ 0.22291807, 0.05630663, 0.225963 ], +[ 0.22782852, 0.05747825, 0.23025069], +[ 0.23275618, 0.05860748, 0.23451143], +[ 0.23769737, 0.0597012 , 0.23874094], +[ 0.24265208, 0.06076033, 0.24293764], +[ 0.24762052, 0.06178533, 0.24710008], +[ 0.25260288, 0.06277675, 0.25122673], +[ 0.25759927, 0.06373523, 0.25531596], +[ 0.26260976, 0.0646615 , 0.25936605], +[ 0.26763544, 0.06555455, 0.26337578], +[ 0.27267598, 0.06641579, 0.26734303], +[ 0.27773011, 0.06724828, 0.27126523], +[ 0.28279763, 0.06805326, 0.27514038], +[ 0.28787829, 0.06883212, 0.27896641], +[ 0.29297177, 0.06958642, 0.28274117], +[ 0.29807765, 0.07031788, 0.28646248], +[ 0.30319545, 0.07102842, 0.29012809], +[ 0.30832464, 0.07172011, 0.29373575], +[ 0.31346457, 0.07239524, 0.29728315], +[ 0.31861455, 0.07305628, 0.300768 ], +[ 0.3237738 , 0.0737059 , 0.304188 ], +[ 0.32894146, 0.07434697, 0.30754086], +[ 0.33411661, 0.07498254, 0.31082433], +[ 0.33929826, 0.07561586, 0.31403622], +[ 0.34448536, 0.07625034, 0.31717438], +[ 0.34967708, 0.07688902, 0.32023675], +[ 0.35487306, 0.07753419, 0.32322125], +[ 0.36007097, 0.07819169, 0.32612604], +[ 0.36526951, 0.07886553, 0.32894943], +[ 0.37046736, 0.07955978, 0.33168987], +[ 0.37566316, 0.08027858, 0.33434595], +[ 0.38085553, 0.08102606, 0.33691649], +[ 0.38604309, 0.08180633, 0.33940046], +[ 0.39122561, 0.08262142, 0.34179654], +[ 0.39640071, 0.08347702, 0.34410442], +[ 0.40156669, 0.08437758, 0.3463239 ], +[ 0.40672217, 0.08532677, 0.34845483], +[ 0.41186583, 0.08632804, 0.35049732], +[ 0.41699698, 0.08738362, 0.35245124], +[ 0.4221141 , 0.08849693, 0.35431721], +[ 0.42721549, 0.08967152, 0.35609639], +[ 0.43230001, 0.09090969, 0.35778975], +[ 0.43736661, 0.09221344, 0.35939846], +[ 0.4424148 , 0.09358362, 0.36092332], +[ 0.44744296, 0.09502266, 0.36236656], +[ 0.45245022, 0.09653153, 0.36372988], +[ 0.4574358 , 0.09811082, 0.36501514], +[ 0.46239915, 0.09976065, 0.36622412], +[ 0.46733939, 0.10148133, 0.36735917], +[ 0.47225593, 0.1032726 , 0.36842255], +[ 0.47714828, 0.10513387, 0.3694165 ], +[ 0.48201596, 0.10706442, 0.37034344], +[ 0.48685856, 0.10906325, 0.37120582], +[ 0.49167582, 0.11112909, 0.37200598], +[ 0.4964675 , 0.11326054, 0.37274632], +[ 0.50123327, 0.11545624, 0.37342952], +[ 0.50597299, 0.11771456, 0.37405808], +[ 0.51068666, 0.12003365, 0.37463413], +[ 0.51537424, 0.12241171, 0.37516003], +[ 0.52003564, 0.12484701, 0.37563826], +[ 0.52467068, 0.12733788, 0.37607164], +[ 0.52927965, 0.12988221, 0.3764618 ], +[ 0.53386261, 0.13247818, 0.37681091], +[ 0.53841965, 0.13512398, 0.3771211 ], +[ 0.54295065, 0.13781801, 0.37739515], +[ 0.54745584, 0.14055843, 0.37763473], +[ 0.55193545, 0.14334348, 0.37784149], +[ 0.5563896 , 0.14617156, 0.37801733], +[ 0.56081843, 0.14904112, 0.3781641 ], +[ 0.56522185, 0.15195079, 0.3782845 ], +[ 0.5696002 , 0.15489902, 0.37837948], +[ 0.57395365, 0.15788445, 0.37845058], +[ 0.57828232, 0.16090583, 0.37849943], +[ 0.58258634, 0.16396195, 0.3785276 ], +[ 0.58686572, 0.1670517 , 0.37853726], +[ 0.59112064, 0.17017398, 0.3785295 ], +[ 0.59535127, 0.17332779, 0.37850546], +[ 0.5995577 , 0.1765122 , 0.37846653], +[ 0.60374 , 0.17972635, 0.37841404], +[ 0.60789824, 0.18296943, 0.37834937], +[ 0.61203242, 0.18624067, 0.37827444], +[ 0.61614266, 0.1895394 , 0.37818974], +[ 0.62022902, 0.19286498, 0.37809649], +[ 0.6242915 , 0.19621684, 0.37799588], +[ 0.62833011, 0.19959444, 0.37788907], +[ 0.63234486, 0.2029973 , 0.3777772 ], +[ 0.63633567, 0.20642491, 0.3776619 ], +[ 0.64030257, 0.20987692, 0.37754374], +[ 0.6442455 , 0.21335297, 0.37742379], +[ 0.64816439, 0.21685275, 0.37730312], +[ 0.65205918, 0.22037597, 0.37718281], +[ 0.65592975, 0.22392235, 0.37706391], +[ 0.659776 , 0.22749166, 0.37694762], +[ 0.66359781, 0.23108369, 0.376835 ], +[ 0.66739504, 0.2346983 , 0.37672691], +[ 0.67116753, 0.23833535, 0.3766244 ], +[ 0.67491512, 0.24199472, 0.37652853], +[ 0.67863762, 0.2456763 , 0.37644035], +[ 0.68233484, 0.24938002, 0.37636095], +[ 0.68600655, 0.2531058 , 0.37629145], +[ 0.68965253, 0.2568536 , 0.37623291], +[ 0.69327254, 0.2606234 , 0.37618635], +[ 0.69686632, 0.2644152 , 0.37615291], +[ 0.7004336 , 0.26822899, 0.37613371], +[ 0.70397409, 0.27206478, 0.3761299 ], +[ 0.7074875 , 0.27592259, 0.37614266], +[ 0.71097352, 0.27980245, 0.37617313], +[ 0.71443181, 0.28370442, 0.37622252], +[ 0.71786206, 0.28762852, 0.37629208], +[ 0.7212639 , 0.2915748 , 0.37638306], +[ 0.724637 , 0.29554332, 0.37649676], +[ 0.72798098, 0.29953413, 0.37663448], +[ 0.73129546, 0.30354729, 0.37679757], +[ 0.73458005, 0.30758288, 0.37698731], +[ 0.73783435, 0.31164097, 0.37720511], +[ 0.74105798, 0.31572158, 0.37745245], +[ 0.74425052, 0.31982476, 0.37773081], +[ 0.74741157, 0.32395055, 0.37804166], +[ 0.75054072, 0.328099 , 0.37838654], +[ 0.75363755, 0.33227014, 0.378767 ], +[ 0.75670159, 0.33646406, 0.37918448], +[ 0.75973246, 0.34068073, 0.37964068], +[ 0.76272975, 0.34492014, 0.38013731], +[ 0.76569305, 0.34918228, 0.38067601], +[ 0.76862195, 0.35346712, 0.3812585 ], +[ 0.77151605, 0.35777464, 0.38188648], +[ 0.77437495, 0.36210479, 0.38256169], +[ 0.77719822, 0.36645754, 0.38328582], +[ 0.77998556, 0.37083276, 0.38406076], +[ 0.7827366 , 0.37523032, 0.38488831], +[ 0.785451 , 0.3796501 , 0.38577027], +[ 0.78812845, 0.38409196, 0.38670846], +[ 0.79076866, 0.38855573, 0.3877047 ], +[ 0.79337135, 0.3930412 , 0.38876082], +[ 0.7959363 , 0.39754813, 0.38987866], +[ 0.79846329, 0.40207627, 0.39106003], +[ 0.80095214, 0.40662536, 0.39230669], +[ 0.8034027 , 0.4111951 , 0.39362043], +[ 0.80581485, 0.41578517, 0.39500298], +[ 0.80818855, 0.42039519, 0.39645606], +[ 0.8105239 , 0.42502464, 0.39798147], +[ 0.8128208 , 0.42967323, 0.39958071], +[ 0.8150793 , 0.43434053, 0.40125532], +[ 0.81729951, 0.43902609, 0.40300681], +[ 0.81948157, 0.44372941, 0.40483662], +[ 0.82162569, 0.44844998, 0.40674611], +[ 0.82373229, 0.45318712, 0.40873667], +[ 0.82580183, 0.45794015, 0.41080953], +[ 0.82783443, 0.4627087 , 0.41296566], +[ 0.82983048, 0.46749218, 0.41520606], +[ 0.83179047, 0.47228997, 0.41753164], +[ 0.83371489, 0.47710144, 0.4199432 ], +[ 0.83560431, 0.48192593, 0.42244142], +[ 0.83745936, 0.4867628 , 0.4250269 ], +[ 0.83928115, 0.49161102, 0.42770018], +[ 0.84107035, 0.49646996, 0.43046153], +[ 0.84282741, 0.50133921, 0.43331112], +[ 0.84455311, 0.50621807, 0.43624906], +[ 0.84624832, 0.51110586, 0.43927533], +[ 0.8479139 , 0.51600192, 0.44238981], +[ 0.84955078, 0.52090556, 0.44559226], +[ 0.85115991, 0.52581613, 0.44888233], +[ 0.85274227, 0.53073296, 0.45225954], +[ 0.85429886, 0.5356554 , 0.45572335], +[ 0.85583071, 0.54058284, 0.45927307], +[ 0.85733888, 0.54551465, 0.46290794], +[ 0.85882442, 0.55045025, 0.46662711], +[ 0.86028873, 0.55538883, 0.47042955], +[ 0.86173275, 0.56032997, 0.47431426], +[ 0.86315731, 0.56527328, 0.47828022], +[ 0.86456348, 0.57021827, 0.48232627], +[ 0.86595233, 0.57516447, 0.48645122], +[ 0.86732494, 0.58011144, 0.49065382], +[ 0.86868234, 0.58505874, 0.49493276], +[ 0.87002561, 0.59000599, 0.4992867 ], +[ 0.87135575, 0.59495282, 0.50371428], +[ 0.87267379, 0.5998989 , 0.50821409], +[ 0.8739816 , 0.60484341, 0.5127843 ], +[ 0.87527962, 0.6097864 , 0.51742369], +[ 0.87656874, 0.61472764, 0.52213085], +[ 0.87784992, 0.61966691, 0.52690431], +[ 0.87912408, 0.62460401, 0.53174263], +[ 0.88039211, 0.62953874, 0.53664435], +[ 0.8816549 , 0.63447097, 0.54160802], +[ 0.88291328, 0.63940055, 0.54663223], +[ 0.88416808, 0.64432738, 0.55171557], +[ 0.88542008, 0.64925139, 0.55685666], +[ 0.88667005, 0.6541725 , 0.56205414], +[ 0.88791872, 0.65909067, 0.56730668], +[ 0.8891709 , 0.66400384, 0.57261005], +[ 0.89042371, 0.66891382, 0.57796541], +[ 0.89167767, 0.67382071, 0.58337159], +[ 0.89293342, 0.67872453, 0.58882738], +[ 0.89419156, 0.68362534, 0.59433158], +[ 0.89545267, 0.68852319, 0.59988306], +[ 0.89672032, 0.69341676, 0.60547834], +[ 0.89799564, 0.6983059 , 0.61111575], +[ 0.89927597, 0.70319221, 0.61679672], +[ 0.90056181, 0.70807582, 0.62252022], +[ 0.90185363, 0.71295684, 0.6282853 ], +[ 0.9031548 , 0.7178341 , 0.63408853], +[ 0.90446821, 0.7227067 , 0.63992685], +[ 0.90578934, 0.72757702, 0.64580349], +[ 0.90711857, 0.73244522, 0.65171762], +[ 0.90845631, 0.73731145, 0.65766843], +[ 0.90981225, 0.74217193, 0.66364681], +[ 0.9111781 , 0.74703058, 0.66965958], +[ 0.91255393, 0.75188769, 0.67570624], +[ 0.91394046, 0.75674328, 0.68178577], +[ 0.91534816, 0.76159342, 0.68788806], +[ 0.9167672 , 0.76644249, 0.69402174], +[ 0.9181979 , 0.77129068, 0.70018617], +[ 0.91964557, 0.7761362 , 0.70637599], +[ 0.92111262, 0.78097847, 0.71258846], +[ 0.92259257, 0.78582038, 0.71882946], +[ 0.92408634, 0.79066188, 0.72509782], +[ 0.92560593, 0.7954987 , 0.73138149], +[ 0.92713958, 0.80033571, 0.73769161], +[ 0.92868761, 0.80517307, 0.74402771], +[ 0.93026226, 0.81000656, 0.75037722], +[ 0.93185391, 0.8148401 , 0.75674949], +[ 0.93346107, 0.81967454, 0.76314584], +[ 0.93509628, 0.82450566, 0.7695532 ], +[ 0.9367501 , 0.82933722, 0.77598096], +[ 0.93842059, 0.83417022, 0.78243098], +[ 0.94012241, 0.83899979, 0.78888773], +[ 0.94184257, 0.84383087, 0.79536454], +[ 0.94358303, 0.84866304, 0.80185918], +[ 0.94535503, 0.8534928 , 0.80835951], +[ 0.94714576, 0.85832485, 0.81487893], +[ 0.9489631 , 0.86315684, 0.82140881], +[ 0.95080878, 0.86798852, 0.82794705], +[ 0.95267455, 0.87282297, 0.8345024 ], +[ 0.95457496, 0.87765571, 0.84105874], +[ 0.95649898, 0.88249069, 0.8476279 ], +[ 0.95844981, 0.8873272 , 0.85420614], +[ 0.96043456, 0.89216329, 0.86078529], +[ 0.96244207, 0.89700286, 0.86737746], +[ 0.96448728, 0.90184151, 0.87396567], +[ 0.96655947, 0.90668298, 0.88056151], +[ 0.96866357, 0.91152607, 0.88715902], +[ 0.97080349, 0.91636994, 0.89375329], +[ 0.97297049, 0.92121764, 0.90035362], +[ 0.97518156, 0.92606439, 0.9069399 ], +[ 0.9774208 , 0.93091541, 0.91352937], +[ 0.97970195, 0.93576702, 0.92010507], +[ 0.98201829, 0.94062171, 0.9266731 ], +[ 0.98437391, 0.94547881, 0.93322656], +[ 0.98677194, 0.95033807, 0.93975862], +[ 0.98920738, 0.95520176, 0.94627024], +[ 0.99169155, 0.96006773, 0.95274067], +[ 0.99421147, 0.96494148, 0.95917135]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/vorticity-turquoise.js b/node_modules/colormap/res/res/vorticity-turquoise.js new file mode 100644 index 0000000..7477c9e --- /dev/null +++ b/node_modules/colormap/res/res/vorticity-turquoise.js @@ -0,0 +1,256 @@ +module.exports = [[ 0.0822556 , 0.11492441, 0.26479017], +[ 0.08312617, 0.11903837, 0.26686289], +[ 0.08400181, 0.12310749, 0.26895267], +[ 0.08487294, 0.12713875, 0.27105417], +[ 0.08574385, 0.13113332, 0.27316912], +[ 0.08661249, 0.1350945 , 0.27529614], +[ 0.08747533, 0.13902581, 0.27743329], +[ 0.08833859, 0.14292709, 0.27958315], +[ 0.08919013, 0.14680436, 0.28174002], +[ 0.090041 , 0.15065551, 0.28390867], +[ 0.09088232, 0.154485 , 0.28608501], +[ 0.09171714, 0.15829319, 0.28827028], +[ 0.09254608, 0.16208117, 0.29046458], +[ 0.09336173, 0.16585233, 0.2926648 ], +[ 0.09417284, 0.16960508, 0.29487442], +[ 0.094969 , 0.17334347, 0.29708922], +[ 0.09575619, 0.17706663, 0.29931153], +[ 0.09653316, 0.18077576, 0.30154079], +[ 0.09729329, 0.18447344, 0.30377451], +[ 0.09804493, 0.18815809, 0.30601574], +[ 0.09877832, 0.19183299, 0.30826092], +[ 0.09949804, 0.19549751, 0.31051168], +[ 0.10020549, 0.19915186, 0.31276843], +[ 0.10089002, 0.20279929, 0.31502756], +[ 0.10156203, 0.20643764, 0.31729251], +[ 0.10221505, 0.21006899, 0.31956112], +[ 0.10284688, 0.21369428, 0.32183267], +[ 0.10346375, 0.21731242, 0.32410904], +[ 0.10405562, 0.22092615, 0.32638711], +[ 0.10462727, 0.22453468, 0.32866827], +[ 0.10518146, 0.22813774, 0.33095325], +[ 0.10570551, 0.23173845, 0.33323831], +[ 0.10620936, 0.23533489, 0.33552622], +[ 0.10669272, 0.23892742, 0.33781678], +[ 0.10714289, 0.24251899, 0.34010639], +[ 0.10757131, 0.24610739, 0.34239809], +[ 0.10797639, 0.24969322, 0.34469128], +[ 0.108346 , 0.25327913, 0.34698268], +[ 0.10869133, 0.25686304, 0.34927505], +[ 0.10901163, 0.26044532, 0.35156802], +[ 0.10929328, 0.26402876, 0.35385806], +[ 0.10954788, 0.26761128, 0.35614786], +[ 0.10977489, 0.27119314, 0.35843709], +[ 0.10996353, 0.27477648, 0.36072299], +[ 0.11011983, 0.2783603 , 0.36300681], +[ 0.11024602, 0.28194432, 0.36528883], +[ 0.11033616, 0.28552972, 0.36756748], +[ 0.11038673, 0.28911718, 0.36984175], +[ 0.11040471, 0.29270558, 0.37211295], +[ 0.11038934, 0.29629516, 0.37438064], +[ 0.11032908, 0.29988791, 0.37664208], +[ 0.11023173, 0.30348258, 0.37889869], +[ 0.11009863, 0.30707904, 0.38115045], +[ 0.10992866, 0.31067752, 0.38339682], +[ 0.10970926, 0.31428004, 0.38563492], +[ 0.10945183, 0.31788484, 0.38786678], +[ 0.1091557 , 0.32149208, 0.39009193], +[ 0.10882021, 0.3251019 , 0.39230988], +[ 0.10843373, 0.32871604, 0.39451799], +[ 0.10800528, 0.33233317, 0.39671769], +[ 0.10753553, 0.33595323, 0.39890871], +[ 0.10702392, 0.33957631, 0.40109056], +[ 0.10646662, 0.34320298, 0.4032621 ], +[ 0.10585824, 0.34683394, 0.40542188], +[ 0.10520656, 0.35046815, 0.40757096], +[ 0.10451122, 0.35410566, 0.40970881], +[ 0.10377192, 0.35774653, 0.41183489], +[ 0.10298843, 0.3613908 , 0.41394866], +[ 0.10215131, 0.36503965, 0.41604787], +[ 0.10126892, 0.36869202, 0.41813352], +[ 0.10034231, 0.37234779, 0.42020525], +[ 0.0993717 , 0.37600698, 0.4222625 ], +[ 0.09835742, 0.37966955, 0.42430469], +[ 0.09729997, 0.3833355 , 0.42633126], +[ 0.09620004, 0.38700476, 0.42834163], +[ 0.09505173, 0.39067803, 0.43033399], +[ 0.09386234, 0.39435455, 0.43230887], +[ 0.09263427, 0.39803412, 0.43426586], +[ 0.09136928, 0.40171665, 0.43620437], +[ 0.09006946, 0.40540204, 0.43812379], +[ 0.08873731, 0.40909016, 0.44002354], +[ 0.08737577, 0.41278087, 0.441903 ], +[ 0.08598831, 0.416474 , 0.44376159], +[ 0.08457895, 0.42016939, 0.44559868], +[ 0.08315236, 0.42386684, 0.44741369], +[ 0.08171394, 0.42756614, 0.44920601], +[ 0.08026988, 0.43126706, 0.45097504], +[ 0.07882726, 0.43496935, 0.45272018], +[ 0.07739416, 0.43867274, 0.45444085], +[ 0.07597972, 0.44237693, 0.45613645], +[ 0.07459424, 0.44608161, 0.45780643], +[ 0.07324931, 0.44978644, 0.45945021], +[ 0.07195782, 0.45349106, 0.46106724], +[ 0.07073404, 0.45719509, 0.462657 ], +[ 0.06959365, 0.46089811, 0.46421897], +[ 0.06855375, 0.46459968, 0.46575265], +[ 0.06763273, 0.46829936, 0.46725759], +[ 0.0668502 , 0.47199664, 0.46873333], +[ 0.06622677, 0.47569101, 0.47017948], +[ 0.06577674, 0.47938244, 0.47159416], +[ 0.06552566, 0.48307007, 0.47297774], +[ 0.06549821, 0.48675309, 0.47433054], +[ 0.06571558, 0.49043087, 0.47565232], +[ 0.06619782, 0.49410277, 0.47694291], +[ 0.06696294, 0.4977681 , 0.47820211], +[ 0.06801611, 0.50142699, 0.47942671], +[ 0.06938288, 0.50507783, 0.4806198 ], +[ 0.07107372, 0.50871983, 0.48178149], +[ 0.07309574, 0.51235222, 0.48291199], +[ 0.07544313, 0.51597502, 0.48400767], +[ 0.07812721, 0.51958652, 0.48507257], +[ 0.08114572, 0.52318584, 0.48610736], +[ 0.08448833, 0.52677264, 0.48710972], +[ 0.0881511 , 0.53034572, 0.48808171], +[ 0.09212706, 0.53390388, 0.4890258 ], +[ 0.09640117, 0.53744678, 0.48993927], +[ 0.10096511, 0.54097304, 0.49082601], +[ 0.10580589, 0.54448174, 0.49168732], +[ 0.11090917, 0.54797225, 0.49252203], +[ 0.11626318, 0.55144324, 0.49333556], +[ 0.12185356, 0.55489421, 0.49412566], +[ 0.12766727, 0.55832396, 0.49489786], +[ 0.13369121, 0.56173186, 0.49565192], +[ 0.13991195, 0.56511701, 0.49639184], +[ 0.14631713, 0.56847874, 0.49711902], +[ 0.15289371, 0.57181634, 0.49783712], +[ 0.15963 , 0.57512924, 0.49854817], +[ 0.1665133 , 0.57841691, 0.49925615], +[ 0.17353288, 0.58167892, 0.49996313], +[ 0.1806761 , 0.58491493, 0.50067365], +[ 0.18793344, 0.58812469, 0.50138963], +[ 0.19529246, 0.5913081 , 0.5021159 ], +[ 0.20274431, 0.59446505, 0.50285464], +[ 0.21027766, 0.59759568, 0.50361022], +[ 0.2178835 , 0.60070012, 0.50438554], +[ 0.22555217, 0.60377865, 0.50518416], +[ 0.23327491, 0.60683163, 0.50600926], +[ 0.24104301, 0.60985952, 0.50686415], +[ 0.24884894, 0.61286282, 0.50775157], +[ 0.25668402, 0.61584223, 0.50867505], +[ 0.26454253, 0.61879831, 0.50963658], +[ 0.27241623, 0.62173194, 0.51063959], +[ 0.28030037, 0.62464378, 0.51168577], +[ 0.28818811, 0.62753476, 0.51277795], +[ 0.29607483, 0.6304057 , 0.51391788], +[ 0.30395552, 0.63325751, 0.51510756], +[ 0.31182548, 0.63609115, 0.51634887], +[ 0.31968144, 0.63890744, 0.51764306], +[ 0.32751881, 0.64170747, 0.51899197], +[ 0.33533556, 0.64449201, 0.52039636], +[ 0.34312773, 0.64726215, 0.52185776], +[ 0.35089362, 0.6500187 , 0.52337683], +[ 0.35863089, 0.6527626 , 0.52495444], +[ 0.36633683, 0.65549486, 0.52659157], +[ 0.37401197, 0.65821602, 0.52828804], +[ 0.38165106, 0.66092757, 0.53004568], +[ 0.38925805, 0.6636295 , 0.53186311], +[ 0.39682619, 0.66632361, 0.53374255], +[ 0.40435935, 0.66900988, 0.53568268], +[ 0.41185545, 0.67168934, 0.53768413], +[ 0.41931195, 0.67436313, 0.53974757], +[ 0.4267326 , 0.67703119, 0.54187183], +[ 0.43411299, 0.67969503, 0.54405806], +[ 0.44145473, 0.68235501, 0.54630566], +[ 0.44875982, 0.68501134, 0.548614 ], +[ 0.45602407, 0.68766556, 0.55098397], +[ 0.46324986, 0.69031781, 0.55341478], +[ 0.47043894, 0.69296834, 0.55590587], +[ 0.47758904, 0.69561826, 0.55845753], +[ 0.48469972, 0.69826831, 0.56106956], +[ 0.49177413, 0.70091838, 0.56374112], +[ 0.49881245, 0.70356902, 0.56647195], +[ 0.50581153, 0.70622159, 0.56926226], +[ 0.51277388, 0.70887607, 0.57211131], +[ 0.51970103, 0.71153267, 0.57501859], +[ 0.52659327, 0.71419186, 0.57798374], +[ 0.53344948, 0.71685451, 0.58100655], +[ 0.54026906, 0.71952134, 0.58408665], +[ 0.54705487, 0.72219215, 0.58722338], +[ 0.55380726, 0.72486737, 0.59041634], +[ 0.56052657, 0.72754743, 0.59366511], +[ 0.56721317, 0.73023276, 0.59696926], +[ 0.57386499, 0.73292445, 0.60032836], +[ 0.58048457, 0.73562232, 0.60374187], +[ 0.58707274, 0.73832661, 0.6072093 ], +[ 0.59362989, 0.7410377 , 0.61073019], +[ 0.60015641, 0.74375596, 0.61430405], +[ 0.60665269, 0.74648175, 0.61793039], +[ 0.61311912, 0.74921542, 0.62160871], +[ 0.6195561 , 0.75195731, 0.62533849], +[ 0.62596359, 0.7547079 , 0.62911918], +[ 0.63234144, 0.75746769, 0.63295016], +[ 0.63869119, 0.76023665, 0.636831 ], +[ 0.64501324, 0.76301508, 0.64076119], +[ 0.65130797, 0.76580329, 0.64474018], +[ 0.6575758 , 0.76860157, 0.64876743], +[ 0.66381711, 0.77141023, 0.6528424 ], +[ 0.6700323 , 0.77422953, 0.65696453], +[ 0.67622177, 0.77705976, 0.66113327], +[ 0.68238592, 0.77990119, 0.66534806], +[ 0.68852514, 0.78275408, 0.66960833], +[ 0.69463984, 0.78561869, 0.67391352], +[ 0.7007304 , 0.78849528, 0.67826307], +[ 0.70679722, 0.79138408, 0.68265641], +[ 0.71284071, 0.79428535, 0.68709296], +[ 0.71886125, 0.79719932, 0.69157216], +[ 0.72485924, 0.80012621, 0.69609343], +[ 0.73083509, 0.80306624, 0.70065621], +[ 0.73678917, 0.80601965, 0.70525992], +[ 0.7427219 , 0.80898665, 0.70990399], +[ 0.74863273, 0.8119678 , 0.7145874 ], +[ 0.75452231, 0.81496323, 0.71930966], +[ 0.76039158, 0.81797292, 0.72407043], +[ 0.76624094, 0.82099707, 0.72886914], +[ 0.77207078, 0.82403586, 0.73370523], +[ 0.7778815 , 0.82708949, 0.7385781 ], +[ 0.7836735 , 0.83015814, 0.74348721], +[ 0.78944716, 0.83324197, 0.74843197], +[ 0.7952029 , 0.83634117, 0.75341183], +[ 0.80094018, 0.8394563 , 0.75842558], +[ 0.80665847, 0.84258795, 0.76347196], +[ 0.81235991, 0.84573553, 0.76855153], +[ 0.81804489, 0.8488992 , 0.77366371], +[ 0.82371383, 0.85207911, 0.77880793], +[ 0.82936712, 0.85527541, 0.78398361], +[ 0.83500487, 0.85848838, 0.78918994], +[ 0.84062467, 0.86171948, 0.79442393], +[ 0.84622998, 0.86496746, 0.79968738], +[ 0.85182123, 0.86823244, 0.80497972], +[ 0.85739886, 0.87151457, 0.81030033], +[ 0.86296333, 0.87481394, 0.81564861], +[ 0.86851129, 0.87813251, 0.8210202 ], +[ 0.87404693, 0.88146862, 0.82641787], +[ 0.87957085, 0.88482234, 0.83184102], +[ 0.88508363, 0.8881937 , 0.83728899], +[ 0.89058366, 0.89158388, 0.84275871], +[ 0.89607183, 0.89499282, 0.84824952], +[ 0.90155093, 0.8984195 , 0.85376285], +[ 0.90702184, 0.90186385, 0.85929802], +[ 0.9124833 , 0.90532691, 0.86485172], +[ 0.91793653, 0.90880848, 0.87042326], +[ 0.92338518, 0.91230711, 0.87601483], +[ 0.92883088, 0.91582235, 0.88162632], +[ 0.93427164, 0.91935565, 0.88725314], +[ 0.93971244, 0.92290477, 0.89289983], +[ 0.94515638, 0.92646829, 0.89856977], +[ 0.95060356, 0.93004618, 0.90426466], +[ 0.9560531 , 0.93363854, 0.90998868], +[ 0.96150666, 0.93724342, 0.91575606], +[ 0.96695738, 0.94086247, 0.92157953], +[ 0.97238707, 0.94450246, 0.92746703], +[ 0.97777857, 0.94816875, 0.93343649], +[ 0.98310507, 0.95187277, 0.93948603], +[ 0.98834174, 0.95562829, 0.94558363], +[ 0.99349184, 0.95943756, 0.95169832], +[ 0.99857633, 0.96329654, 0.9577895 ]] \ No newline at end of file diff --git a/node_modules/colormap/res/res/warm.png b/node_modules/colormap/res/res/warm.png new file mode 100644 index 0000000..4d38503 Binary files /dev/null and b/node_modules/colormap/res/res/warm.png differ diff --git a/node_modules/colormap/test.js b/node_modules/colormap/test.js new file mode 100644 index 0000000..9701961 --- /dev/null +++ b/node_modules/colormap/test.js @@ -0,0 +1,84 @@ +var colormap = require('.'), + test = require('tape'); + + +test('is object - object', function(t) { + t.plan(1); + var n = 15, + cg, + check = true; + + // Display all the colormaps + var cms = ['jet', 'hsv' ,'hot', 'cool', 'spring', 'summer', 'autumn', + 'winter', 'greys', 'bone', 'copper']; + + for (var i = 0; i < cms.length; i++) { + cg = colormap({'colormap': cms[i], 'nshades': n }); + check = check & (cg.length == n); + } + + t.ok(check); +}); + +test('alpha config creates rgba arrays with correct alpha', function (t) { + + var alpha = 0.5; + + var rgba = colormap({ + colormap: 'greys', + format: 'rgba', + alpha: alpha + }); + + var firstRgba = rgba[0]; + var lastRgba = rgba[rgba.length - 1]; + + t.equal(firstRgba[3], alpha); + t.equal(lastRgba[3], alpha); + + t.end(); +}); + +test('user colormap alpha values override alpha config', function (t) { + + var alphaconfig = 0.8; + var alpha = 0.5; + + var map = [ + {index:0, rgb:[0, 0, 0, alpha]}, + {index:1, rgb:[255, 255, 255, alpha]} + ]; + + var rgba = colormap({ + colormap: map, + alpha: [alphaconfig, alphaconfig], + format: 'rgba' + }); + + var firstRgba = rgba[0]; + var lastRgba = rgba[rgba.length - 1]; + + t.equal(firstRgba[3], alpha); + t.equal(lastRgba[3], alpha); + + t.end(); +}); + +test('alphamap values are computed independently between runs', function(t) { + var blueRed = colormap({ + colormap: "bluered", + format: "rgba", + alpha: [0, 1] + }); + + var blueRed2 = colormap({ + colormap: "bluered", + format: "rgba", + alpha: [0, 0.5] + }); + + t.same(blueRed[blueRed.length - 1], [ 255, 0, 0, 1 ]); + t.same(blueRed2[blueRed2.length - 1], [ 255, 0, 0, 0.5 ]); + + t.end(); +}); diff --git a/node_modules/fs/README.md b/node_modules/fs/README.md new file mode 100644 index 0000000..5e9a74c --- /dev/null +++ b/node_modules/fs/README.md @@ -0,0 +1,9 @@ +# Security holding package + +This package name is not currently in use, but was formerly occupied +by another package. To avoid malicious use, npm is hanging on to the +package name, but loosely, and we'll probably give it to you if you +want it. + +You may adopt this package by contacting support@npmjs.com and +requesting the name. diff --git a/node_modules/fs/package.json b/node_modules/fs/package.json new file mode 100644 index 0000000..9a17e05 --- /dev/null +++ b/node_modules/fs/package.json @@ -0,0 +1,46 @@ +{ + "_from": "fs", + "_id": "fs@0.0.1-security", + "_inBundle": false, + "_integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=", + "_location": "/fs", + "_phantomChildren": {}, + "_requested": { + "type": "tag", + "registry": true, + "raw": "fs", + "name": "fs", + "escapedName": "fs", + "rawSpec": "", + "saveSpec": null, + "fetchSpec": "latest" + }, + "_requiredBy": [ + "#USER", + "/" + ], + "_resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "_shasum": "8a7bd37186b6dddf3813f23858b57ecaaf5e41d4", + "_spec": "fs", + "_where": "/var/www/chiro-canto/public/larynx/scripts", + "author": "", + "bugs": { + "url": "https://github.com/npm/security-holder/issues" + }, + "bundleDependencies": false, + "deprecated": false, + "description": "This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.", + "homepage": "https://github.com/npm/security-holder#readme", + "keywords": [], + "license": "ISC", + "main": "index.js", + "name": "fs", + "repository": { + "type": "git", + "url": "git+https://github.com/npm/security-holder.git" + }, + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "0.0.1-security" +} diff --git a/node_modules/lerp/.npmignore b/node_modules/lerp/.npmignore new file mode 100644 index 0000000..bd11a0b --- /dev/null +++ b/node_modules/lerp/.npmignore @@ -0,0 +1,8 @@ +bower_components +node_modules +*.log +.DS_Store +bundle.js +test +test.js +demo/ \ No newline at end of file diff --git a/node_modules/lerp/.travis.yml b/node_modules/lerp/.travis.yml new file mode 100644 index 0000000..ff74a05 --- /dev/null +++ b/node_modules/lerp/.travis.yml @@ -0,0 +1,3 @@ +language: node_js +node_js: + - '0.10' \ No newline at end of file diff --git a/node_modules/lerp/LICENSE.md b/node_modules/lerp/LICENSE.md new file mode 100644 index 0000000..927a999 --- /dev/null +++ b/node_modules/lerp/LICENSE.md @@ -0,0 +1,21 @@ +The MIT License (MIT) +Copyright (c) 2014 Matt DesLauriers + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE +OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/node_modules/lerp/README.md b/node_modules/lerp/README.md new file mode 100644 index 0000000..608a783 --- /dev/null +++ b/node_modules/lerp/README.md @@ -0,0 +1,23 @@ +# lerp + +[![Build Status](https://travis-ci.org/mattdesl/lerp.svg?branch=master)](https://travis-ci.org/mattdesl/lerp) [![frozen](http://badges.github.io/stability-badges/dist/frozen.svg)](http://github.com/badges/stability-badges) + +In the fashion of small modules and saving keystrokes; this is a bare-bones [linear interpolation](http://en.wikipedia.org/wiki/Linear_interpolation) function. Same as `mix` in GLSL. + +```js +var lerp = require('lerp') + +var res = lerp(a, b, t); +``` + +## Usage + +[![NPM](https://nodei.co/npm/lerp.png)](https://nodei.co/npm/lerp/) + +```lerp(start, end, alpha)``` + +Interpolates from start to end using the given alpha. + +## License + +MIT, see [LICENSE.md](http://github.com/mattdesl/lerp/blob/master/LICENSE.md) for details. diff --git a/node_modules/lerp/index.js b/node_modules/lerp/index.js new file mode 100644 index 0000000..c1c7dc4 --- /dev/null +++ b/node_modules/lerp/index.js @@ -0,0 +1,4 @@ +function lerp(v0, v1, t) { + return v0*(1-t)+v1*t +} +module.exports = lerp \ No newline at end of file diff --git a/node_modules/lerp/package.json b/node_modules/lerp/package.json new file mode 100644 index 0000000..0011fc0 --- /dev/null +++ b/node_modules/lerp/package.json @@ -0,0 +1,62 @@ +{ + "_from": "lerp@^1.0.3", + "_id": "lerp@1.0.3", + "_inBundle": false, + "_integrity": "sha1-oYyJaPkXiW3hXM/MKNVaa3Med24=", + "_location": "/lerp", + "_phantomChildren": {}, + "_requested": { + "type": "range", + "registry": true, + "raw": "lerp@^1.0.3", + "name": "lerp", + "escapedName": "lerp", + "rawSpec": "^1.0.3", + "saveSpec": null, + "fetchSpec": "^1.0.3" + }, + "_requiredBy": [ + "/colormap" + ], + "_resolved": "https://registry.npmjs.org/lerp/-/lerp-1.0.3.tgz", + "_shasum": "a18c8968f917896de15ccfcc28d55a6b731e776e", + "_spec": "lerp@^1.0.3", + "_where": "/var/www/chiro-canto/node_modules/colormap", + "author": { + "name": "Matt DesLauriers", + "email": "dave.des@gmail.com" + }, + "bugs": { + "url": "https://github.com/mattdesl/lerp/issues" + }, + "bundleDependencies": false, + "dependencies": {}, + "deprecated": false, + "description": "bare-bones linear interpolation function", + "devDependencies": { + "tape": "~2.13.2" + }, + "homepage": "https://github.com/mattdesl/lerp", + "keywords": [ + "linear", + "interpolation", + "lerp", + "interp", + "smoothstep", + "mix", + "anim", + "animation", + "animate" + ], + "license": "MIT", + "main": "index.js", + "name": "lerp", + "repository": { + "type": "git", + "url": "git://github.com/mattdesl/lerp.git" + }, + "scripts": { + "test": "node test.js" + }, + "version": "1.0.3" +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..24a584e --- /dev/null +++ b/package-lock.json @@ -0,0 +1,24 @@ +{ + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "colormap": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/colormap/-/colormap-2.3.2.tgz", + "integrity": "sha512-jDOjaoEEmA9AgA11B/jCSAvYE95r3wRoAyTf3LEHGiUVlNHJaL1mRkf5AyLSpQBVGfTEPwGEqCIzL+kgr2WgNA==", + "requires": { + "lerp": "^1.0.3" + } + }, + "fs": { + "version": "0.0.1-security", + "resolved": "https://registry.npmjs.org/fs/-/fs-0.0.1-security.tgz", + "integrity": "sha1-invTcYa23d84E/I4WLV+yq9eQdQ=" + }, + "lerp": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/lerp/-/lerp-1.0.3.tgz", + "integrity": "sha1-oYyJaPkXiW3hXM/MKNVaa3Med24=" + } + } +} diff --git a/public/larynx/scripts/hot-colormap.json b/public/larynx/scripts/hot-colormap.json new file mode 100644 index 0000000..152b903 --- /dev/null +++ b/public/larynx/scripts/hot-colormap.json @@ -0,0 +1,258 @@ +[ + [0, 0, 0, 1], + [0.011764705882352941, 0, 0, 1], + [0.023529411764705882, 0, 0, 1], + [0.03529411764705882, 0, 0, 1], + [0.047058823529411764, 0, 0, 1], + [0.058823529411764705, 0, 0, 1], + [0.07058823529411765, 0, 0, 1], + [0.08235294117647059, 0, 0, 1], + [0.09411764705882353, 0, 0, 1], + [0.10588235294117647, 0, 0, 1], + [0.11764705882352941, 0, 0, 1], + [0.12941176470588237, 0, 0, 1], + [0.1411764705882353, 0, 0, 1], + [0.15294117647058825, 0, 0, 1], + [0.16470588235294117, 0, 0, 1], + [0.17647058823529413, 0, 0, 1], + [0.18823529411764706, 0, 0, 1], + [0.2, 0, 0, 1], + [0.21176470588235294, 0, 0, 1], + [0.2235294117647059, 0, 0, 1], + [0.23529411764705882, 0, 0, 1], + [0.24705882352941178, 0, 0, 1], + [0.25882352941176473, 0, 0, 1], + [0.27058823529411763, 0, 0, 1], + [0.2823529411764706, 0, 0, 1], + [0.29411764705882354, 0, 0, 1], + [0.3058823529411765, 0, 0, 1], + [0.3176470588235294, 0, 0, 1], + [0.32941176470588235, 0, 0, 1], + [0.3411764705882353, 0, 0, 1], + [0.35294117647058826, 0, 0, 1], + [0.36470588235294116, 0, 0, 1], + [0.3764705882352941, 0, 0, 1], + [0.38823529411764707, 0, 0, 1], + [0.4, 0, 0, 1], + [0.4117647058823529, 0, 0, 1], + [0.4235294117647059, 0, 0, 1], + [0.43529411764705883, 0, 0, 1], + [0.4470588235294118, 0, 0, 1], + [0.4549019607843137, 0, 0, 1], + [0.4666666666666667, 0, 0, 1], + [0.47843137254901963, 0, 0, 1], + [0.49019607843137253, 0, 0, 1], + [0.5019607843137255, 0, 0, 1], + [0.5137254901960784, 0, 0, 1], + [0.5254901960784314, 0, 0, 1], + [0.5372549019607843, 0, 0, 1], + [0.5490196078431373, 0, 0, 1], + [0.5607843137254902, 0, 0, 1], + [0.5725490196078431, 0, 0, 1], + [0.5843137254901961, 0, 0, 1], + [0.596078431372549, 0, 0, 1], + [0.6078431372549019, 0, 0, 1], + [0.6196078431372549, 0, 0, 1], + [0.6313725490196078, 0, 0, 1], + [0.6431372549019608, 0, 0, 1], + [0.6549019607843137, 0, 0, 1], + [0.6666666666666666, 0, 0, 1], + [0.6784313725490196, 0, 0, 1], + [0.6901960784313725, 0, 0, 1], + [0.7019607843137254, 0, 0, 1], + [0.7137254901960784, 0, 0, 1], + [0.7254901960784313, 0, 0, 1], + [0.7372549019607844, 0, 0, 1], + [0.7490196078431373, 0, 0, 1], + [0.7607843137254902, 0, 0, 1], + [0.7725490196078432, 0, 0, 1], + [0.7843137254901961, 0, 0, 1], + [0.796078431372549, 0, 0, 1], + [0.807843137254902, 0, 0, 1], + [0.8196078431372549, 0, 0, 1], + [0.8313725490196079, 0, 0, 1], + [0.8431372549019608, 0, 0, 1], + [0.8549019607843137, 0, 0, 1], + [0.8666666666666667, 0, 0, 1], + [0.8784313725490196, 0, 0, 1], + [0.8901960784313725, 0, 0, 1], + [0.9019607843137255, 0, 0, 1], + [0.9019607843137255, 0.011764705882352941, 0, 1], + [0.9058823529411765, 0.023529411764705882, 0, 1], + [0.9058823529411765, 0.03137254901960784, 0, 1], + [0.9058823529411765, 0.043137254901960784, 0, 1], + [0.9098039215686274, 0.054901960784313725, 0, 1], + [0.9098039215686274, 0.06666666666666667, 0, 1], + [0.9098039215686274, 0.07450980392156863, 0, 1], + [0.9137254901960784, 0.08627450980392157, 0, 1], + [0.9137254901960784, 0.09803921568627451, 0, 1], + [0.9137254901960784, 0.10980392156862745, 0, 1], + [0.9176470588235294, 0.11764705882352941, 0, 1], + [0.9176470588235294, 0.12941176470588237, 0, 1], + [0.9176470588235294, 0.1411764705882353, 0, 1], + [0.9215686274509803, 0.15294117647058825, 0, 1], + [0.9215686274509803, 0.1607843137254902, 0, 1], + [0.9215686274509803, 0.17254901960784313, 0, 1], + [0.9254901960784314, 0.1843137254901961, 0, 1], + [0.9254901960784314, 0.19607843137254902, 0, 1], + [0.9254901960784314, 0.20784313725490197, 0, 1], + [0.9294117647058824, 0.21568627450980393, 0, 1], + [0.9294117647058824, 0.22745098039215686, 0, 1], + [0.9294117647058824, 0.23921568627450981, 0, 1], + [0.9333333333333333, 0.25098039215686274, 0, 1], + [0.9333333333333333, 0.25882352941176473, 0, 1], + [0.9333333333333333, 0.27058823529411763, 0, 1], + [0.9372549019607843, 0.2823529411764706, 0, 1], + [0.9372549019607843, 0.29411764705882354, 0, 1], + [0.9372549019607843, 0.30196078431372547, 0, 1], + [0.9411764705882353, 0.3137254901960784, 0, 1], + [0.9411764705882353, 0.3254901960784314, 0, 1], + [0.9411764705882353, 0.33725490196078434, 0, 1], + [0.9450980392156862, 0.34509803921568627, 0, 1], + [0.9450980392156862, 0.3568627450980392, 0, 1], + [0.9450980392156862, 0.3686274509803922, 0, 1], + [0.9490196078431372, 0.3803921568627451, 0, 1], + [0.9490196078431372, 0.38823529411764707, 0, 1], + [0.9490196078431372, 0.4, 0, 1], + [0.9529411764705882, 0.4117647058823529, 0, 1], + [0.9529411764705882, 0.4235294117647059, 0, 1], + [0.9529411764705882, 0.43529411764705883, 0, 1], + [0.9529411764705882, 0.44313725490196076, 0, 1], + [0.9568627450980393, 0.4549019607843137, 0, 1], + [0.9568627450980393, 0.4666666666666667, 0, 1], + [0.9568627450980393, 0.47843137254901963, 0, 1], + [0.9607843137254902, 0.48627450980392156, 0, 1], + [0.9607843137254902, 0.4980392156862745, 0, 1], + [0.9607843137254902, 0.5098039215686274, 0, 1], + [0.9647058823529412, 0.5215686274509804, 0, 1], + [0.9647058823529412, 0.5294117647058824, 0, 1], + [0.9647058823529412, 0.5411764705882353, 0, 1], + [0.9686274509803922, 0.5529411764705883, 0, 1], + [0.9686274509803922, 0.5647058823529412, 0, 1], + [0.9686274509803922, 0.5725490196078431, 0, 1], + [0.9725490196078431, 0.5843137254901961, 0, 1], + [0.9725490196078431, 0.596078431372549, 0, 1], + [0.9725490196078431, 0.6078431372549019, 0, 1], + [0.9764705882352941, 0.6196078431372549, 0, 1], + [0.9764705882352941, 0.6274509803921569, 0, 1], + [0.9764705882352941, 0.6392156862745098, 0, 1], + [0.9803921568627451, 0.6509803921568628, 0, 1], + [0.9803921568627451, 0.6627450980392157, 0, 1], + [0.9803921568627451, 0.6705882352941176, 0, 1], + [0.984313725490196, 0.6823529411764706, 0, 1], + [0.984313725490196, 0.6941176470588235, 0, 1], + [0.984313725490196, 0.7058823529411765, 0, 1], + [0.9882352941176471, 0.7137254901960784, 0, 1], + [0.9882352941176471, 0.7254901960784313, 0, 1], + [0.9882352941176471, 0.7372549019607844, 0, 1], + [0.9921568627450981, 0.7490196078431373, 0, 1], + [0.9921568627450981, 0.7568627450980392, 0, 1], + [0.9921568627450981, 0.7686274509803922, 0, 1], + [0.996078431372549, 0.7803921568627451, 0, 1], + [0.996078431372549, 0.792156862745098, 0, 1], + [0.996078431372549, 0.8, 0, 1], + [1, 0.8117647058823529, 0, 1], + [1, 0.8235294117647058, 0, 1], + [1, 0.8235294117647058, 0.011764705882352941, 1], + [1, 0.8274509803921568, 0.0196078431372549, 1], + [1, 0.8274509803921568, 0.03137254901960784, 1], + [1, 0.8313725490196079, 0.0392156862745098, 1], + [1, 0.8313725490196079, 0.050980392156862744, 1], + [1, 0.8352941176470589, 0.058823529411764705, 1], + [1, 0.8352941176470589, 0.07058823529411765, 1], + [1, 0.8392156862745098, 0.0784313725490196, 1], + [1, 0.8392156862745098, 0.09019607843137255, 1], + [1, 0.8392156862745098, 0.09803921568627451, 1], + [1, 0.8431372549019608, 0.10980392156862745, 1], + [1, 0.8431372549019608, 0.11764705882352941, 1], + [1, 0.8470588235294118, 0.12941176470588237, 1], + [1, 0.8470588235294118, 0.13725490196078433, 1], + [1, 0.8509803921568627, 0.14901960784313725, 1], + [1, 0.8509803921568627, 0.1568627450980392, 1], + [1, 0.8549019607843137, 0.16862745098039217, 1], + [1, 0.8549019607843137, 0.17647058823529413, 1], + [1, 0.8549019607843137, 0.18823529411764706, 1], + [1, 0.8588235294117647, 0.19607843137254902, 1], + [1, 0.8588235294117647, 0.20784313725490197, 1], + [1, 0.8627450980392157, 0.21568627450980393, 1], + [1, 0.8627450980392157, 0.22745098039215686, 1], + [1, 0.8666666666666667, 0.23529411764705882, 1], + [1, 0.8666666666666667, 0.24705882352941178, 1], + [1, 0.8666666666666667, 0.2549019607843137, 1], + [1, 0.8705882352941177, 0.26666666666666666, 1], + [1, 0.8705882352941177, 0.27450980392156865, 1], + [1, 0.8745098039215686, 0.28627450980392155, 1], + [1, 0.8745098039215686, 0.29411764705882354, 1], + [1, 0.8784313725490196, 0.3058823529411765, 1], + [1, 0.8784313725490196, 0.3137254901960784, 1], + [1, 0.8823529411764706, 0.3254901960784314, 1], + [1, 0.8823529411764706, 0.3333333333333333, 1], + [1, 0.8823529411764706, 0.34509803921568627, 1], + [1, 0.8862745098039215, 0.35294117647058826, 1], + [1, 0.8862745098039215, 0.36470588235294116, 1], + [1, 0.8901960784313725, 0.37254901960784315, 1], + [1, 0.8901960784313725, 0.3843137254901961, 1], + [1, 0.8941176470588236, 0.39215686274509803, 1], + [1, 0.8941176470588236, 0.403921568627451, 1], + [1, 0.8980392156862745, 0.4117647058823529, 1], + [1, 0.8980392156862745, 0.4235294117647059, 1], + [1, 0.8980392156862745, 0.43137254901960786, 1], + [1, 0.9019607843137255, 0.44313725490196076, 1], + [1, 0.9019607843137255, 0.45098039215686275, 1], + [1, 0.9058823529411765, 0.4627450980392157, 1], + [1, 0.9058823529411765, 0.47058823529411764, 1], + [1, 0.9098039215686274, 0.4823529411764706, 1], + [1, 0.9098039215686274, 0.49019607843137253, 1], + [1, 0.9137254901960784, 0.5019607843137255, 1], + [1, 0.9137254901960784, 0.5098039215686274, 1], + [1, 0.9137254901960784, 0.5215686274509804, 1], + [1, 0.9176470588235294, 0.5294117647058824, 1], + [1, 0.9176470588235294, 0.5411764705882353, 1], + [1, 0.9215686274509803, 0.5490196078431373, 1], + [1, 0.9215686274509803, 0.5607843137254902, 1], + [1, 0.9254901960784314, 0.5686274509803921, 1], + [1, 0.9254901960784314, 0.5803921568627451, 1], + [1, 0.9254901960784314, 0.5882352941176471, 1], + [1, 0.9294117647058824, 0.6, 1], + [1, 0.9294117647058824, 0.6078431372549019, 1], + [1, 0.9333333333333333, 0.6196078431372549, 1], + [1, 0.9333333333333333, 0.6274509803921569, 1], + [1, 0.9372549019607843, 0.6392156862745098, 1], + [1, 0.9372549019607843, 0.6470588235294118, 1], + [1, 0.9411764705882353, 0.6588235294117647, 1], + [1, 0.9411764705882353, 0.6666666666666666, 1], + [1, 0.9411764705882353, 0.6784313725490196, 1], + [1, 0.9450980392156862, 0.6862745098039216, 1], + [1, 0.9450980392156862, 0.6980392156862745, 1], + [1, 0.9490196078431372, 0.7058823529411765, 1], + [1, 0.9490196078431372, 0.7176470588235294, 1], + [1, 0.9529411764705882, 0.7254901960784313, 1], + [1, 0.9529411764705882, 0.7372549019607844, 1], + [1, 0.9568627450980393, 0.7450980392156863, 1], + [1, 0.9568627450980393, 0.7568627450980392, 1], + [1, 0.9568627450980393, 0.7647058823529411, 1], + [1, 0.9607843137254902, 0.7764705882352941, 1], + [1, 0.9607843137254902, 0.7843137254901961, 1], + [1, 0.9647058823529412, 0.796078431372549, 1], + [1, 0.9647058823529412, 0.803921568627451, 1], + [1, 0.9686274509803922, 0.8156862745098039, 1], + [1, 0.9686274509803922, 0.8235294117647058, 1], + [1, 0.9725490196078431, 0.8352941176470589, 1], + [1, 0.9725490196078431, 0.8431372549019608, 1], + [1, 0.9725490196078431, 0.8549019607843137, 1], + [1, 0.9764705882352941, 0.8627450980392157, 1], + [1, 0.9764705882352941, 0.8745098039215686, 1], + [1, 0.9803921568627451, 0.8823529411764706, 1], + [1, 0.9803921568627451, 0.8941176470588236, 1], + [1, 0.984313725490196, 0.9019607843137255, 1], + [1, 0.984313725490196, 0.9137254901960784, 1], + [1, 0.984313725490196, 0.9215686274509803, 1], + [1, 0.9882352941176471, 0.9333333333333333, 1], + [1, 0.9882352941176471, 0.9411764705882353, 1], + [1, 0.9921568627450981, 0.9529411764705882, 1], + [1, 0.9921568627450981, 0.9607843137254902, 1], + [1, 0.996078431372549, 0.9725490196078431, 1], + [1, 0.996078431372549, 0.9803921568627451, 1], + [1, 1, 0.9921568627450981, 1], + [1, 1, 1, 1] +] \ No newline at end of file diff --git a/public/larynx/scripts/spectro.js b/public/larynx/scripts/spectro.js index c4e14cc..4d8bf92 100644 --- a/public/larynx/scripts/spectro.js +++ b/public/larynx/scripts/spectro.js @@ -2,10 +2,25 @@ let audio = document.getElementById('audio'); let file_path = audio.src; -var wavesurfer; +function loadJSON(callback) { + + var xobj = new XMLHttpRequest(); + xobj.overrideMimeType("application/json"); + xobj.open('GET', '/larynx/scripts/hot-colormap.json', true); // Replace 'appDataServices' with the path to your file + xobj.onreadystatechange = function() { + if (xobj.readyState == 4 && xobj.status == "200") { + // Required use of an anonymous callback as .open will NOT return a value but simply returns undefined in asynchronous mode + callback(xobj.responseText); + } + }; + xobj.send(null); +} + +let colorMap; +let wavesurfer; // Init & load -document.addEventListener('DOMContentLoaded', function() { +function initAndLoadSpectrogram(colorMap) { // Create an instance var options = { container: '#waveform', @@ -17,14 +32,15 @@ document.addEventListener('DOMContentLoaded', function() { WaveSurfer.spectrogram.create({ wavesurfer: wavesurfer, container: "#wave-spectrogram", - labels: true + labels: true, + colorMap: colorMap }) ] }; wavesurfer = WaveSurfer.create(options); wavesurfer.load(file_path); -}); +} let play = document.getElementById('play').addEventListener('click', function() { wavesurfer.play(); @@ -60,4 +76,16 @@ spectro.addEventListener('mousemove', function() { let coords = getCursorXY(window.event); measure(coords[0], coords[1]); // console.log(getCursorXY(window.event)); +}); + +document.addEventListener('DOMContentLoaded', function() { + // Load a colormap json file to be passed to the spectrogram.create method. + WaveSurfer.util + .fetchFile({ + url: '/larynx/scripts/hot-colormap.json', + responseType: 'json' + }) + .on('success', colorMap => { + initAndLoadSpectrogram(colorMap); + }); }); \ No newline at end of file