You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for this library, i've tried a lot of color extraction php libs and this one is by far the best.
But there's a problem when converting a color to HSL the hue value seems wrong.
$color = new\marijnvdwerf\palette\Color\RGBColor(0.8, 0.5, 0.2)
(string) $color
// => "rgb(204, 128, 51)"
// this is right
(string) $color->asHSLColor()
// => "hsl(0.000000, 60.000000%, 50.000000%)"
// this is wrong
(string) $color->asHSLColor()->asRGBColor()
// => "rgb(204, 51, 51)"
// this is different from the color we entered in the constructor
Best regards,
The text was updated successfully, but these errors were encountered:
Hello !
thanks for this library, i've tried a lot of color extraction php libs and this one is by far the best.
But there's a problem when converting a color to HSL the hue value seems wrong.
Best regards,
The text was updated successfully, but these errors were encountered: