summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-06-14 20:30:28 +0900
committerHermet Park <hermetpark@gmail.com>2018-06-14 20:30:28 +0900
commit122d3c793eab50191df1c8e6da6439bd69e4dac5 (patch)
treea8c9e8d6e66211281f2681178667fb20cd057a6d /unsorted
parent89c3f4a223264ea1e7772ce9698ecc69d7a05e09 (diff)
evas example: removed unnecessary calls for vg shapes.
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/evas/evas-vg-batman.c27
1 files changed, 16 insertions, 11 deletions
diff --git a/unsorted/evas/evas-vg-batman.c b/unsorted/evas/evas-vg-batman.c
index cbb46fbb..715a8696 100644
--- a/unsorted/evas/evas-vg-batman.c
+++ b/unsorted/evas/evas-vg-batman.c
@@ -135,18 +135,23 @@ main(void)
135 { 135 {
136 batmans_vg[i] = evas_vg_shape_add(vg); 136 batmans_vg[i] = evas_vg_shape_add(vg);
137 evas_vg_node_origin_set(batmans_vg[i], 100, 150); 137 evas_vg_node_origin_set(batmans_vg[i], 100, 150);
138 evas_vg_node_color_set(batmans_vg[i], 0, 0, 0, 255); 138
139 evas_vg_shape_stroke_color_set(batmans_vg[i], 128, 10,10, 128);
140 evas_vg_shape_stroke_width_set(batmans_vg[i], 4.0);
141 evas_vg_shape_stroke_join_set(batmans_vg[i], EFL_GFX_JOIN_MITER);
142 if(i % 2) 139 if(i % 2)
143 { 140 {
144 evas_vg_shape_stroke_color_set(batmans_vg[i], 10, 10,128, 128); 141 evas_vg_node_color_set(batmans_vg[i], 120, 120, 120, 255);
145 evas_vg_shape_stroke_width_set(batmans_vg[i], 2.0); 142 evas_vg_shape_stroke_color_set(batmans_vg[i], 10, 10,128, 128);
146 evas_vg_node_color_set(batmans_vg[i], 120, 120, 120, 255); 143 evas_vg_shape_stroke_width_set(batmans_vg[i], 2.0);
147 evas_vg_shape_stroke_join_set(batmans_vg[i], EFL_GFX_JOIN_ROUND); 144 evas_vg_shape_stroke_join_set(batmans_vg[i], EFL_GFX_JOIN_ROUND);
148 } 145 }
149 evas_vg_shape_append_svg_path(batmans_vg[i], batmans_path[i]); 146 else
147 {
148 evas_vg_node_color_set(batmans_vg[i], 0, 0, 0, 255);
149 evas_vg_shape_stroke_color_set(batmans_vg[i], 128, 10,10, 128);
150 evas_vg_shape_stroke_width_set(batmans_vg[i], 4.0);
151 evas_vg_shape_stroke_join_set(batmans_vg[i], EFL_GFX_JOIN_MITER);
152 }
153
154 evas_vg_shape_append_svg_path(batmans_vg[i], batmans_path[i]);
150 } 155 }
151 156
152 animation = ecore_animator_timeline_add(1, _animator, NULL); 157 animation = ecore_animator_timeline_add(1, _animator, NULL);