Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 1 of 1) sorted by relevance

/lvgl-2.7.6/src/lv_misc/
Dlv_color.c228 int32_t delta = rgbMax - rgbMin; in lv_color_rgb_to_hsv() local
229 if(LV_MATH_ABS(delta) < 3) { in lv_color_rgb_to_hsv()
236 hsv.s = 100 * delta / rgbMax; in lv_color_rgb_to_hsv()
245 h = (((g - b) << 10) / delta) + (g < b ? (6 << 10) : 0); // between yellow & magenta in lv_color_rgb_to_hsv()
247 h = (((b - r) << 10) / delta) + (2 << 10); // between cyan & yellow in lv_color_rgb_to_hsv()
249 h = (((r - g) << 10) / delta) + (4 << 10); // between magenta & cyan in lv_color_rgb_to_hsv()