Use a C++ implementation of hsluv
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user