DOKK / manpages / debian 10 / libcolor-library-perl / Color::Library::Dictionary.3pm.en
Color::Library::Dictionary(3pm) User Contributed Perl Documentation Color::Library::Dictionary(3pm)

Color::Library::Dictionary - Color dictionary for Color::Library

@colors = $dictionary->colors
Returns the list of Color::Library::Color objects contained by $dictionary

Will 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 $dictionary

Will return a list in list context, and a list reference in scalar context

$color = $dictionary->color( <query> )
Returns a Color::Library::Color object of $dictionary found via <query>

A query can be any of the following:

A color name is like "blue" or "bleached-almond"
A color title is like "Dark Green-Teal"
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.

    svg
    x11
    vaccc
    nbs-iscc-f
    
$title = $dictionary->title
Returns the title of $dictionary, e.g.

    SVG
    X11
    VACCC
    NBS/ISCC F
    
$subtitle = $dictionary->subtitle
Returns the subtitle of $dictionary, if any
$description = $dictionary->description
Returns the description of $dictionary, if any
2017-03-02 perl v5.24.1