summaryrefslogtreecommitdiff
path: root/color_test.py
diff options
context:
space:
mode:
authorBrett Weiland <brett_weiland@bpcspace.com>2020-11-01 18:47:04 -0600
committerBrett Weiland <brett_weiland@bpcspace.com>2020-11-01 18:47:04 -0600
commitcfd882717f1e13c294e2d481a46ca8982c97f05c (patch)
tree5414e3c24d654d8ca38f21bda73ac4bad7582b75 /color_test.py
parent680da9662e0f0185aad05293739122c23d6c9bca (diff)
new file: color_test.py
modified: post_bot.py new file: test_page
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))
+