2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-09 07:44:19 +00:00

Color.pm: hsv2hex bug fix

git-svn-id: https://svn.fhem.de/fhem/trunk@10755 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme-1968 2016-02-07 18:17:53 +00:00
parent 60153858d3
commit c022061950

View File

@ -257,9 +257,9 @@ hex2hsv($) {
sub
hsv2hex($$$) {
my ( $h, $s, $v ) = @_;
my @rgb = Color::hsv2rgb( $h, $s, $v );
my ($r,$g,$b) = Color::hsv2rgb( $h, $s, $v );
return Color::rgb2hex( $rgb[0], $rgb[1], $rgb[2] );
return Color::rgb2hex( $r*255, $g*255, $b*255 );
}