color wheel direction
This commit is contained in:
parent
9932f1bbea
commit
c21e95d9c4
|
@ -190,7 +190,7 @@ Object.entries(colors).forEach(([name, color], _) => {
|
||||||
|
|
||||||
// Based on https://stackoverflow.com/a/54522007/91238 .
|
// Based on https://stackoverflow.com/a/54522007/91238 .
|
||||||
let colorRadius = s * radius;
|
let colorRadius = s * radius;
|
||||||
let colorAngle = (1-h)/360 * 2 * Math.PI;
|
let colorAngle = h/360 * 2 * Math.PI;
|
||||||
|
|
||||||
let x = Math.cos(colorAngle) * colorRadius;
|
let x = Math.cos(colorAngle) * colorRadius;
|
||||||
let y = Math.sin(colorAngle) * colorRadius;
|
let y = Math.sin(colorAngle) * colorRadius;
|
||||||
|
|
Loading…
Reference in New Issue