color wheel direction

This commit is contained in:
Anthony Lieuallen 2022-11-20 17:01:07 -05:00
parent 9932f1bbea
commit c21e95d9c4
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ Object.entries(colors).forEach(([name, color], _) => {
// Based on https://stackoverflow.com/a/54522007/91238 .
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 y = Math.sin(colorAngle) * colorRadius;