summaryrefslogtreecommitdiff
path: root/color_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'color_test.py')
-rwxr-xr-xcolor_test.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/color_test.py b/color_test.py
new file mode 100755
index 0000000..288707a
--- /dev/null
+++ b/color_test.py
@@ -0,0 +1,15 @@
+#!/usr/bin/env python3
+
+color = 0x0000ff
+def rainbow_gen(color):
+ if (color & 0x0000ff == 0xff) and (color ^ 0xff0000 == 0xff) and (color ^ 0x00ff00 < 0xff):
+ color += 0x100
+ color -= 1
+ print("test")
+
+ return color
+
+while True:
+ color = rainbow_gen(color)
+ print(hex(color))
+