aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;