Skip to content

Commit d4dd069

Browse files
committed
add a test of rainbows
1 parent 1cea871 commit d4dd069

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

tests/circuitpython/rainbows.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import rainbowio
2+
3+
for i in range(0, 256, 15):
4+
print("{:3} {:06x} {:06x}".format(i, rainbowio.colorwheel(i), rainbowio.colorwheel(float(i))))
5+
for i in range(256, 1024, 128):
6+
print("{:3} {:06x}".format(i, rainbowio.colorwheel(i)))

tests/circuitpython/rainbows.py.exp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
0 ff0000 ff0000
2+
15 d22d00 d22d00
3+
30 a55a00 a55a00
4+
45 788700 788700
5+
60 4bb400 4bb400
6+
75 1ee100 1ee100
7+
90 00f00f 00f00f
8+
105 00c33c 00c33c
9+
120 009669 009669
10+
135 006996 006996
11+
150 003cc3 003cc3
12+
165 000ff0 000ff0
13+
180 1e00e1 1e00e1
14+
195 4b00b4 4b00b4
15+
210 780087 780087
16+
225 a5005a a5005a
17+
240 d2002d d2002d
18+
255 ff0000 ff0000
19+
256 ff0000
20+
384 007e81
21+
512 ff0000
22+
640 007e81
23+
768 ff0000
24+
896 007e81

0 commit comments

Comments
 (0)