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

NAME

6       "Convert::Color::VGA" - named lookup for the basic VGA colors
7

SYNOPSIS

9       Directly:
10
11        use Convert::Color::VGA;
12
13        my $red = Convert::Color::VGA->new( 'red' );
14
15        # Can also use index
16        my $black = Convert::Color::VGA->new( 0 );
17
18       Via Convert::Color:
19
20        use Convert::Color;
21
22        my $cyan = Convert::Color->new( 'vga:cyan' );
23

DESCRIPTION

25       This subclass of Convert::Color::RGB provides predefined colors for the
26       8 basic VGA colors. Their names are
27
28        black
29        red
30        green
31        yellow
32        blue
33        magenta
34        cyan
35        white
36
37       They may be looked up either by name, or by numerical index within this
38       list.
39

CONSTRUCTOR

41   $color = Convert::Color::VGA->new( $name )
42       Returns a new object to represent the named color.
43
44   $color = Convert::Color::VGA->new( $index )
45       Returns a new object to represent the color at the given index.
46

METHODS

48   $index = $color->index
49       The index of the VGA color.
50
51   $name = $color->name
52       The name of the VGA color.
53

SEE ALSO

55       ยท   Convert::Color - color space conversions
56

AUTHOR

58       Paul Evans <leonerd@leonerd.org.uk>
59
60
61
62perl v5.28.0                      2018-07-14            Convert::Color::VGA(3)
Impressum