From 3920c52ead6c17622fa826a5d451833101f4ad89 Mon Sep 17 00:00:00 2001 From: Michael McVady Date: Mon, 11 May 2026 17:42:15 -0500 Subject: fix color picker --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index a37bed6..5d6043a 100644 --- a/app.py +++ b/app.py @@ -42,7 +42,7 @@ TEMPLATE_STR = """ if (x * x + y * y > radius * radius) return; - var h = ((Math.atan2(y, x) * 180 / Math.PI) + 360) % 360; + var h = ((Math.atan2(y, x) * 180 / Math.PI) + 90 + 360) % 360; var s = Math.min(Math.sqrt(x * x + y * y) / radius, 1); var c = s, X = c * (1 - Math.abs((h / 60) % 2 - 1)), m = 0.5 - c / 2; var R, G, B; -- cgit v1.2.3