/lvgl-latest/src/misc/ |
D | lv_rb.c | 82 node->color = LV_RB_COLOR_BLACK; in lv_rb_insert() 92 node->color = LV_RB_COLOR_RED; in lv_rb_insert() 133 lv_rb_color_t color = LV_RB_COLOR_BLACK; in lv_rb_remove_node() local 153 color = replace->color; in lv_rb_remove_node() 168 replace->color = node->color; in lv_rb_remove_node() 172 if(color == LV_RB_COLOR_BLACK) { in lv_rb_remove_node() 183 color = node->color; in lv_rb_remove_node() 201 if(color == LV_RB_COLOR_BLACK) { in lv_rb_remove_node() 348 node->color = LV_RB_COLOR_RED; in rb_create_node() 429 while((parent = node->parent) && parent->color == LV_RB_COLOR_RED) { in rb_insert_color() [all …]
|
D | lv_color.c | 106 lv_color32_t lv_color_to_32(lv_color_t color, lv_opa_t opa) in lv_color_to_32() argument 109 c32.red = color.red; in lv_color_to_32() 110 c32.green = color.green; in lv_color_to_32() 111 c32.blue = color.blue; in lv_color_to_32() 116 uint16_t lv_color_to_u16(lv_color_t color) in lv_color_to_u16() argument 118 return ((color.red & 0xF8) << 8) + ((color.green & 0xFC) << 3) + ((color.blue & 0xF8) >> 3); in lv_color_to_u16() 121 uint32_t lv_color_to_u32(lv_color_t color) in lv_color_to_u32() argument 123 return (uint32_t)((uint32_t)0xff << 24) + (color.red << 16) + (color.green << 8) + (color.blue); in lv_color_to_u32()
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgLottieModel.cpp | 56 static_cast<LottieSolid*>(pair->obj)->color.release(); in reset() 57 … static_cast<LottieSolid*>(pair->obj)->color = *static_cast<LottieColor*>(pair->prop); in reset() 94 … *static_cast<LottieColor*>(pair->prop) = static_cast<LottieSolid*>(pair->obj)->color; in assign() 97 pair->obj->override(&static_cast<LottieSolid*>(target)->color); in assign() 189 uint32_t LottieGradient::populate(ColorStop& color, size_t count) in populate() argument 191 if (!color.input) return 0; in populate() 193 uint32_t alphaCnt = (color.input->count - (count * 4)) / 2; in populate() 197 if (clast > color.input->count) clast = color.input->count; in populate() 202 for (uint32_t i = 0; i < color.input->count; ++i) { in populate() 203 if (cidx == clast || aidx == color.input->count) break; in populate() [all …]
|
D | tvgRender.h | 109 uint8_t color[4] = {0, 0, 0, 0}; member 129 memcpy(color, rhs.color, sizeof(color)); 193 uint8_t color[4] = {0, 0, 0, 0}; //r, g, b, a member 204 if (r) *r = color[0]; in fillColor() 205 if (g) *g = color[1]; in fillColor() 206 if (b) *b = color[2]; in fillColor() 207 if (a) *a = color[3]; in fillColor() 228 if (r) *r = stroke->color[0]; in strokeColor() 229 if (g) *g = stroke->color[1]; in strokeColor() 230 if (b) *b = stroke->color[2]; in strokeColor() [all …]
|
/lvgl-latest/src/widgets/led/ |
D | lv_led.c | 68 void lv_led_set_color(lv_obj_t * obj, lv_color_t color) in lv_led_set_color() argument 73 led->color = color; in lv_led_set_color() 129 led->color = lv_theme_get_color_primary(obj); in lv_led_constructor() 158 …rect_dsc.bg_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.bg_col… in lv_led_event() 159 rect_dsc.bg_grad.stops[0].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() 160 … lv_color_brightness(rect_dsc.bg_grad.stops[0].color)); in lv_led_event() 161 rect_dsc.bg_grad.stops[1].color = lv_color_mix(led->color, lv_color_black(), in lv_led_event() 162 … lv_color_brightness(rect_dsc.bg_grad.stops[1].color)); in lv_led_event() 163 …rect_dsc.shadow_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.sh… in lv_led_event() 164 …rect_dsc.border_color = lv_color_mix(led->color, lv_color_black(), lv_color_brightness(rect_dsc.bo… in lv_led_event() [all …]
|
/lvgl-latest/docs/details/main-components/ |
D | color.rst | 7 The color module handles all color-related functions like changing color 8 depth, creating colors from hex code, converting between color depths, 11 The type :cpp:type:`lv_color_t` is used to store a color in RGB888 format. 56 lv_color_hsv_t c_hsv = lv_color_to_hsv(color); 64 colors. In this system all named colors have a nominal main color as 89 To get the main color use 92 For the lighter variants of a palette color use 94 1..5. For the darker variants of a palette color use 103 The following functions can modify a color: 107 // Lighten a color. 0: no change, 255: white [all …]
|
/lvgl-latest/src/widgets/canvas/ |
D | lv_canvas.c | 107 void lv_canvas_set_px(lv_obj_t * obj, int32_t x, int32_t y, lv_color_t color, lv_opa_t opa) in lv_canvas_set_px() argument 119 uint8_t c_int = color.blue; in lv_canvas_set_px() 144 *data = lv_color_luminance(color); in lv_canvas_set_px() 151 buf->red = color.red >> 3; in lv_canvas_set_px() 152 buf->green = color.green >> 2; in lv_canvas_set_px() 153 buf->blue = color.blue >> 3; in lv_canvas_set_px() 156 data[2] = color.red; in lv_canvas_set_px() 157 data[1] = color.green; in lv_canvas_set_px() 158 data[0] = color.blue; in lv_canvas_set_px() 161 data[2] = color.red; in lv_canvas_set_px() [all …]
|
/lvgl-latest/src/libs/gif/ |
D | gifdec_mve.h | 23 #define GIFDEC_FILL_BG(dst, w, h, stride, color, opa) \ argument 24 _gifdec_fill_bg_mve(dst, w, h, stride, color, opa) 41 …e void _gifdec_fill_bg_mve(uint8_t * dst, uint16_t w, uint16_t h, uint16_t stride, uint8_t * color, in _gifdec_fill_bg_mve() argument 44 lv_color32_t c = lv_color32_make(*(color + 0), *(color + 1), *(color + 2), opa); in _gifdec_fill_bg_mve()
|
/lvgl-latest/docs/details/widgets/ |
D | canvas.rst | 43 Canvas supports all the color formats like 50 For indexed color formats (``LV_COLOR_FORMAT_I1/2/4/8``), the palette needs to be 52 :cpp:expr:`lv_canvas_set_palette(canvas, index, color)`. For example, the following 62 To set an individual pixel's color on the Canvas, use 63 :cpp:expr:`lv_canvas_set_px(canvas, x, y, color, opa)`. With indexed color formats 64 (``LV_COLOR_FORMAT_I1/2/4/8``) pass the color index as the ``color`` argument by using 65 the *blue* channel in the ``color`` value, e.g. :cpp:expr:`lv_color_make(0, 0, index)`. 68 Canvas to blue with 50% opacity. Note that if the current color format 69 doesn't support colors (e.g. :cpp:enumerator:`LV_COLOR_FORMAT_A8`) the color will be 75 color format of the buffer and Canvas need to match. [all …]
|
D | led.rst | 11 adjusted. With lower brightness the color of the LED becomes darker. 29 You set the color of the LED with 31 background color, border color, and shadow color.
|
/lvgl-latest/examples/widgets/image/ |
D | lv_example_image_2.c | 4 static lv_obj_t * create_slider(lv_color_t color); 45 …lv_color_t color = lv_color_make(lv_slider_get_value(red_slider), lv_slider_get_value(green_slide… in slider_event_cb() local 49 lv_obj_set_style_image_recolor(img1, color, 0); in slider_event_cb() 52 static lv_obj_t * create_slider(lv_color_t color) in create_slider() argument 57 lv_obj_set_style_bg_color(slider, color, LV_PART_KNOB); in create_slider() 58 lv_obj_set_style_bg_color(slider, lv_color_darken(color, LV_OPA_40), LV_PART_INDICATOR); in create_slider()
|
/lvgl-latest/env_support/pikascript/ |
D | pika_lvgl_lv_style_t.c | 16 void pika_lvgl_style_t_set_bg_color(PikaObj* self, PikaObj* color) { in pika_lvgl_style_t_set_bg_color() argument 18 lv_color_t* lv_color = obj_getPtr(color, "lv_color"); in pika_lvgl_style_t_set_bg_color() 27 void pika_lvgl_style_t_set_outline_color(PikaObj* self, PikaObj* color) { in pika_lvgl_style_t_set_outline_color() argument 29 lv_color_t* lv_color = obj_getPtr(color, "lv_color"); in pika_lvgl_style_t_set_outline_color() 55 void pika_lvgl_style_t_set_shadow_color(PikaObj *self, PikaObj* color){ in pika_lvgl_style_t_set_shadow_color() argument 57 lv_color_t* lv_color = obj_getPtr(color, "lv_color"); in pika_lvgl_style_t_set_shadow_color()
|
/lvgl-latest/docs/_static/css/ |
D | custom.css | 50 background-color: #f5f5f5; 53 color: #333; 102 background-color: #2980b9; 103 color: white; 107 color: white; 112 color: white; 149 color: #e74c3c; 155 /* This replaces a color present in `pygments.css` which is used to highlight 157 * difficult to tell that it is even highlighted. This color override remedies both. */ 158 .highlight .nf { color: #2648ee } /* Name.Function */
|
/lvgl-latest/src/draw/nxp/pxp/ |
D | lv_draw_pxp_layer.c | 100 …fill_dsc.color = lv_color_hex(layer_to_draw->color_format == LV_COLOR_FORMAT_ARGB8888 ? 0xff0000 :… in lv_draw_pxp_layer() 106 border_dsc.color = fill_dsc.color; in lv_draw_pxp_layer() 123 fill_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_pxp_layer() 129 border_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_pxp_layer() 144 fill_dsc.color = lv_color_black(); in lv_draw_pxp_layer() 151 label_dsc.color = lv_color_white(); in lv_draw_pxp_layer()
|
/lvgl-latest/src/draw/nxp/vglite/ |
D | lv_draw_vglite_layer.c | 100 …fill_dsc.color = lv_color_hex(layer_to_draw->color_format == LV_COLOR_FORMAT_ARGB8888 ? 0xff0000 :… in lv_draw_vglite_layer() 106 border_dsc.color = fill_dsc.color; in lv_draw_vglite_layer() 123 fill_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_vglite_layer() 129 border_dsc.color = lv_palette_main(idx % LV_PALETTE_LAST); in lv_draw_vglite_layer() 144 fill_dsc.color = lv_color_black(); in lv_draw_vglite_layer() 151 label_dsc.color = lv_color_white(); in lv_draw_vglite_layer()
|
D | lv_draw_vglite_label.c | 49 static void _vglite_draw_letter(const lv_area_t * mask_area, lv_color_t color, lv_opa_t opa); 92 border_draw_dsc.color = glyph_draw_dsc->color; in _draw_vglite_letter() 131 _vglite_draw_letter(&mask_area, glyph_draw_dsc->color, glyph_draw_dsc->opa); in _draw_vglite_letter() 155 static void _vglite_draw_letter(const lv_area_t * mask_area, lv_color_t color, lv_opa_t opa) in _vglite_draw_letter() argument 170 lv_color32_t col32 = lv_color_to_32(color, opa); in _vglite_draw_letter()
|
/lvgl-latest/src/draw/sw/ |
D | lv_draw_sw_letter.c | 63 glyph_dsc.color = dsc->color; in lv_draw_sw_letter() 104 border_draw_dsc.color = glyph_draw_dsc->color; in draw_letter_cb() 126 blend_dsc.color = glyph_draw_dsc->color; in draw_letter_cb() 145 img_dsc.recolor = glyph_draw_dsc->color; in draw_letter_cb()
|
/lvgl-latest/examples/widgets/buttonmatrix/ |
D | lv_example_buttonmatrix_2.c | 21 if(pressed) fill_draw_dsc->color = lv_palette_darken(LV_PALETTE_BLUE, 3); in event_cb() 22 else fill_draw_dsc->color = lv_palette_main(LV_PALETTE_BLUE); in event_cb() 32 label_draw_dsc->color = lv_color_white(); in event_cb() 41 if(pressed) fill_draw_dsc->color = lv_palette_darken(LV_PALETTE_RED, 3); in event_cb() 42 else fill_draw_dsc->color = lv_palette_main(LV_PALETTE_RED); in event_cb()
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_draw_vg_lite_vector.c | 75 static vg_lite_color_t lv_color32_to_vg(lv_color32_t color, lv_opa_t opa) in lv_color32_to_vg() argument 77 uint8_t a = LV_OPA_MIX2(color.alpha, opa); in lv_color32_to_vg() 79 color.red = LV_UDIV255(color.red * a); in lv_color32_to_vg() 80 color.green = LV_UDIV255(color.green * a); in lv_color32_to_vg() 81 color.blue = LV_UDIV255(color.blue * a); in lv_color32_to_vg() 83 return (uint32_t)a << 24 | (uint32_t)color.blue << 16 | (uint32_t)color.green << 8 | color.red; in lv_color32_to_vg() 95 vg_lite_color_t c = lv_color32_to_vg(dsc->fill_dsc.color, LV_OPA_COVER); in task_draw_cb() 106 vg_lite_color_t vg_color = lv_color32_to_vg(dsc->fill_dsc.color, dsc->fill_dsc.opa); in task_draw_cb() 161 vg_path->stroke_color = lv_color32_to_vg(dsc->stroke_dsc.color, dsc->stroke_dsc.opa); in task_draw_cb()
|
D | lv_draw_vg_lite_box_shadow.c | 68 border_dsc.color = dsc->color; in lv_draw_vg_lite_box_shadow() 87 fill_dsc.color = dsc->color; in lv_draw_vg_lite_box_shadow()
|
/lvgl-latest/examples/widgets/table/ |
D | lv_example_table_1.c | 21 …fill_draw_dsc->color = lv_color_mix(lv_palette_main(LV_PALETTE_BLUE), fill_draw_dsc->color, LV_OPA… in draw_event_cb() 37 …fill_draw_dsc->color = lv_color_mix(lv_palette_main(LV_PALETTE_GREY), fill_draw_dsc->color, LV_OPA… in draw_event_cb()
|
/lvgl-latest/examples/widgets/roller/ |
D | lv_example_roller_3.c | 19 rect_dsc.bg_grad.stops[0].color = lv_color_black(); in generate_mask() 20 rect_dsc.bg_grad.stops[1].color = lv_color_white(); in generate_mask() 28 rect_dsc.bg_grad.stops[0].color = lv_color_white(); in generate_mask() 29 rect_dsc.bg_grad.stops[1].color = lv_color_black(); in generate_mask()
|
/lvgl-latest/examples/widgets/chart/ |
D | lv_example_chart_5.c | 79 tri_dsc.bg_grad.stops[0].color = ser_color; in add_faded_area() 82 tri_dsc.bg_grad.stops[1].color = ser_color; in add_faded_area() 92 rect_dsc.bg_grad.stops[0].color = ser_color; in add_faded_area() 95 rect_dsc.bg_grad.stops[1].color = ser_color; in add_faded_area() 115 line_dsc->color = lv_palette_lighten(LV_PALETTE_GREY, 1); in hook_division_lines() 141 line_dsc->color = lv_palette_main(LV_PALETTE_GREEN); in hook_division_lines() 144 line_dsc->color = lv_palette_lighten(LV_PALETTE_GREY, 1); in hook_division_lines()
|
/lvgl-latest/src/draw/renesas/dave2d/ |
D | lv_draw_dave2d_utils.c | 37 d2_color lv_draw_dave2d_lv_colour_to_d2_colour(lv_color_t color) in lv_draw_dave2d_lv_colour_to_d2_colour() argument 42 red = color.red ; in lv_draw_dave2d_lv_colour_to_d2_colour() 43 green = color.green ; in lv_draw_dave2d_lv_colour_to_d2_colour() 44 blue = color.blue; in lv_draw_dave2d_lv_colour_to_d2_colour()
|
/lvgl-latest/src/draw/dma2d/ |
D | lv_draw_dma2d_fill.c | 44 uint32_t reg_to_mem_color = lv_draw_dma2d_color_to_dma2d_color(output_cf, dsc->color); in lv_draw_dma2d_opaque_fill() 73 lv_color_t color = dsc->color; in lv_draw_dma2d_fill() local 103 .fg_color = lv_color_to_u32(color), in lv_draw_dma2d_fill()
|