HSL Selection

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
4,281件の閲覧回数
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,259件の閲覧回数
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,260件の閲覧回数
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,226件の閲覧回数
Jeannot
Contributor II

Thank you for the help!

0 件の賞賛
返信