NAME
Color::Library::Dictionary - Color dictionary for Color::Library
METHODS
- @colors = $dictionary->colors
-
Returns the list of Color::Library::Color objects contained by
$dictionaryWill return a list in list context, and a list reference in scalar context
- @names = $dictionary->names
- @names = $dictionary->color_names
-
Returns the list of color names contained by
$dictionaryWill return a list in list context, and a list reference in scalar context
- $color = $dictionary->color( <query> )
-
Returns a Color::Library::Color object of
$dictionaryfound via <query>A query can be any of the following:
- color name
-
A color name is like
"blue"or"bleached-almond"
- color title
-
A color title is like
"Dark Green-Teal"
- color id
-
A color id is in the form of <dictionary_id>:<color_name>, for example:
"x11:azure1"
- $id = $dictionary->id
- $name = $dictionary->name
-
Returns the id (name) of
$dictionary, e.g.svgx11vacccnbs-iscc-f
- $title = $dictionary->title
-
Returns the title of
$dictionary, e.g.SVGX11VACCCNBS/ISCC F
- $subtitle = $dictionary->subtitle
-
Returns the subtitle of
$dictionary, if any
- $description = $dictionary->description
-
Returns the description of
$dictionary, if any