Gradient in wearable 2.3.1

Gradient in wearable 2.3.1

BY 28 Mar 2017 Native Application Development

Hi,

i was wondering if it’s possible to add gradient background to different elements?

I know how to add it when drawing on cario:

cairo_set_line_width(cairo, 2);
cairo_pattern_t *linear = cairo_pattern_create_linear(0, 0, 0, graph_size.y);
cairo_pattern_add_color_stop_rgba (linear, 1,   0.54, 0.2,  0.14, 1);
cairo_pattern_add_color_stop_rgba (linear, 0.5, 1,    0.59, 0.11, 1);
cairo_pattern_add_color_stop_rgba (linear, 0,   0.34, 0.7,  0.13, 1);
cairo_set_source(cairo, linear);

But can I set eext_circle_object background color as gradient? Or can I set gradient as background color in edje for SWALLOW or RECT part (i tried creating GRADIENT type but compilator says it doesnt exist)?

The link in other question does not work (404 error).

Written by