Skip to content

Commit

Permalink
fix(createImageUI): Trim available colormaps
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Aug 1, 2018
1 parent c736e14 commit 136c49b
Showing 1 changed file with 83 additions and 1 deletion.
84 changes: 83 additions & 1 deletion src/userInterface/createImageUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,89 @@ function createColorPresetSelector(
lookupTableProxy,
renderWindow
) {
const presetNames = vtkColorMaps.rgbPresetNames;
//const presetNames = vtkColorMaps.rgbPresetNames;
// More selective
const presetNames = [
"2hot",
"Asymmtrical Earth Tones (6_21b)",
"Black, Blue and White",
"Black, Orange and White",
"Black-Body Radiation",
"Blue to Red Rainbow",
"Blue to Yellow",
"Blues",
"BrBG",
"BrOrYl",
"BuGn",
"BuGnYl",
"BuPu",
"BuRd",
"CIELab Blue to Red",
"Cold and Hot",
"Cool to Warm",
"Cool to Warm (Extended)",
"GBBr",
"GYPi",
"GnBu",
"GnBuPu",
"GnRP",
"GnYlRd",
"Grayscale",
"Green-Blue Asymmetric Divergent (62Blbc)",
"Greens",
"GyRd",
"Haze",
"Haze_cyan",
"Haze_green",
"Haze_lime",
"Inferno (matplotlib)",
"Linear Blue (8_31f)",
"Linear YGB 1211g",
"Magma (matplotlib)",
"Muted Blue-Green",
"OrPu",
"Oranges",
"PRGn",
"PiYG",
"Plasma (matplotlib)",
"PuBu",
"PuOr",
"PuRd",
"Purples",
"Rainbow Blended Black",
"Rainbow Blended Grey",
"Rainbow Blended White",
"Rainbow Desaturated",
"RdOr",
"RdOrYl",
"RdPu",
"Red to Blue Rainbow",
"Reds",
"Spectral_lowBlue",
"Viridis (matplotlib)",
"Warm to Cool",
"Warm to Cool (Extended)",
"X Ray",
"Yellow 15",
"blot",
"blue2cyan",
"blue2yellow",
"bone_Matlab",
"coolwarm",
"copper_Matlab",
"gist_earth",
"gray_Matlab",
"heated_object",
"hsv",
"hue_L60",
"jet",
"magenta",
"nic_CubicL",
"nic_CubicYF",
"nic_Edge",
"pink_Matlab",
"rainbow",
]

const presetSelector = document.createElement('select');
presetSelector.setAttribute('class', style.selector);
Expand Down

0 comments on commit 136c49b

Please sign in to comment.