[RFC] New module: Graphics::ColorUtils



I am looking for comments on a new module I propose
for inclusion in CPAN:
Graphics::ColorUtils

This module will provide helper functions to manage
color. It will be useful when generating graphics using
modules such as GD, Tk, or when generating HTML/CSS.

The module provides three sets of features:
- Color space conversion (RGB to HSV, etc)
- Color gradients (useful for data visualization)
- Color lookup by name

The main rationale for creating a new module was
the need for a module with easy-to-use color conversions
(easier than Graphics::ColorObject). Also, color gradients
are often useful for data visualization, but are currently not
offered by any Perl module (that I am aware of). Name
lookup has been thrown in for good measure, but I do not
consider it essential (Graphics::ColorNames does something
very similar).

The design objectives were:
- A simple and intuitive API, which has a small enough
footprint that it can be used inline in calls to other
functions.
- Platform independence (do not assume X11)
- Minimal dependencies

The current version of the code and documentation are
available here:
http://www.beyondcode.org/projects/index.html


Related modules and existing work:
- Graphics::ColorObject (and Color::Object) do color space
conversions, but using a very different API, much less
suitable for the intended usage of the proposed module.
- Graphics::ColorNames and Color::Rgb do color-for-name
lookup. (There is real redundancy with ColorNames
and the current module - should it be dropped? However,
there is real benefit in keeping all functionality together.)
- No module offers color gradients (to my knowledge).


Any thoughts/suggestions?

.