colour tweaks
This commit is contained in:
parent
b5a9606ccd
commit
1e2cee8644
1 changed files with 4 additions and 4 deletions
|
@ -13,9 +13,9 @@ const MINL_LIGHT = 0.7;
|
||||||
const MAXL_DARK = 0.65;
|
const MAXL_DARK = 0.65;
|
||||||
|
|
||||||
const MINC_LIGHT = 0.08;
|
const MINC_LIGHT = 0.08;
|
||||||
const MAXC_LIGHT = 0.125;
|
const MAXC_LIGHT = 0.1;
|
||||||
const MINC_DARK = 0.12;
|
const MINC_DARK = 0.12;
|
||||||
const MAXC_DARK = 0.2;
|
const MAXC_DARK = 0.175;
|
||||||
|
|
||||||
// max spread for a sequence of analogous colours. unless that would put them
|
// max spread for a sequence of analogous colours. unless that would put them
|
||||||
// too close together
|
// too close together
|
||||||
|
@ -169,9 +169,9 @@ function mkSpines(outer: Oklch): Oklch {
|
||||||
|
|
||||||
function mkVitiligo(outer: Oklch): Oklch {
|
function mkVitiligo(outer: Oklch): Oklch {
|
||||||
return {
|
return {
|
||||||
l: randBetween(max(outer.l, 0.85), MAXL),
|
l: randBetween(max(outer.l, 0.94), 0.985), // exception to MAXL
|
||||||
c: randBetween(min(outer.c, 0.1), MINC_LIGHT),
|
c: randBetween(min(outer.c, 0.1), MINC_LIGHT),
|
||||||
h: randBetween(outer.h + 20, outer.h - 20)
|
h: outer.h
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue