Added redish hot spectrogram colorMap
This commit is contained in:
parent
ec4e1b20cb
commit
7b16503314
4
node_modules/colormap/.travis.yml
generated
vendored
Normal file
4
node_modules/colormap/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "4.0"
|
||||
- "6.2"
|
34
node_modules/colormap/README.md
generated
vendored
Normal file
34
node_modules/colormap/README.md
generated
vendored
Normal file
@ -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.
|
89
node_modules/colormap/colorScale.js
generated
vendored
Normal file
89
node_modules/colormap/colorScale.js
generated
vendored
Normal file
@ -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]}]
|
||||
};
|
BIN
node_modules/colormap/colormaps.png
generated
vendored
Normal file
BIN
node_modules/colormap/colormaps.png
generated
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 159 KiB |
69
node_modules/colormap/example.js
generated
vendored
Normal file
69
node_modules/colormap/example.js
generated
vendored
Normal file
@ -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);
|
||||
}
|
||||
}
|
143
node_modules/colormap/index.js
generated
vendored
Normal file
143
node_modules/colormap/index.js
generated
vendored
Normal file
@ -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(',') + ')';
|
||||
}
|
19
node_modules/colormap/license.md
generated
vendored
Normal file
19
node_modules/colormap/license.md
generated
vendored
Normal file
@ -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.
|
BIN
node_modules/colormap/night.jpg
generated
vendored
Normal file
BIN
node_modules/colormap/night.jpg
generated
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 234 KiB |
90
node_modules/colormap/package.json
generated
vendored
Normal file
90
node_modules/colormap/package.json
generated
vendored
Normal file
@ -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"
|
||||
}
|
231
node_modules/colormap/res/draw.js
generated
vendored
Normal file
231
node_modules/colormap/res/draw.js
generated
vendored
Normal file
@ -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'));
|
||||
}
|
256
node_modules/colormap/res/res/CDOM.js
generated
vendored
Normal file
256
node_modules/colormap/res/res/CDOM.js
generated
vendored
Normal file
@ -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 ]];
|
256
node_modules/colormap/res/res/PAR.js
generated
vendored
Normal file
256
node_modules/colormap/res/res/PAR.js
generated
vendored
Normal file
@ -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 ]];
|
257
node_modules/colormap/res/res/bathymetry.js
generated
vendored
Normal file
257
node_modules/colormap/res/res/bathymetry.js
generated
vendored
Normal file
@ -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.12637 |