17 Nov 2014 16:12:01 UTC
- Distribution: Convert-Color-Library
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (811 / 0 / 0)
- KwaliteeBus factor: 1
- 94.51% Coverage
- License: perl_5
- Download (12.54KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- SEE ALSO
Convert::Color::Library- named lookup of colors from
use Convert::Color::Library; my $red = Convert::Color::Library->new( 'red' ); # Only use the SVG dictionary my $brown = Convert::Color::Library->new( 'svg/brown' ); # Use either HTML or SVG dictionary my $pink = Convert::Color::Library->new( 'html,svg/pink' );
use Convert::Color; my $cyan = Convert::Color->new( 'lib:cyan' ); my $darkcyan = Convert::Color->new( 'lib:windows/darkcyan' );
This subclass of Convert::Color::RGB8 provides lookup of color names using Robert Krimen's Color::Library module. It therefore provides convenient access to named colours in many dictionaries, such as SVG, X11 and HTML.
Returns a new object to represent the named color.
If the name is of the form
dictsis parsed as a comma-separated list of dictionary names to pass to
Returns the name of the color within its dictionary, and the name of the dictionary itself.
Consider an API for getting the list of dictionary names and colour names. That said, it's easy enough to do directly to
Color::Library, so maybe not needed.
Expose other dictionaries (SVG? Windows?) as named spaces, like the HTML one.
Convert::Color - color space conversions
Color::Library - An easy-to-use and comprehensive named-color library
Convert::Color::HTML - color conversion using
Paul Evans <email@example.com>
Module Install Instructions
To install Convert::Color::Library, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Convert::Color::Library
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|