The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Convert::Color::IRC - named lookup for the basic IRC colors

SYNOPSIS

Directly:

 use Convert::Color::IRC;

 my $red = Convert::Color::IRC->new( 'red' );

 # Can also use index
 my $black = Convert::Color::IRC->new( 1 );

Via Convert::Color:

 use Convert::Color;

 my $cyan = Convert::Color->new( 'irc:cyan' );

DESCRIPTION

This subclass of Convert::Color::RG8B provides predefined colors for the 16 basic IRC colors. Their names are

 white
 black
 blue
 green
 red
 brown
 purple
 orange
 yellow
 light green
 cyan
 light cyan
 light blue
 pink
 gray
 light gray

They may be looked up either by name, or by numerical index within this list.

CONSTRUCTOR

$color = Convert::Color::IRC->new( $name )

Returns a new object to represent the named color.

$color = Convert::Color::IRC->new( $index )

Returns a new object to represent the color at the given index.

SEE ALSO

AUTHOR

Jason Felds <wolfman.ncsu2000@gmail.com>

ACKNOWLEDGMENTS

Paul Evans <leonerd@leonerd.org.uk> for setting up the Convert::Color interface.