Home
last modified time | relevance | path

Searched refs:red (Results 1 – 25 of 27) sorted by relevance

12

/lvgl-3.4.0/src/draw/sw/
Dlv_draw_sw_dither.c59 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_hor()
83 t.ch.red = LV_CLAMP(0, tmp.ch.red + factor, 255); in lv_dither_ordered_ver()
117 #define FS_COMPONENTS(A, OP, B, C) A.ch.red = LV_CLAMP(0, A.ch.red OP B.r OP C.r, 255); A.ch.green … in lv_dither_err_diff_hor()
118 … q) { lv_color32_t u; u.full = lv_color_to32(q); e.r = (int8_t)(t.ch.red - u.ch.red); e.g = (int8_… in lv_dither_err_diff_hor()
180 A.ch.red = LV_CLAMP(0, A.ch.red OP ((B.r * b OP C.r * c OP D.r * d) >> 4), 255); \ in lv_dither_err_diff_ver()
Dlv_draw_sw_blend.c664 tmp = bg.ch.red + fg.ch.red; in color_blend_true_color_additive()
666 fg.ch.red = LV_MIN(tmp, 7); in color_blend_true_color_additive()
668 fg.ch.red = LV_MIN(tmp, 31); in color_blend_true_color_additive()
670 fg.ch.red = LV_MIN(tmp, 255); in color_blend_true_color_additive()
712 tmp = bg.ch.red - fg.ch.red; in color_blend_true_color_subtractive()
713 fg.ch.red = LV_MAX(tmp, 0); in color_blend_true_color_subtractive()
738 fg.ch.red = (fg.ch.red * bg.ch.red) >> 8; in color_blend_true_color_multiply()
742 fg.ch.red = (fg.ch.red * bg.ch.red) >> 5; in color_blend_true_color_multiply()
746 fg.ch.red = (fg.ch.red * bg.ch.red) >> 3; in color_blend_true_color_multiply()
Dlv_draw_sw_letter.c405 uint8_t txt_rgb[3] = {color.ch.red, color.ch.green, color.ch.blue}; in draw_letter_subpx()
407 uint8_t txt_rgb[3] = {color.ch.red, (color.ch.green_h << 3) + color.ch.green_l, color.ch.blue}; in draw_letter_subpx()
448 … uint8_t bg_rgb[3] = {dest_buf_tmp->ch.red, dest_buf_tmp->ch.green, dest_buf_tmp->ch.blue}; in draw_letter_subpx()
450 uint8_t bg_rgb[3] = {dest_buf_tmp->ch.red, in draw_letter_subpx()
458 …res_color.ch.red = (uint32_t)((uint32_t)txt_rgb[2] * font_rgb[2] + (bg_rgb[2] * (255 - font_rgb[2]… in draw_letter_subpx()
460 …res_color.ch.red = (uint32_t)((uint16_t)txt_rgb[0] * font_rgb[0] + (bg_rgb[0] * (255 - font_rgb[0]… in draw_letter_subpx()
Dlv_draw_sw_gradient.c342 lv_grad_color_t r = GRAD_CM(LV_UDIV255(two.ch.red * mix + one.ch.red * imix), in lv_gradient_calculate()
/lvgl-3.4.0/src/extra/libs/png/
Dlv_png.c210 c = lv_color_make(img_argb[i].ch.red, img_argb[i].ch.green, img_argb[i].ch.blue); in convert_color_depth()
211 img_c[i].ch.red = c.ch.blue; in convert_color_depth()
212 img_c[i].ch.blue = c.ch.red; in convert_color_depth()
219 c = lv_color_make(img_argb[i].ch.blue, img_argb[i].ch.green, img_argb[i].ch.red); in convert_color_depth()
229 c = lv_color_make(img_argb[i].ch.red, img_argb[i].ch.green, img_argb[i].ch.blue); in convert_color_depth()
238 b = img_argb[i].ch.red | img_argb[i].ch.green | img_argb[i].ch.blue; in convert_color_depth()
/lvgl-3.4.0/src/misc/
Dlv_color.h108 # define LV_COLOR_SET_R1(c, v) (c).ch.red = (uint8_t)((v) & 0x1)
113 # define LV_COLOR_GET_R1(c) (c).ch.red
121 # define LV_COLOR_SET_R8(c, v) (c).ch.red = (uint8_t)((v) & 0x7U)
126 # define LV_COLOR_GET_R8(c) (c).ch.red
134 # define LV_COLOR_SET_R16(c, v) (c).ch.red = (uint8_t)((v) & 0x1FU)
143 # define LV_COLOR_GET_R16(c) (c).ch.red
160 # define LV_COLOR_SET_R32(c, v) (c).ch.red = (uint8_t)((v) & 0xFF)
165 # define LV_COLOR_GET_R32(c) (c).ch.red
199 uint8_t red : 1; member
207 uint8_t red : 3; member
[all …]
Dlv_color.c271 return lv_color_rgb_to_hsv(color32.ch.red, color32.ch.green, color32.ch.blue); in lv_color_to_hsv()
/lvgl-3.4.0/zephyr/
Dlvgl_display_24bit.c41 mix_color.ch.red = *buf_xy; in lvgl_set_px_cb_24bit()
49 *buf_xy = converted_color.ch.red; in lvgl_set_px_cb_24bit()
/lvgl-3.4.0/docs/overview/
Dcolor.md19 lv_color_t c = lv_color_make(red, green, blue);
118 - `ch.red` red channel
121 - `full*` red + green + blue as one number
131 c.red = 0x38;
Dstyle.md14 …a default gray button and `style_btn_red` can add only a `background-color=red` to overwrite the b…
50 - `LV_STATE_FOCUSED`: red
55 3. When the object is focused the same thing happens as in pressed state and red color will be used…
56 4. When the object is focused and pressed both gray and red would work, but the pressed state has h…
64 - If you want to set a property for all states (e.g. red background color) just set it for the defa…
72 For example, create a general gray button style and create a new one for red buttons where only the…
74 This is much like in CSS when used classes are listed like `<div class=".btn .btn-red">`.
76 …r ones set earlier. So in the gray/red button example above, the normal button style should be add…
80 - the red button style defines the background color as red only in the default state
82 …sed (it's in default state) it will be red because a perfect match is found in the most recently a…
[all …]
Dscroll.md27 … own dedicated part, called `LV_PART_SCROLLBAR`. For example a scrollbar can turn to red like this:
/lvgl-3.4.0/src/draw/sdl/
Dlv_draw_sdl_utils.c82 out->r = in->ch.red; in lv_color_to_sdl_color()
89 out->r = color32_t->ch.red; in lv_color_to_sdl_color()
Dlv_draw_sdl_label.c137 SDL_SetTextureColorMod(texture, color.ch.red, color.ch.green, color.ch.blue); in lv_draw_sdl_draw_letter()
Dlv_draw_sdl_img.c365 SDL_SetTextureColorMod(texture, recolor.ch.red, recolor.ch.green, recolor.ch.blue); in apply_recolor_opa()
/lvgl-3.4.0/src/extra/libs/bmp/
Dlv_bmp.c213 c->ch.red = b2; in decoder_read_line()
225 c->ch.red = t[2]; in decoder_read_line()
/lvgl-3.4.0/src/widgets/
Dlv_canvas.c326 rsum += c.ch.red; in lv_canvas_blur_hor()
342 c.ch.red = rsum / r; in lv_canvas_blur_hor()
362 rsum -= c.ch.red; in lv_canvas_blur_hor()
376 rsum += c.ch.red; in lv_canvas_blur_hor()
455 rsum += c.ch.red; in lv_canvas_blur_ver()
470 c.ch.red = rsum / r; in lv_canvas_blur_ver()
490 rsum -= c.ch.red; in lv_canvas_blur_ver()
508 rsum += c.ch.red; in lv_canvas_blur_ver()
/lvgl-3.4.0/demos/benchmark/
DREADME.md46 …es section" all the results are shown. The < 10 FPS results are shown with red, the >= 10 but < 20…
/lvgl-3.4.0/src/draw/
Dlv_img_decoder.c411 … user_data->palette[i] = lv_color_make(cur_color.ch.red, cur_color.ch.green, cur_color.ch.blue); in lv_img_decoder_built_in_open()
421 …user_data->palette[i] = lv_color_make(palette_p[i].ch.red, palette_p[i].ch.green, palette_p[i].ch.… in lv_img_decoder_built_in_open()
/lvgl-3.4.0/src/draw/nxp_vglite/
Dlv_gpu_nxp_vglite.c211 colMix.ch.red = (uint8_t)(((uint16_t)col32.ch.red * opa) >> 8); /*Pre-multiply color*/ in lv_gpu_nxp_vglite_fill()
/lvgl-3.4.0/docs/widgets/core/
Dcanvas.md33 …lized with `lv_canvas_set_palette(canvas, 3, LV_COLOR_RED)`. It sets pixels with *index=3* to red.
Dbtnmatrix.md42 - `LV_BTNMATRIX_CTRL_RECOLOR` Enable recoloring of button texts with `#`. E.g. `"It's #ff0000 red#"`
Dlabel.md50 In the text, you can use commands to recolor parts of the text. For example: `"Write a #ff0000 red#…
/lvgl-3.4.0/docs/intro/
Dindex.md154 - Be sure your display works without LVGL. E.g. paint it to red on start up.
170 … driver. Try the following code without using LVGL. You should see a square with red-blue gradient.
/lvgl-3.4.0/src/extra/widgets/colorwheel/
Dlv_colorwheel.c128 return lv_colorwheel_set_hsv(obj, lv_color_rgb_to_hsv(c32.ch.red, c32.ch.green, c32.ch.blue)); in lv_colorwheel_set_rgb()
/lvgl-3.4.0/docs/get-started/
Dquick-overview.md223 … button appearance, and `style_btn_red` can overwrite the background color to make the button red:

12