Graphics::ColorObject 0.5.0
Sponsored Links
Graphics::ColorObject 0.5.0 Ranking & Summary
File size:
0.022 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1180
Date added:
2006-08-05
Publisher:
Alex Izvorski
Graphics::ColorObject 0.5.0 description
Graphics::ColorObject can convert between color spaces.
SYNOPSIS
use Graphics::ColorObject;
# rgb to hsv
$color = Graphics::ColorObject->new_RGB([$r, $g, $b]);
($h, $s, $v) = @{ $color->as_HSV() };
# one rgb space to another (NTSC to PAL)
$color = Graphics::ColorObject->new_RGB([$r, $g, $b], space=>NTSC);
($r, $g, $b) = @{ $color->as_RGB(space=>PAL) };
ABSTRACT
Use this module to convert between all the common color spaces. As a pure Perl module, it is not very fast, and so it you want to convert entire images quickly, this is probably not what you want. The emphasis is on completeness and accurate conversion.
Supported color spaces are: RGB (including sRGB, Apple, Adobe, CIE Rec 601, CIE Rec 709, CIE ITU, and about a dozen other RGB spaces), CMY, CMYK, HSL, HSV, XYZ, xyY, Lab, LCHab, Luv, LCHuv, YPbPr, YCbCr, YUV, YIQ, PhotoYCC.
Conversion between different RGB working spaces, and between different white-points, is fully supported.
For any supported color space XXX, there is one constructor new_XXX that creates a color using data in that color space, and one method as_XXX that returns the current color as expressed in that color space. For example, for RGB there is new_RGB and as_RGB. The color data is always passed as an array reference to a three-element array (four-element in the case of CMYK). Thus, to convert from RGB to HSL, you can use:
$color = Graphics::ColorObject->new_RGB([$r, $g, $b]);
($h, $s, $l) = @{ $color->as_HSL() };
The constructor can always take a hash of optional arguments in addition to the color value, namely the working RGB space and the white point. For example:
$color = Graphics::ColorObject->new_RGB([$r, $g, $b], space=>Adobe, white_point=>D65);
For a list of all supported color spaces, call Graphics::ColorObject->list_colorspaces(). For a list of all RGB working spaces and of all white points that this module supports, call Graphics::ColorObject->list_rgb_spaces() and Graphics::ColorObject->list_white_points().
If not specified, the working RGB space will be sRGB. Many non-RGB conversions also rely on an implicit RGB space, and passing an RGB space as an option (either to the constructor or later) will have an effect on the values.
SYNOPSIS
use Graphics::ColorObject;
# rgb to hsv
$color = Graphics::ColorObject->new_RGB([$r, $g, $b]);
($h, $s, $v) = @{ $color->as_HSV() };
# one rgb space to another (NTSC to PAL)
$color = Graphics::ColorObject->new_RGB([$r, $g, $b], space=>NTSC);
($r, $g, $b) = @{ $color->as_RGB(space=>PAL) };
ABSTRACT
Use this module to convert between all the common color spaces. As a pure Perl module, it is not very fast, and so it you want to convert entire images quickly, this is probably not what you want. The emphasis is on completeness and accurate conversion.
Supported color spaces are: RGB (including sRGB, Apple, Adobe, CIE Rec 601, CIE Rec 709, CIE ITU, and about a dozen other RGB spaces), CMY, CMYK, HSL, HSV, XYZ, xyY, Lab, LCHab, Luv, LCHuv, YPbPr, YCbCr, YUV, YIQ, PhotoYCC.
Conversion between different RGB working spaces, and between different white-points, is fully supported.
For any supported color space XXX, there is one constructor new_XXX that creates a color using data in that color space, and one method as_XXX that returns the current color as expressed in that color space. For example, for RGB there is new_RGB and as_RGB. The color data is always passed as an array reference to a three-element array (four-element in the case of CMYK). Thus, to convert from RGB to HSL, you can use:
$color = Graphics::ColorObject->new_RGB([$r, $g, $b]);
($h, $s, $l) = @{ $color->as_HSL() };
The constructor can always take a hash of optional arguments in addition to the color value, namely the working RGB space and the white point. For example:
$color = Graphics::ColorObject->new_RGB([$r, $g, $b], space=>Adobe, white_point=>D65);
For a list of all supported color spaces, call Graphics::ColorObject->list_colorspaces(). For a list of all RGB working spaces and of all white points that this module supports, call Graphics::ColorObject->list_rgb_spaces() and Graphics::ColorObject->list_white_points().
If not specified, the working RGB space will be sRGB. Many non-RGB conversions also rely on an implicit RGB space, and passing an RGB space as an option (either to the constructor or later) will have an effect on the values.
Graphics::ColorObject 0.5.0 Screenshot
Advertisements
Graphics::ColorObject 0.5.0 Keywords
RGB
ColorObject
ColorObject 0.5.0
XXX
CIE
HSL
Color spaces
Can Convert
color
spaces
space
convert
new
b
Graphics::ColorObject
GraphicsColorObject
Bookmark Graphics::ColorObject 0.5.0
Graphics::ColorObject 0.5.0 Copyright
WareSeeker periodically updates pricing and software information of Graphics::ColorObject 0.5.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Graphics::ColorObject 0.5.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
trading spaces
living spaces
spacesaving
space shuttle
my space
msn spaces
kennedy space center
space needle
international space station
adobergb color spaces
track the space shuttle
cie color spaces
color code personality test
spaces live
color spaces murals
space shuttle flight path
hair color
space coast credit union
Related Software
Graphics::ColorPicker is a Perl module for WYSIWYG web applications that allow selection of HEX color numbers. Free Download
Graphics::ColorUtils Perl module is an easy-to-use color space conversions and more. Free Download
Color::Object is a OO-Color Module. Free Download
Graviton is a old-fashioned two player space shooter. Free Download
PDL::Graphics::LUT is a Perl module that provides access to a number of look-up tables. Free Download
PDL::Graphics::X is a PDL OO access to X windows. Free Download
Loose Cannon is a 3rd Person Action Game. Free Download
GlobMoeSt means Global Motion eStimation. Free Download
Latest Software
Popular Software
Favourite Software