1Graph::Easy::AttributesU(s3e)r Contributed Perl DocumentaGtriaopnh::Easy::Attributes(3)
2
3
4
6 Graph::Easy::Attributes - Define and check attributes for Graph::Easy
7
9 use Graph::Easy;
10
11 my $graph = Graph::Easy->new();
12
13 my $hexred = Graph::Easy->color_as_hex( 'red' );
14 my ($name, $value) = $graph->valid_attribute( 'color', 'red', 'graph' );
15 print "$name => $value\n" if !ref($value);
16
18 "Graph::Easy::Attributes" contains the definitions of valid attribute
19 names and values for Graph::Easy. It is used by both the parser and by
20 Graph::Easy to check attributes for being valid and well-formed.
21
22 There should be no need to use this module directly.
23
24 For a complete list of attributes and their possible values, please see
25 Graph::Easy::Manual.
26
28 Exports nothing.
29
31 Graph::Easy.
32
34 Copyright (C) 2004 - 2008 by Tels <http://bloodgate.com>
35
36 See the LICENSE file for information.
37
38
39
40perl v5.32.1 2021-01-27 Graph::Easy::Attributes(3)