Home
last modified time | relevance | path

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

/lvgl-3.4.0/docs/overview/
Dcolor.md86 // Mix two colors with a given ratio 0: full c2, 255: full c1, 128: half c1 and half c2
87 lv_color_t c = lv_color_mix(c1, c2, ratio);
102 You can also use the `LV_OPA_*` defines in `lv_color_mix()` as a mixing *ratio*.
/lvgl-3.4.0/src/extra/widgets/meter/
Dlv_meter.c465 lv_opa_t ratio; in draw_ticks_and_labels() local
467ratio = lv_map(value_of_line, indic->start_value, indic->end_value, LV_OPA_TRANSP, LV_OPA_COVER); in draw_ticks_and_labels()
470ratio = lv_map(value_of_line, scale->min, scale->max, LV_OPA_TRANSP, LV_OPA_COVER); in draw_ticks_and_labels()
472 …color_mix(indic->type_data.scale_lines.color_end, indic->type_data.scale_lines.color_start, ratio); in draw_ticks_and_labels()
/lvgl-3.4.0/src/misc/
Dlv_color.h567 lv_opa_t ratio = (uint16_t)((uint16_t)fg_opa * 255) / res_opa_saved; in lv_color_mix_with_alpha() local
568 res_color_saved = lv_color_mix(fg_color, bg_color, ratio); in lv_color_mix_with_alpha()
/lvgl-3.4.0/src/widgets/
Dlv_canvas.c236 lv_opa_t ratio = (uint16_t)((uint16_t)dsc.res.opa * 255) / opa_res_2; in lv_canvas_transform() local
239 lv_color_mix(dsc.res.color, bg_color, ratio)); in lv_canvas_transform()