Number::RGB

Manipulate RGB Tuples
Download

Number::RGB Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Casey West
  • Publisher web site:
  • http://search.cpan.org/~cwest/

Number::RGB Tags


Number::RGB Description

Manipulate RGB Tuples This module creates RGB tuple objects and overloads their operators to make RGB math easier. An attribute is also exported to the caller to make construction shorter.SYNOPSIS use Number::RGB; my $white :RGB(255); my $black :RGB(0); my $gray = $black + (($white - $black) / 2); my @rgb = @{ $white->rgb }; my $hex = $black->hex; my $blue = Number::RGB->new(rgb => ); my $green = Number::RGB->new(hex => '#00FF00'); my $red :RGB(255,0,0); my $purple = $blue + $green; my $yellow = $red + $green; Requirements: · Perl


Number::RGB Related Software