Enable gradients, set colors to randhue. Fixes #209.
rodzic
02c5b3ddd4
commit
34fb3080fa
|
@ -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 }));
|
||||
|
|
|
@ -104,7 +104,7 @@ const DEFAULT_CONTEXT: SvgSymbolContext = {
|
|||
fill: "#ffffff",
|
||||
showSpecs: false,
|
||||
uniformStrokeWidth: DEFAULT_UNIFORM_STROKE_WIDTH,
|
||||
disableGradients: true,
|
||||
disableGradients: false,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue