From c21e95d9c4d1b8006e2053c96bdc7c188118f138 Mon Sep 17 00:00:00 2001 From: Anthony Lieuallen Date: Sun, 20 Nov 2022 17:01:07 -0500 Subject: [PATCH] color wheel direction --- colors.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colors.html b/colors.html index 3bd7c5d..6896359 100644 --- a/colors.html +++ b/colors.html @@ -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;