Sherzod Ruzmetov > Color-Rgb-1.4 > Color::Rgb

Download:
Color-Rgb-1.4.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.4   Source  

NAME ^

Color::Rgb - Simple rgb.txt parsing class

REVISION ^

$Revision: 1.4 $

SYNOPSIS ^

    use Color::Rgb;
    $rgb = new Color::Rgb(rgb_txt=>'/usr/X11R6/lib/X11/rgb.txt');

    @rgb = $rgb->rgb('red');            # returns 255, 0, 0
    $red = $rgb->rgb('red', ',');       # returns the above rgb list as
                                        # comma separated string
    $red_hex=$rgb->hex('red');          # returns 'FF0000'
    $red_hex=$rgb->hex('red', '#');     # returns '#FF0000'

    $my_hex = $rgb->rgb2hex(255,0,0);   # returns 'FF0000'
    $my_rgb = $rgb->hex2rgb('#FF0000'); # returns list of 255,0,0

DESCRIPTION ^

Color::Rgb - simple rgb.txt parsing class.

METHODS ^

CREDITS ^

Following people contributed to this library with their patches and/or bug reports. (list is in chronological order)

COPYRIGHT ^

Color::Rgb is a free software and can be modified and distributed under the same terms as Perl itself.

AUTHOR ^

Color::Rgb is maintained by Sherzod B. Ruzmetov <sherzodr@cpan.org>.

SEE ALSO ^

Color::Object

syntax highlighting: