Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # rgb_cycle.py
- def rgb_cycle(value):
- if value % 2:
- return max(0, value-2)
- else:
- return min(255, value+2)
- v = 0
- while 1:
- print(v)
- v = rgb_cycle(v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement