Convert::Color::LUV - a color value in the CIE 1976 (L*, u*, v*) color space
use Convert::Color::LUV; my $red = Convert::Color::LUV->new(53.23711, 175.00982, 37.76509); my $green = Convert::Color::LUV->new('87.73552,-83.06712,107.41811'); use Convert::Color; my $blue = Convert::Color->new('luv:32.30087,-9.40241,-130.35109'); say $red->L; # 53.23711 say $red->u; # 175.00982 say $red->v; # 37.76509 say join ',', $blue->luv; # 32.30087,-9.40241,-130.35109
Objects of this class represent colors in the CIE 1976 (L*, u*, v*) color space.
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
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.