|
@@ -5,9 +5,9 @@ const goldenRatioConj = 0.618033988749895;
|
|
const getColorGenerator = () => {
|
|
const getColorGenerator = () => {
|
|
let h = 0;
|
|
let h = 0;
|
|
const nextColor = () => {
|
|
const nextColor = () => {
|
|
|
|
+ const h6 = h * 6;
|
|
h += goldenRatioConj;
|
|
h += goldenRatioConj;
|
|
h %= 1;
|
|
h %= 1;
|
|
- const h6 = h * 6;
|
|
|
|
const hIndex = Math.floor(h6);
|
|
const hIndex = Math.floor(h6);
|
|
const f = 0.45 * (h6 - hIndex);
|
|
const f = 0.45 * (h6 - hIndex);
|
|
const q = 0.9 - f;
|
|
const q = 0.9 - f;
|