Enable gradients, set colors to randhue. Fixes #209.

pull/207/head
Atul Varma 2021-07-17 14:03:04 -04:00
rodzic 02c5b3ddd4
commit 34fb3080fa
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 }));

Wyświetl plik

@ -104,7 +104,7 @@ const DEFAULT_CONTEXT: SvgSymbolContext = {
fill: "#ffffff",
showSpecs: false,
uniformStrokeWidth: DEFAULT_UNIFORM_STROKE_WIDTH,
disableGradients: true,
disableGradients: false,
};
/**