The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Convert::Color::LUV - a color value in the CIE 1976 (L*, u*, v*) color space

SYNOPSIS

  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

DESCRIPTION

Objects of this class represent colors in the CIE 1976 (L*, u*, v*) color space.

Methods:

Convert::Color::LUV->new($l, $u, $v)

Construct a color from its components.

Convert::Color::LUV->new("$l,$u,$v")

Construct a color from a string. The string should contain the three components, separated by commas.

$luv->L
$luv->u
$luv->v

Accessors for the three components of the color.

$luv->luv

Returns the three components as a list.

SEE ALSO

Convert::Color

AUTHOR

Marius Gavrilescu, <marius@ieval.ro>

COPYRIGHT AND LICENSE

Copyright (C) 2015 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.