Godtone (talk | contribs)
Godtone (talk | contribs)
Line 1,176: Line 1,176:
# 29 colours is a fairly ideal rainbow; we use it for indexing into, so as to derive a 17-colour palette.
# 29 colours is a fairly ideal rainbow; we use it for indexing into, so as to derive a 17-colour palette.
# note that i chose the +0.4 experimentally based on the colour palette that seemed most distinct to me.
# note that i chose the +0.4 experimentally based on the colour palette that seemed most distinct to me.
def cols(cs, n, offset=0):
return [ cs[round( k/n*len(cs) + offset/len(cs) )%len(cs)] for k in range(n) ]
rb17v2 = [ rb29[round( k/17*29+0.4 )%29] for k in range(17) ]
rb17v2 = [ rb29[round( k/17*29+0.4 )%29] for k in range(17) ]
rb19 = [ rb29[round( k/19*29+0.4 )%29] for k in range(19) ]
rb19 = [ rb29[round( k/19*29+0.4 )%29] for k in range(19) ]