summaryrefslogtreecommitdiff
path: root/color_test.py
blob: 288707a8f8e0f3b69685e70d4413caf0c2eba06c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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))