1Color::Library::DictionUasreyr(3C)ontributed Perl DocumeCnotlaotri:o:nLibrary::Dictionary(3)
2
3
4

NAME

6       Color::Library::Dictionary - Color dictionary for Color::Library
7

METHODS

9       @colors = $dictionary->colors
10           Returns the list of Color::Library::Color objects contained by
11           $dictionary
12
13           Will return a list in list context, and a list reference in scalar
14           context
15
16       @names = $dictionary->names
17       @names = $dictionary->color_names
18           Returns the list of color names contained by $dictionary
19
20           Will return a list in list context, and a list reference in scalar
21           context
22
23       $color = $dictionary->color( <query> )
24           Returns a Color::Library::Color object of $dictionary found via
25           <query>
26
27           A query can be any of the following:
28
29           color name
30               A color name is like "blue" or "bleached-almond"
31
32           color title
33               A color title is like "Dark Green-Teal"
34
35           color id
36               A color id is in the form of <dictionary_id>:<color_name>, for
37               example: "x11:azure1"
38
39       $id = $dictionary->id
40       $name = $dictionary->name
41           Returns the id (name) of $dictionary, e.g.
42
43               svg
44               x11
45               vaccc
46               nbs-iscc-f
47
48       $title = $dictionary->title
49           Returns the title of $dictionary, e.g.
50
51               SVG
52               X11
53               VACCC
54               NBS/ISCC F
55
56       $subtitle = $dictionary->subtitle
57           Returns the subtitle of $dictionary, if any
58
59       $description = $dictionary->description
60           Returns the description of $dictionary, if any
61
62
63
64perl v5.32.1                      2021-01-27     Color::Library::Dictionary(3)
Impressum