Color::Object

Color::Object is a OO-Color Module.
Download

Color::Object Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Alfred Reibenschuh
  • Publisher web site:
  • http://search.cpan.org/~areibens/Crypt-KDF-0.02/lib/Crypt/KDF/KDF2Generator.pm

Color::Object Tags


Color::Object Description

Color::Object is a OO-Color Module. Color::Object is a OO-Color Module.A module for manipulation Colors within RGB, HSV and HSL color-spaces for usage within PDF-Documents especially with the Text::PDF::API modules.SYNOPSIS use Color::Object; $cl = Color::Object->new; $cl = Color::Object->newRGB($r,$g,$b); $cl = Color::Object->newHSV($h,$s,$v); $cl = Color::Object->newHSL($h,$s,$l); $cl->setRGB($r,$g,$b); $cl->addBrightness($br); ($h,$s,$l) = $cl->asHSL;METHODSColor::Object->new Color::Object->newRGB $r, $g, $b Color::Object->newHSV $h, $s, $v Color::Object->newHSL $h, $s, $l Color::Object->newGrey $grey ( $r, $g, $b ) = $cl->asRGBReturns $cl's rgb values. Range .( $h, $s, $v ) = $cl->asHSVReturns $cl's hsv values. Ranges h , s/v .( $h, $s, $l ) = $cl->asHSLReturns $cl's hsl values. Ranges h , s/l .$grey = $cl->asGrey $grey = $cl->asGrey2Returns $cl's grey value. Range . Functions 2 returns the geometric mean of the corresponding RGB values.( $c, $m, $y )= $cl->asCMYReturns $cl's cmy values. Range .( $c, $m, $y, $k )= $cl->asCMYK ( $c, $m, $y, $k )= $cl->asCMYK2 ( $c, $m, $y, $k )= $cl->asCMYK3Returns $cl's cmyk values. Range . Function 2 returns a 25% lighter color-equivalent. Function 3 returns a 25% lighter color-equivalent.$hex = $cl->asHexReturns $cl's rgb values as 6 hex-digits.$cl->setRGB $r, $g, $bSets the $cl's rgb values. Valid range .$cl->setHSV $h, $s, $vSets the $cl's hsv values. Valid ranges: h , s/v .$cl->setHSL $h, $s, $lSets the $cl's hsl values. Valid ranges: h , s/l .$cl->setGrey $greySets the $cl's grey value. Valid range .$cl->setHex $hexSets the $cl's rgb values using 6 hex-nibbles.$cl->addSaturation $saturationAdds to the $cl's saturation in the HSV model. Valid range .$cl->setSaturation $saturationSets the $cl's saturation in the HSV model. Valid range .$cl->rotHue $degreesRotates the $cl's hue in the HSV/L model. Valid range .$cl->setHue $hueSets the $cl's hue in the HSV/L model. Valid range .$cl->addBrightness $brightnessAdds to the $cl's brightness in the HSV model. Valid range .$cl->setBrightness $brightnessSets the $cl's brightness in the HSV model. Valid range .$cl->addLightness $lightnessAdds to the $cl's lightness in the HSL model. Valid range .$cl->setLightness $lightnessSets the $cl's lightness in the HSL model. Valid range . Requirements: · Perl


Color::Object Related Software