From 34fb3080fab9ea6d79c87580b4c1cd7334b58895 Mon Sep 17 00:00:00 2001 From: Atul Varma Date: Sat, 17 Jul 2021 14:03:04 -0400 Subject: [PATCH] Enable gradients, set colors to randhue. Fixes #209. --- lib/random-colors.ts | 2 +- lib/svg-symbol.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/random-colors.ts b/lib/random-colors.ts index 68af93e..8635abc 100644 --- a/lib/random-colors.ts +++ b/lib/random-colors.ts @@ -10,7 +10,7 @@ type RandomPaletteGenerator = (numEntries: number, rng: Random) => string[]; export type RandomPaletteAlgorithm = "RGB" | "CIELUV" | "threevals" | "randhue"; export const DEFAULT_RANDOM_PALETTE_ALGORITHM: RandomPaletteAlgorithm = - "threevals"; + "randhue"; function createRandomRGBColor(rng: Random): string { const rgb = range(3).map(() => rng.inRange({ min: 0, max: 255, step: 1 })); diff --git a/lib/svg-symbol.tsx b/lib/svg-symbol.tsx index 73ec8c3..84a5fc8 100644 --- a/lib/svg-symbol.tsx +++ b/lib/svg-symbol.tsx @@ -104,7 +104,7 @@ const DEFAULT_CONTEXT: SvgSymbolContext = { fill: "#ffffff", showSpecs: false, uniformStrokeWidth: DEFAULT_UNIFORM_STROKE_WIDTH, - disableGradients: true, + disableGradients: false, }; /**