[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Red-to-violet color palette
According to Wikipedia, violet is (127, 0, 255), so this should work:
tuple((255-(i+1)//2, 0, i) for i in range(256))
On Fri, Jul 13, 2012 at 12:20 PM, Ricardo Franco <ricardo.krieg@xxxxxxxxx>
I would like to know how to build a specifc color palette, its the red-to-violet color palette.
To build the grayscale color palette I use:
grayscale_palette = tuple([(i, i, i) for i in range(256)])