Use a C++ implementation of hsluv

This commit is contained in:
miruka
2019-12-27 08:19:56 -04:00
parent 77f851c319
commit e7caa0b8ef
8 changed files with 22 additions and 16 deletions

View File

@@ -91,9 +91,7 @@ QtObject {
function hsluv(hue, saturation, lightness, alpha=1.0) {
hue = numberWrapAt(hue, 360)
let rgb = py.callSync("hsluv", [hue, saturation, lightness])
return Qt.rgba(rgb[0], rgb[1], rgb[2], alpha)
return CppUtils.hsluv(hue, saturation, lightness, alpha)
}