HSL Selection

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HSL Selection

Jump to solution
2,231 Views
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 Kudos
1 Solution
2,209 Views
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 

View solution in original post

2 Replies
2,210 Views
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,176 Views
Jeannot
Contributor II

Thank you for the help!

0 Kudos