Fix key background rotation
This commit is contained in:
parent
2936654c18
commit
8eb8cc6640
10
index.js
10
index.js
@ -138,14 +138,14 @@ function makeGradient(a, b, c, d) {
|
||||
return "rgb(21 94 117)";
|
||||
}
|
||||
const style = "conic-gradient(" +
|
||||
(color[a] || OTHER) + " 0deg," +
|
||||
(color[a] || OTHER) + " 90deg," +
|
||||
(color[b] || OTHER) + " 0deg," +
|
||||
(color[b] || OTHER) + " 90deg," +
|
||||
(color[b] || OTHER) + " 180deg," +
|
||||
(color[d] || OTHER) + " 90deg," +
|
||||
(color[d] || OTHER) + " 180deg," +
|
||||
(color[c] || OTHER) + " 180deg," +
|
||||
(color[c] || OTHER) + " 270deg," +
|
||||
(color[d] || OTHER) + " 270deg," +
|
||||
(color[d] || OTHER) + " 360deg)";
|
||||
(color[a] || OTHER) + " 270deg," +
|
||||
(color[a] || OTHER) + " 360deg)";
|
||||
return style;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user