Skip to content

Commit

Permalink
Merge pull request #123 from nomic-ai/hotfix-colorschemes
Browse files Browse the repository at this point in the history
Hotfix-colorschemes
  • Loading branch information
RLesser authored Jun 20, 2024
2 parents 0d4d81f + 40e3c58 commit cdd1fdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aesthetics/ColorAesthetic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ const d3Interpolators = [
for (const interpolator of d3Interpolators) {
const name = interpolator.replace('interpolate', '').toLowerCase();
const v = d3Chromatic[interpolator];
color_palettes[name] = materialize_color_interpolator(v);
const materialized = materialize_color_interpolator(v);
color_palettes[name] = materialized;
color_palettes[name.toLowerCase()] = materialized;
if (name === 'rainbow') {
// Deterministic random shuffle orders
const shuffle = shuffler(randomLcg(1));
Expand Down

0 comments on commit cdd1fdc

Please sign in to comment.