Searched refs:rgb_max (Results 1 – 1 of 1) sorted by relevance
31 uint32_t rgb_max = v * 2.55f; in led_strip_hsv2rgb() local32 uint32_t rgb_min = rgb_max * (100 - s) / 100.0f; in led_strip_hsv2rgb()38 uint32_t rgb_adj = (rgb_max - rgb_min) * diff / 60; in led_strip_hsv2rgb()42 *r = rgb_max; in led_strip_hsv2rgb()47 *r = rgb_max - rgb_adj; in led_strip_hsv2rgb()48 *g = rgb_max; in led_strip_hsv2rgb()53 *g = rgb_max; in led_strip_hsv2rgb()58 *g = rgb_max - rgb_adj; in led_strip_hsv2rgb()59 *b = rgb_max; in led_strip_hsv2rgb()64 *b = rgb_max; in led_strip_hsv2rgb()[all …]