another color for other tanks
This commit is contained in:
parent
4af51b3e51
commit
a0a0762f84
1 changed files with 55 additions and 34 deletions
|
|
@ -4,6 +4,7 @@ export type Theme = {
|
|||
primary: HSL;
|
||||
secondary: HSL;
|
||||
background: HSL;
|
||||
tertiary: HSL;
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
|
|
@ -68,7 +69,10 @@ export function getRandomTheme(): Theme {
|
|||
const secondary = getRandomHsl(otherColorParams);
|
||||
primary.h = angle(+1 * goldenAngle + primary.h);
|
||||
|
||||
return {background, primary, secondary};
|
||||
const tertiary = getRandomHsl(otherColorParams);
|
||||
primary.h = angle(+3 * goldenAngle + primary.h);
|
||||
|
||||
return {background, primary, secondary, tertiary};
|
||||
}
|
||||
|
||||
function applyTheme(theme: Theme) {
|
||||
|
|
|
|||
Reference in a new issue