timedata-org / old-timedata

Time arts data - high-performance color processing in C++ and Python.
7 stars 3 forks source link

Better ColorList.spread #47

Closed rec closed 8 years ago

rec commented 8 years ago

With an arbitrary number of parameters.

ColorList.spread('red', 3, 'green', 'yellow', 4, 'white')

If the next item is a color, you jump right to it. If it's an integer, then you spread through that many steps.