Skip to content

Commit 2c18cab

Browse files
committed
Update default palette to 12 colours
1 parent ccb3aad commit 2c18cab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/renderers/_base.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,9 @@ export abstract class RendererBase {
339339
this.options.colourBlind = false;
340340
}
341341
if (this.options.colourBlind) {
342-
this.options.colours = ["#9F0162", "#8400CD", "#A40122", "#009F81", "#008DF9", "#E20134", "#FF5AAF", "#00C2F9", "#FF6E3A", "#00FCCF", "#FFB2FD", "#FFC33B"];
342+
this.options.colours = ["#9f0162", "#8400cd", "#a40122", "#009f81", "#008df9", "#e20134", "#ff5aaf", "#00c2f9", "#ff6e3a", "#00fccf", "#ffb2fd", "#ffc33b"];
343343
} else {
344-
this.options.colours = ["#e41a1c", "#377eb8", "#4daf4a", "#ffff33", "#984ea3", "#ff7f00", "#a65628", "#f781bf", "#999999"];
344+
this.options.colours = ["#e31a1c", "#1f78b4", "#33a02c", "#ffff99", "#6a3d9a", "#ff7f00", "#b15928", "#fb9a99", "#a6cee3", "#b2df8a", "#fdbf6f", "#cab2d6"];
345345
}
346346

347347
// Validate sheet list

test/playground.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ <h1>JSON Input</h1>
563563
<textarea id="jsonIn" style="width: 100%; height: 10em"></textarea>
564564
<div>
565565
<input type="radio" id="fillStandard" name="playerfill" value="standard" checked>
566-
<label for="fillStandard">Standard colours (9 max)</label>
566+
<label for="fillStandard">Standard colours (12 colours)</label>
567567

568568
<input type="radio" id="fillBlind" name="playerfill" value="blind">
569-
<label for="fillBlind">Colour-blind-friendly colours (4 max)</label>
569+
<label for="fillBlind">Colour-blind-friendly colours (12 colours)</label>
570570

571571
<input type="radio" id="fillPatterns" name="playerfill" value="patterns">
572572
<label for="fillPatterns">Black-and-white patterns (10 max)</label>

0 commit comments

Comments
 (0)