Home
last modified time | relevance | path

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

/lvgl-3.7.0/examples/styles/
Dlv_example_style_2.c18 grad.stops[0].color = lv_palette_lighten(LV_PALETTE_GREY, 1); in lv_example_style_2()
19 grad.stops[1].color = lv_palette_main(LV_PALETTE_BLUE); in lv_example_style_2()
22 grad.stops[0].frac = 128; in lv_example_style_2()
23 grad.stops[1].frac = 192; in lv_example_style_2()
/lvgl-3.7.0/src/extra/widgets/led/
Dlv_led.c182 rect_dsc.bg_grad.stops[0].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event()
183 … lv_color_brightness(rect_dsc.bg_grad.stops[0].color)); in lv_led_event()
184 rect_dsc.bg_grad.stops[1].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event()
185 … lv_color_brightness(rect_dsc.bg_grad.stops[1].color)); in lv_led_event()
192 …rect_dsc.bg_grad.stops[0].color = lv_color_mix(rect_dsc.bg_grad.stops[0].color, lv_color_black()… in lv_led_event()
193 …rect_dsc.bg_grad.stops[1].color = lv_color_mix(rect_dsc.bg_grad.stops[1].color, lv_color_black()… in lv_led_event()
/lvgl-3.7.0/src/draw/
Dlv_draw_rect.c41 dsc->bg_grad.stops[0].color = lv_color_white(); in lv_draw_rect_dsc_init()
42 dsc->bg_grad.stops[1].color = lv_color_black(); in lv_draw_rect_dsc_init()
43 dsc->bg_grad.stops[1].frac = 0xFF; in lv_draw_rect_dsc_init()
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_gradient.c300 int32_t min = (dsc->stops[0].frac * range) >> 8; in lv_gradient_calculate()
302 GRAD_CONV(tmp, dsc->stops[0].color); in lv_gradient_calculate()
306 int32_t max = (dsc->stops[dsc->stops_count - 1].frac * range) >> 8; in lv_gradient_calculate()
308 GRAD_CONV(tmp, dsc->stops[dsc->stops_count - 1].color); in lv_gradient_calculate()
315 int32_t cur = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()
317 one.full = lv_color_to32(dsc->stops[i - 1].color); in lv_gradient_calculate()
318 two.full = lv_color_to32(dsc->stops[i].color); in lv_gradient_calculate()
319 min = (dsc->stops[i - 1].frac * range) >> 8; in lv_gradient_calculate()
320 max = (dsc->stops[i].frac * range) >> 8; in lv_gradient_calculate()
Dlv_draw_sw_gradient.h24 #error LVGL needs at least 2 stops for gradients. Please increase the LV_GRADIENT_MAX_STOPS
Dlv_draw_sw_rect.c116 …lv_color_t bg_color = grad_dir == LV_GRAD_DIR_NONE ? dsc->bg_color : dsc->bg_grad.stops[0].colo… in draw_bg()
117 if(bg_color.full == dsc->bg_grad.stops[1].color.full) grad_dir = LV_GRAD_DIR_NONE; in draw_bg()
/lvgl-3.7.0/examples/widgets/canvas/
Dlv_example_canvas_1.c14 rect_dsc.bg_grad.stops[0].color = lv_palette_main(LV_PALETTE_RED); in lv_example_canvas_1()
15 rect_dsc.bg_grad.stops[1].color = lv_palette_main(LV_PALETTE_BLUE); in lv_example_canvas_1()
Dlv_example_canvas_1.py10 rect_dsc.bg_grad.stops[0].color = lv.palette_main(lv.PALETTE.RED)
11 rect_dsc.bg_grad.stops[1].color = lv.palette_main(lv.PALETTE.BLUE)
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_rect.c126 uint32_t stops[2]; in lv_gpu_nxp_vglite_draw_bg() local
132 … col32[i].full = lv_color_to32(dsc->bg_grad.stops[i].color); /*Convert color to RGBA8888*/ in lv_gpu_nxp_vglite_draw_bg()
133 stops[i] = dsc->bg_grad.stops[i].frac; in lv_gpu_nxp_vglite_draw_bg()
145 err = vg_lite_set_grad(&gradient, cnt, colors, stops); in lv_gpu_nxp_vglite_draw_bg()
Dlv_draw_vglite.c426 dsc->bg_color : dsc->bg_grad.stops[0].color; in lv_draw_vglite_bg()
427 if(bg_color.full == dsc->bg_grad.stops[1].color.full) in lv_draw_vglite_bg()
/lvgl-3.7.0/src/core/
Dlv_obj_draw.c69 … draw_dsc->bg_grad.stops[0].color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
70 … draw_dsc->bg_grad.stops[1].color = lv_obj_get_style_bg_grad_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
71 draw_dsc->bg_grad.stops[0].frac = lv_obj_get_style_bg_main_stop(obj, part); in lv_obj_init_draw_rect_dsc()
72 draw_dsc->bg_grad.stops[1].frac = lv_obj_get_style_bg_grad_stop(obj, part); in lv_obj_init_draw_rect_dsc()
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_rect.c44 lv_gradient_stop_t stops[LV_GRADIENT_MAX_STOPS]; member
51 lv_gradient_stop_t stops[LV_GRADIENT_MAX_STOPS]; member
376 lv_color_to_sdl_color(&dsc->bg_grad.stops[0].color, &bg_color); in draw_bg_color()
961 key.stops[i].frac = grad->stops[i].frac; in rect_grad_frag_key_create()
962 key.stops[i].color = grad->stops[i].color; in rect_grad_frag_key_create()
978 key.stops[i].frac = grad->stops[i].frac; in rect_grad_strip_key_create()
979 key.stops[i].color = grad->stops[i].color; in rect_grad_strip_key_create()
/lvgl-3.7.0/src/misc/
Dlv_style.h156 lv_gradient_stop_t stops[LV_GRADIENT_MAX_STOPS]; /**< A gradient stop array */ member
/lvgl-3.7.0/docs/overview/
Dscroll.md91 If chaining is disabled the propagation stops on the object and the parent(s) won't be scrolled.
/lvgl-3.7.0/
DKconfig179 int "Number of stops allowed per gradient."
182 Increase this to allow more stops.