FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
circuitpython/tests/circuitpython/rainbows.py at main · ams1/circuitpython · GitHub
ams1
circuitpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
circuitpython
/
tests
/
circuitpython
/
rainbows.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
6 lines (5 loc) · 237 Bytes
Breadcrumbs
circuitpython
/
tests
/
circuitpython
/
rainbows.py
Copy path
File metadata and controls
6 lines (5 loc) · 237 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
import
rainbowio
for
i
in
range
(
0
,
256
,
15
):
print
(
"{:3} {:06x} {:06x}"
.
format
(
i
,
rainbowio
.
colorwheel
(
i
),
rainbowio
.
colorwheel
(
float
(
i
))))
for
i
in
range
(
256
,
1024
,
128
):
print
(
"{:3} {:06x}"
.
format
(
i
,
rainbowio
.
colorwheel
(
i
)))
Back
|
FazBrowse Home
|
New Git URL