[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Red-to-violet color palette

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)])

How do to get the red-to-violet color palette?

Ricardo Franco Andrade             @ricardokrieg

( Game | Desktop | Web ) Developer

email: ricardo.krieg@xxxxxxxxx
contact: +55 (86) 9958 9725
             +55 (86) 9436 0830 
twitter: twitter.com/ricardokrieg
facebooK: https://www.facebook.com/krieg.ricardo
github: https://github.com/ricardokrieg