When calling setValueFrom with any color having the hue set to 0, the hue value is not updated.
For example, here I selected a green color through the picker, then called setValueFrom with the color #E60303 which has a hue of 0.
You can see that the hue was not updated, but the value is the good one.
In setHueColor we have this:
private setHueColor(color: Color) {
if (this.hueValue && color.getHsva().hue > 0 || !this.hueValue) {
this.hueValue = new Color().setHsva(color.getHsva().hue);
}
}
I think that the color.getHsva().hue > 0 is failing in that case and should be color.getHsva().hue >= 0.
Hi @pIvan,
When calling setValueFrom with any color having the hue set to 0, the hue value is not updated. For example, here I selected a green color through the picker, then called setValueFrom with the color #E60303 which has a hue of 0. You can see that the hue was not updated, but the value is the good one.
In setHueColor we have this:
I think that the
color.getHsva().hue > 0
is failing in that case and should becolor.getHsva().hue >= 0
.What do you think ?
Thanks, Pierre