--- John Owens <[EMAIL PROTECTED]> wrote:
> Can I get an example of a palette that's not a built-in palette? It's the
> palette.select call that I think I really need to support here.
Sourceforge is appearing to take many many hours for emails to show
up, so I'm replying here without having seen more than the 6 messages
already on the sf.net mailing list page. Sorry if I've missed anything.
Here's the support I want to add. palette.select() appears to be the right
interface for it, I think, so that's specifically what I'm hoping to see sample
code for.
The folks at colorbrewer.org have spent a lot of time finding good palettes
for drawing. The interface is palette[name][number], where 'name' is a
specific palette ("accent", "blues", etc.) and 'number' is the number of
different items that need to be drawn. That's exactly what select() does.
I'd like to create a data structure that looks something like:
palette['accent'][3] = [ rgb(RR, GG, BB), rgb(RR, GG, BB), rgb(RR, GG, BB) ]
palette['accent'][4] = [ rgb(RR, GG, BB), rgb(RR, GG, BB), rgb(RR, GG, BB),
rgb(RR, GG, BB) ]
...
where I fill in all the RR, GG, and BBs. But I don't know how to use the
select call (or another call) that will let the palette automatically choose
the right 'number' based on the number of drawn items and then pick
the right colors from that.
I'm happy to convert the colorbrewer schemes so they work and then
contribute them to the codebase if I can get some help on this.
JDO
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user