The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.