-
-
28 Apr 2022 17:08:46 UTC
- Distribution: Convert-Color
- Module version: 0.12
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (526 / 19 / 9)
- Kwalitee
Bus factor: 1- 83.55% Coverage
- License: perl_5
- Perl: v5.14.0
- Activity
24 month- Tools
- Download (34.59KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- List::UtilsBy
- Module::Pluggable
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Convert::Color::VGA
- named lookup for the basic VGA colorsSYNOPSIS
Directly:
use Convert::Color::VGA; my $red = Convert::Color::VGA->new( 'red' ); # Can also use index my $black = Convert::Color::VGA->new( 0 );
Via Convert::Color:
use Convert::Color; my $cyan = Convert::Color->new( 'vga:cyan' );
DESCRIPTION
This subclass of Convert::Color::RGB provides predefined colors for the 8 basic VGA colors. Their names are
black red green yellow blue magenta cyan white
They may be looked up either by name, or by numerical index within this list.
CONSTRUCTOR
new
$color = Convert::Color::VGA->new( $name )
Returns a new object to represent the named color.
$color = Convert::Color::VGA->new( $index )
Returns a new object to represent the color at the given index.
METHODS
index
$index = $color->index
The index of the VGA color.
name
$name = $color->name
The name of the VGA color.
SEE ALSO
Convert::Color - color space conversions
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
Module Install Instructions
To install Convert::Color, copy and paste the appropriate command in to your terminal.
cpanm Convert::Color
perl -MCPAN -e shell install Convert::Color
For more information on module installation, please visit the detailed CPAN module installation guide.