wkdhkr/dedupper

View on GitHub
src/services/deepLearning/bodyPix/part_color_scales.js

Summary

Maintainability
C
1 day
Test Coverage
// @flow
/**
 * @license
 * Copyright 2019 Google Inc. All Rights Reserved.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * =============================================================================
 */
// color schemes generated using d3-scale-chromatic:
// https://github.com/d3/d3-scale-chromatic

export const rainbow = [
  [110, 64, 170],
  [143, 61, 178],
  [178, 60, 178],
  [210, 62, 167],
  [238, 67, 149],
  [255, 78, 125],
  [255, 94, 99],
  [255, 115, 75],
  [255, 140, 56],
  [239, 167, 47],
  [217, 194, 49],
  [194, 219, 64],
  [175, 240, 91],
  [135, 245, 87],
  [96, 247, 96],
  [64, 243, 115],
  [40, 234, 141],
  [28, 219, 169],
  [26, 199, 194],
  [33, 176, 213],
  [47, 150, 224],
  [65, 125, 224],
  [84, 101, 214],
  [99, 81, 195]
];

export const warm = [
  [110, 64, 170],
  [106, 72, 183],
  [100, 81, 196],
  [92, 91, 206],
  [84, 101, 214],
  [75, 113, 221],
  [66, 125, 224],
  [56, 138, 226],
  [48, 150, 224],
  [40, 163, 220],
  [33, 176, 214],
  [29, 188, 205],
  [26, 199, 194],
  [26, 210, 182],
  [28, 219, 169],
  [33, 227, 155],
  [41, 234, 141],
  [51, 240, 128],
  [64, 243, 116],
  [79, 246, 105],
  [96, 247, 97],
  [115, 246, 91],
  [134, 245, 88],
  [155, 243, 88]
];

export const spectral = [
  [158, 1, 66],
  [181, 26, 71],
  [202, 50, 74],
  [219, 73, 74],
  [232, 94, 73],
  [242, 117, 75],
  [248, 142, 83],
  [251, 167, 96],
  [253, 190, 112],
  [254, 210, 129],
  [254, 227, 149],
  [254, 240, 166],
  [251, 248, 176],
  [243, 249, 172],
  [231, 245, 163],
  [213, 238, 159],
  [190, 229, 160],
  [164, 218, 163],
  [137, 207, 165],
  [110, 192, 168],
  [86, 173, 174],
  [70, 150, 179],
  [67, 127, 180],
  [77, 103, 173]
];