Convert::Color::HPLuv - a color value in the HPLuv color space
use Convert::Color::HPLuv; my $reddish = Convert::Color::HPLuv->new(12.17705, 100, 53.23712); my $greenish = Convert::Color::HPLuv->new('127.71501,100,87.73552'); use Convert::Color; my $bluish = Convert::Color->new('hpluv:265.87432,100,32.30087'); say $reddish->H; # 12.17705 say $reddish->S; # 100 say $reddish->L; # 53.23712 say join ',', $bluish->hsl; # 265.87432,100,32.30087
Objects of this class represent colors in the HPLuv color space, revision 4.
Methods:
Construct a color from its components.
Construct a color from a string. The string should contain the three components, separated by commas.
Accessors for the three components of the color.
Returns the three components as a list.
Convert::Color, http://www.hsluv.org/
Marius Gavrilescu, <marius@ieval.ro>
Copyright (C) 2015-2017 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.20.2 or, at your option, any later version of Perl 5 you may have available.
To install Convert::Color::HSLuv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Convert::Color::HSLuv
CPAN shell
perl -MCPAN -e shell install Convert::Color::HSLuv
For more information on module installation, please visit the detailed CPAN module installation guide.