Graphics-ColorNames - Rewriting Graphics::ColorNames

Posted on Sun Apr 3 16:59:21 2005 by rrwo
Rewriting Graphics::ColorNames

I am in the process of rewriting parts of Graphics::ColorNames so that it is much of efficient (memory and speedwise) and flexible.

A (what I call "minor") drawback of how I am rewriting it is that the way color scheme priorities are handled will be different. Hash-based schemes will be merged in the order specified. If nothing is defined for a color, it will then check the coderef-based schemes. (Before it checked schemes strictly in the order specified.) Since there's only one coderef-based scheme on CPAN (for GrayScale colors), I don't see this as an important issue.

I am also thinking about ways that an object can be queried for meta-information. At the moment I am just adding an "all_schemes" function that lists all available color schemes installed on the machine.

Other ideas/issues: How to handle non-English color naming schemes? Should Graphics::ColourNames (non-US spelling) schemes be handled.

Any other ideas/comments would be appreciated.

Rob

Write a response