Bonsoir Timothée, On 24/08/11, Timothée Poisot wrote: > I'm trying to do something with PyX which should be fairly simple, > but I can't get it to work. I'd like to generate an array with color > picked along a gradient (e.g. color.gradient.Hue). The number of > colors to pick can be fairly large (anywhere between 1 to ~ 100), so > hard-coding an array is not a possibility.
I am not absolutely sure to understand your question, but my answer for the moment would be colors = [color.gradient.Hue.select(i, N) for i in range(N)] Cordialement, Michael ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
