Home
last modified time | relevance | path

Searched refs:gradient (Results 1 – 25 of 33) sorted by relevance

12

/lvgl-latest/src/draw/
Dlv_draw_vector.c73 dst->stroke_dsc.gradient.style = src->stroke_dsc.gradient.style; in _copy_draw_dsc()
74 dst->stroke_dsc.gradient.cx = src->stroke_dsc.gradient.cx; in _copy_draw_dsc()
75 dst->stroke_dsc.gradient.cy = src->stroke_dsc.gradient.cy; in _copy_draw_dsc()
76 dst->stroke_dsc.gradient.cr = src->stroke_dsc.gradient.cr; in _copy_draw_dsc()
77 dst->stroke_dsc.gradient.spread = src->fill_dsc.gradient.spread; in _copy_draw_dsc()
78 … lv_memcpy(&(dst->stroke_dsc.gradient), &(src->stroke_dsc.gradient), sizeof(lv_vector_gradient_t)); in _copy_draw_dsc()
553 dsc->current_dsc.fill_dsc.gradient.style = LV_VECTOR_GRADIENT_STYLE_LINEAR; in lv_vector_dsc_set_fill_linear_gradient()
554 dsc->current_dsc.fill_dsc.gradient.x1 = x1; in lv_vector_dsc_set_fill_linear_gradient()
555 dsc->current_dsc.fill_dsc.gradient.y1 = y1; in lv_vector_dsc_set_fill_linear_gradient()
556 dsc->current_dsc.fill_dsc.gradient.x2 = x2; in lv_vector_dsc_set_fill_linear_gradient()
[all …]
Dlv_draw_vector_private.h55 lv_vector_gradient_t gradient; member
68 lv_vector_gradient_t gradient; member
/lvgl-latest/src/draw/nxp/vglite/
Dlv_draw_vglite_triangle.c121 vg_lite_linear_gradient_t gradient; in _vglite_draw_triangle() local
144 lv_memzero(&gradient, sizeof(vg_lite_linear_gradient_t)); in _vglite_draw_triangle()
146 VGLITE_CHECK_ERROR(vg_lite_init_grad(&gradient)); in _vglite_draw_triangle()
148 VGLITE_CHECK_ERROR(vg_lite_set_grad(&gradient, cnt, colors, stops)); in _vglite_draw_triangle()
150 VGLITE_CHECK_ERROR(vg_lite_update_grad(&gradient)); in _vglite_draw_triangle()
152 grad_matrix = vg_lite_get_grad_matrix(&gradient); in _vglite_draw_triangle()
164 … VGLITE_CHECK_ERROR(vg_lite_draw_gradient(vgbuf, &path, VG_LITE_FILL_EVEN_ODD, NULL, &gradient, in _vglite_draw_triangle()
176 VGLITE_CHECK_ERROR(vg_lite_clear_grad(&gradient)); in _vglite_draw_triangle()
Dlv_draw_vglite_fill.c172 vg_lite_linear_gradient_t gradient; in _vglite_draw_rect() local
196 lv_memzero(&gradient, sizeof(vg_lite_linear_gradient_t)); in _vglite_draw_rect()
198 VGLITE_CHECK_ERROR(vg_lite_init_grad(&gradient)); in _vglite_draw_rect()
200 VGLITE_CHECK_ERROR(vg_lite_set_grad(&gradient, cnt, colors, stops)); in _vglite_draw_rect()
202 VGLITE_CHECK_ERROR(vg_lite_update_grad(&gradient)); in _vglite_draw_rect()
204 grad_matrix = vg_lite_get_grad_matrix(&gradient); in _vglite_draw_rect()
216 … VGLITE_CHECK_ERROR(vg_lite_draw_gradient(vgbuf, &path, VG_LITE_FILL_EVEN_ODD, NULL, &gradient, in _vglite_draw_rect()
228 VGLITE_CHECK_ERROR(vg_lite_clear_grad(&gradient)); in _vglite_draw_rect()
Dlv_vglite_utils.c114 vg_lite_color_t vglite_get_color(lv_color32_t lv_col32, bool gradient) in vglite_get_color() argument
123 if(!gradient) in vglite_get_color()
Dlv_vglite_utils.h116 vg_lite_color_t vglite_get_color(lv_color32_t lv_col32, bool gradient);
/lvgl-latest/src/libs/thorvg/
DtvgCapi.cpp388 TVG_API Tvg_Result tvg_shape_set_stroke_linear_gradient(Tvg_Paint* paint, Tvg_Gradient* gradient) in tvg_shape_set_stroke_linear_gradient() argument
391 …) reinterpret_cast<Shape*>(paint)->stroke(unique_ptr<LinearGradient>((LinearGradient*)(gradient))); in tvg_shape_set_stroke_linear_gradient()
395 TVG_API Tvg_Result tvg_shape_set_stroke_radial_gradient(Tvg_Paint* paint, Tvg_Gradient* gradient) in tvg_shape_set_stroke_radial_gradient() argument
398 …) reinterpret_cast<Shape*>(paint)->stroke(unique_ptr<RadialGradient>((RadialGradient*)(gradient))); in tvg_shape_set_stroke_radial_gradient()
402 TVG_API Tvg_Result tvg_shape_get_stroke_gradient(const Tvg_Paint* paint, Tvg_Gradient** gradient) in tvg_shape_get_stroke_gradient() argument
404 if (!paint || !gradient) return TVG_RESULT_INVALID_ARGUMENT; in tvg_shape_get_stroke_gradient()
405 *gradient = (Tvg_Gradient*)(reinterpret_cast<const Shape*>(paint)->strokeFill()); in tvg_shape_get_stroke_gradient()
513 TVG_API Tvg_Result tvg_shape_set_linear_gradient(Tvg_Paint* paint, Tvg_Gradient* gradient) in tvg_shape_set_linear_gradient() argument
516 …lt) reinterpret_cast<Shape*>(paint)->fill(unique_ptr<LinearGradient>((LinearGradient*)(gradient))); in tvg_shape_set_linear_gradient()
520 TVG_API Tvg_Result tvg_shape_set_radial_gradient(Tvg_Paint* paint, Tvg_Gradient* gradient) in tvg_shape_set_radial_gradient() argument
[all …]
DtvgSvgSceneBuilder.cpp328 } else if (style->fill.paint.gradient) { in _applyProperty()
330 if (!style->fill.paint.gradient->userSpace) bBox = _boundingBox(vg); in _applyProperty()
332 if (style->fill.paint.gradient->type == SvgGradientType::Linear) { in _applyProperty()
333 … auto linear = _applyLinearGradientProperty(style->fill.paint.gradient, bBox, style->fill.opacity); in _applyProperty()
335 } else if (style->fill.paint.gradient->type == SvgGradientType::Radial) { in _applyProperty()
336 … auto radial = _applyRadialGradientProperty(style->fill.paint.gradient, bBox, style->fill.opacity); in _applyProperty()
372 } else if (style->stroke.paint.gradient) { in _applyProperty()
374 if (!style->stroke.paint.gradient->userSpace) bBox = _boundingBox(vg); in _applyProperty()
376 if (style->stroke.paint.gradient->type == SvgGradientType::Linear) { in _applyProperty()
377 …auto linear = _applyLinearGradientProperty(style->stroke.paint.gradient, bBox, style->stroke.opaci… in _applyProperty()
[all …]
DtvgLottieParser.cpp756 void LottieParser::parseGradient(LottieGradient* gradient, const char* key) in parseGradient() argument
758 if (KEY_AS("t")) gradient->id = getInt(); in parseGradient()
759 else if (KEY_AS("o")) parseProperty<LottieProperty::Type::Opacity>(gradient->opacity, gradient); in parseGradient()
764 if (KEY_AS("p")) gradient->colorStops.count = getInt(); in parseGradient()
765 …se if (KEY_AS("k")) parseProperty<LottieProperty::Type::ColorStop>(gradient->colorStops, gradient); in parseGradient()
769 else if (KEY_AS("s")) parseProperty<LottieProperty::Type::Point>(gradient->start, gradient); in parseGradient()
770 else if (KEY_AS("e")) parseProperty<LottieProperty::Type::Point>(gradient->end, gradient); in parseGradient()
771 else if (KEY_AS("h")) parseProperty<LottieProperty::Type::Float>(gradient->height, gradient); in parseGradient()
772 else if (KEY_AS("a")) parseProperty<LottieProperty::Type::Float>(gradient->angle, gradient); in parseGradient()
DtvgSvgLoader.cpp2269 if (!loader->svgParse->gradient.parsedFx) { in _handleRadialCxAttr()
2279 if (!loader->svgParse->gradient.parsedFy) { in _handleRadialCyAttr()
2289 loader->svgParse->gradient.parsedFx = true; in _handleRadialFxAttr()
2296 loader->svgParse->gradient.parsedFy = true; in _handleRadialFyAttr()
2548 loader->svgParse->gradient.parsedFx = false; in _createRadialGradient()
2549 loader->svgParse->gradient.parsedFy = false; in _createRadialGradient()
3375 SvgStyleGradient* gradient; in _svgLoaderParserXmlOpen() local
3376 gradient = gradientMethod(loader, attrs, attrsLength); in _svgLoaderParserXmlOpen()
3384 loader->def->node.defs.gradients.push(gradient); in _svgLoaderParserXmlOpen()
3386 loader->gradients.push(gradient); in _svgLoaderParserXmlOpen()
[all …]
DtvgSvgLoaderCommon.h433 SvgStyleGradient* gradient; member
552 } gradient; member
DtvgLottieParser.h112 void parseGradient(LottieGradient* gradient, const char* key);
/lvgl-latest/examples/styles/
Dindex.rst92 Metallic knob with conic gradient
98 Radial gradient as background
/lvgl-latest/src/draw/nema_gfx/
Dlv_draw_nema_gfx_utils.c111 void lv_nemagfx_grad_set(NEMA_VG_GRAD_HANDLE gradient, lv_grad_dsc_t lv_grad, lv_opa_t opa) in lv_nemagfx_grad_set() argument
127 nema_vg_grad_set(gradient, cnt, stops, colors); in lv_nemagfx_grad_set()
Dlv_draw_nema_gfx_utils.h120 void lv_nemagfx_grad_set(NEMA_VG_GRAD_HANDLE gradient, lv_grad_dsc_t lv_grad, lv_opa_t opa);
Dlv_draw_nema_gfx_fill.c115 nema_vg_grad_set(draw_nema_gfx_unit->gradient, cnt, stops, colors); in lv_draw_nema_gfx_fill()
132 …nema_vg_paint_set_grad_linear(draw_nema_gfx_unit->paint, draw_nema_gfx_unit->gradient, x0, y0, x1,… in lv_draw_nema_gfx_fill()
Dlv_draw_nema_gfx.h76 NEMA_VG_GRAD_HANDLE gradient; member
Dlv_draw_nema_gfx_triangle.c116 nema_vg_grad_set(draw_nema_gfx_unit->gradient, cnt, stops, colors); in lv_draw_nema_gfx_triangle()
158 …nema_vg_paint_set_grad_linear(draw_nema_gfx_unit->paint, draw_nema_gfx_unit->gradient, x0, y0, x1,… in lv_draw_nema_gfx_triangle()
Dlv_draw_nema_gfx.c107 draw_nema_gfx_unit->gradient = nema_vg_grad_create(); in lv_draw_nema_gfx_init()
331 nema_vg_grad_destroy(draw_nema_gfx_unit->gradient); in nema_gfx_delete()
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_vector.c183 static void _setup_gradient(Tvg_Gradient * gradient, const lv_vector_gradient_t * grad, in _setup_gradient() argument
198 tvg_gradient_set_color_stops(gradient, stops, grad->stops_count); in _setup_gradient()
199 tvg_gradient_set_spread(gradient, lv_spread_to_tvg(grad->spread)); in _setup_gradient()
202 tvg_gradient_set_transform(gradient, &mtx); in _setup_gradient()
231 _set_paint_stroke_gradient(obj, &dsc->gradient, &dsc->matrix); in _set_paint_stroke()
336 _set_paint_fill_gradient(obj, &dsc->gradient, &dsc->matrix); in _set_paint_fill()
Dlv_draw_sw_gradient.h55 lv_grad_t * lv_gradient_get(const lv_grad_dsc_t * gradient, int32_t w, int32_t h);
/lvgl-latest/examples/widgets/label/
Dindex.rst20 Draw label with gradient color
/lvgl-latest/docs/details/integration/renderers/
Dvg_lite.rst52 6. Set the :c:macro:`LV_VG_LITE_GRAD_CACHE_CNT` configuration to specify the number of gradient cac…
53 …gradients. Using a cache can effectively reduce the number of times the gradient image is created …
54 …ual gradient consumes around 4K of GPU memory pool. If there are many gradients used in the interf…
55 …an try increasing the size of the GPU memory pool or reducing the number of gradient cache entries.
/lvgl-latest/src/draw/vg_lite/
Dlv_draw_vg_lite_vector.c263 if(dsc->fill_dsc.gradient.style == LV_VECTOR_GRADIENT_STYLE_RADIAL) { in task_draw_cb()
276 &dsc->fill_dsc.gradient, in task_draw_cb()
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite_tvg.cpp1361 vg_lite_float_t gradient; in vg_lite_update_linear_grad() local
1370 gradient = (vg_lite_float_t)i / (vg_lite_float_t)(width - 1); in vg_lite_update_linear_grad()
1374 while(gradient > color_ramp[stop].stop) { in vg_lite_update_linear_grad()
1378 if(gradient == color_ramp[stop].stop) { in vg_lite_update_linear_grad()
1395 weight = (color_ramp[stop].stop - gradient) in vg_lite_update_linear_grad()
1670 vg_lite_float_t gradient; in vg_lite_update_radial_grad() local
1677 gradient = (vg_lite_float_t)i / (vg_lite_float_t)(width - 1); in vg_lite_update_radial_grad()
1681 while(gradient > colorRamp[stop].stop) { in vg_lite_update_radial_grad()
1685 if(gradient == colorRamp[stop].stop) { in vg_lite_update_radial_grad()
1699 weight = (colorRamp[stop].stop - gradient) in vg_lite_update_radial_grad()

12