aboutsummaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorMichael McVady <michaelm@telnyx.com>2026-05-11 17:42:15 -0500
committerMichael McVady <michaelm@telnyx.com>2026-05-11 17:42:15 -0500
commit3920c52ead6c17622fa826a5d451833101f4ad89 (patch)
tree279e9d9020aa9c929b2795b997ce4c2c999d90f5 /app.py
parent9c36c275dc445ef224904fa429d0136e3c3fce16 (diff)
fix color pickerHEADmaster
Diffstat (limited to 'app.py')
-rw-r--r--app.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app.py b/app.py
index a37bed6..5d6043a 100644
--- a/app.py
+++ b/app.py
@@ -42,7 +42,7 @@ TEMPLATE_STR = """<!DOCTYPE html>
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;