HSL Selection

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

HSL Selection

跳至解决方案
4,759 次查看
Jeannot
Contributor II

I'm unable to change the saturation and lightness of the HSL values in widgets. The hue value can be changed fine though. Is this a bug, or something else?  

Thanks in advance! 

 

Gui Guider Version: 1.2.1-GA // Windows 10 Home 19043.928

 

0 项奖励
回复
1 解答
4,737 次查看
zhenhualuo
NXP Employee
NXP Employee

Hi, 

HSL is not supported by LVGL, LVGL supports HSV setting, GUI Guider doesn't support HSV setting currently, we will add the support in releases of 2022. 

lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v)

Convert a HSV color to RGB

Parameters

h -- hue [0..359]
s -- saturation [0..100]
v -- value [0..100]
Returns the given RGB color in RGB (with LV_COLOR_DEPTH depth)

 

Best Regards, 

Zhenhua 

在原帖中查看解决方案

2 回复数
4,738 次查看
zhenhualuo
NXP Employee
NXP Employee

Hi, 

HSL is not supported by LVGL, LVGL supports HSV setting, GUI Guider doesn't support HSV setting currently, we will add the support in releases of 2022. 

lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v)

Convert a HSV color to RGB

Parameters

h -- hue [0..359]
s -- saturation [0..100]
v -- value [0..100]
Returns the given RGB color in RGB (with LV_COLOR_DEPTH depth)

 

Best Regards, 

Zhenhua 

4,704 次查看
Jeannot
Contributor II

Thank you for the help!

0 项奖励
回复