efl/src/lib/efl
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
..
cxx efl: major rewrite of efl_part. 2018-05-24 16:02:18 -07:00
interfaces efl_gfx_shape: Stroke color use a premultiplied color. 2019-07-09 14:21:20 +09:00
.gitignore CMake: rework to use some helper macros. 2017-01-23 18:23:40 +01:00
Efl.h Efl.Ui.Format revamp 2019-07-04 19:38:20 +02:00
Efl.hh efl: major rewrite of efl_part. 2018-05-24 16:02:18 -07:00
Efl_Config.h.cmake efl: remove EFL_EO_API_SUPPORT macro 2019-03-18 12:13:59 +01:00
Efl_Config.h.in efl: remove EFL_EO_API_SUPPORT macro 2019-03-18 12:13:59 +01:00
Efl_MVVM_Common.h efl: Property_Bind should actually tell us if it succeeded or failed by returning an Eina.Error. 2019-03-07 09:58:54 -08:00
config.h.cmake cmake: add ector. 2017-01-27 10:56:02 -02:00
meson.build efl: add a factory Eina_Error and rename the file to be more on point with its purpose. 2019-01-09 11:02:10 -08:00