Colors for Rows
D'Arcy J.M. Cain
darcy at druid.net
Tue Apr 29 15:39:30 EDT 2008
On Tue, 29 Apr 2008 15:03:23 -0400
"J. Cliff Dyer" <jcd at sdf.lonestar.org> wrote:
> Or, if you aren't sure how many colors you'll be using, try the more
> robust:
>
> bg[z % len(bg)]
Good point although I would have calculated the length once at the
start rather than each time through the loop.
--
D'Arcy J.M. Cain <darcy at druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the Python-list
mailing list