1Convert::Color::X11(3)User Contributed Perl DocumentationConvert::Color::X11(3)
2
3
4

NAME

6       "Convert::Color::X11" - named lookup of colors from X11's rgb.txt
7

SYNOPSIS

9       Directly:
10
11        use Convert::Color::X11;
12
13        my $red = Convert::Color::X11->new( 'red' );
14
15       Via Convert::Color:
16
17        use Convert::Color;
18
19        my $cyan = Convert::Color->new( 'x11:cyan' );
20

DESCRIPTION

22       This subclass of Convert::Color::RGB8 provides lookup of color names
23       provided by X11's rgb.txt file.
24

CLASS METHODS

26   @colors = Convert::Color::X11->colors
27       Returns a list of the defined color names, in the order they were found
28       in the rgb.txt file.
29
30   $num_colors = Convert::Color::X11->colors
31       When called in scalar context, this method returns the count of the
32       number of defined colors.
33

CONSTRUCTOR

35   $color = Convert::Color::X11->new( $name )
36       Returns a new object to represent the named color.
37

METHODS

39   $name = $color->name
40       The name of the VGA color.
41

SEE ALSO

43       ยท   Convert::Color - color space conversions
44

AUTHOR

46       Paul Evans <leonerd@leonerd.org.uk>
47
48
49
50perl v5.28.0                      2018-07-14            Convert::Color::X11(3)
Impressum