Skip Menu |
 

This queue is for tickets about the Graphics-ColorObject CPAN distribution.

Report information
The Basics
Id: 76958
Status: new
Priority: 0/
Queue: Graphics-ColorObject

People
Owner: Nobody in particular
Requestors: lilstevey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.5.0
Fixed in: (no value)



Subject: as_RGB presents interesting interface and returns negative values
Download (untitled) / with headers
text/plain 665b
my $colour = Graphics::ColorObject->new_Lab([$l, $a, $b] ); my ( $red,$green,$blue ) = @{$colour -> as_RGB()}; $red = round($red*255); $blue = round($blue*255); $green = round($green*255); if ( $red < 0 ) { $red = $red *-1 }; if ( $green < 0 ) { $green = $green *-1 }; if ( $blue < 0 ) { $blue = $blue *-1 }; push @palette,[ $red, $green, $blue ]; Core problem - RGB problems are returned as negative in some instances. Additionally, the warns mentioned elsewhere and it would be nice to have a asRGB255. Lastly - struggling to figure out why colour elements returned need dereferencing via an array.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.