efl/src
junsu choi 228b91e36f efl_gfx_shape: Stroke color use a premultiplied color.
Summary: R, G, and B must not be higher than alpha.

Test Plan:
//test code
Ecore_Evas *ee = ecore_evas_new(NULL, 0, 0, 600, 600, NULL);
ecore_evas_show(ee);

Evas *evas = ecore_evas_get(ee);
Evas_Object *vg,*bg;

bg = evas_object_rectangle_add(evas);
evas_object_color_set(bg, 0, 0, 255, 255);
evas_object_focus_set(bg, 1);
evas_object_show(bg);
int w, h;
ecore_evas_geometry_get(ee, NULL, NULL, &w, &h);
evas_object_resize(bg, w, h);

vg = evas_object_vg_add(evas);
evas_object_focus_set(vg, 1);
evas_object_show(vg);
evas_object_resize(vg, w, h);

Efl_VG *shape, *container;
container = evas_vg_container_add(vg);
shape = evas_vg_shape_add(container);

evas_vg_shape_append_rect(shape, 0, 0, 200 , 200, 10, 10);
evas_vg_shape_stroke_color_set(shape, 255, 255, 255, 10);
evas_vg_shape_stroke_width_set(shape, 20);
evas_vg_node_origin_set(shape, 200, 200);

evas_object_vg_root_node_set(vg, container);
ecore_main_loop_begin();
ecore_evas_shutdown();

Reviewers: Hermet, smohanty, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9217
2019-07-09 14:21:20 +09:00
..
benchmarks autotools: REMOVAL! 2019-06-18 08:56:34 +02:00
bin efl_ui_spin_button: fix event calling in spin_button 2019-07-08 19:56:41 +02:00
bindings csharp: fix some build warnings related with incorrect and missing documentation 2019-07-08 17:20:08 +02:00
edje_external here comes meson 2018-10-02 17:22:50 +02:00
examples elementary: rename Activew_View to Spotlight. 2019-07-05 19:18:22 +02:00
generic replace hton and ntoh family functions with ones defined in eina 2019-02-01 14:25:35 +00:00
lib efl_gfx_shape: Stroke color use a premultiplied color. 2019-07-09 14:21:20 +09:00
modules meson: add some config definitions 2019-06-27 15:51:25 +02:00
scripts eolian: remove API to get freefunc of type 2019-07-08 16:06:42 +02:00
static_libs evas svg: fix missing node opacity attribute. 2019-06-27 13:18:28 +09:00
tests efl_ui_spin_button: add test suite 2019-07-08 19:56:42 +02:00
wayland_protocol meson: fix build files size explosion 2018-10-15 22:02:17 +02:00