1 #define EFL_GFX_FILTER_BETA
8 #define FNAME font_effect_blur_color_start
9 #define NAME "Font Effect Blur (Color)"
10 #define ICON "text.png"
22 static Evas_Object *text;
24 extern int win_w, win_h;
25 static const int MAX_BLUR = 100;
29 static void _setup(void)
35 o = evas_object_text_add(evas);
36 evas_object_color_set(o, 0, 0, 0, 255);
37 evas_object_text_font_set(o, "Vera-Bold", 80);
38 evas_object_text_text_set(o, "Font Effect");
40 evas_object_geometry_get(o, NULL, NULL, &w, &h);
41 evas_object_move(o, (win_w / 2) - (w / 2) - MAX_BLUR, (win_h / 2) - (h / 2) - MAX_BLUR);
48 static void _cleanup(void)
50 evas_object_del(text);
53 /* loop - do things */
54 static void _loop(double t, int f)
57 char *str = "a = buffer({ 'rgba' }); padding_set({ %d }); blend({dst=a, color=darkblue});blur({%d,src=a});";
58 sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
59 efl_gfx_filter_program_set(text, buf, "test");
64 /* prepend special key handlers if interactive (before STD) */
65 static void _key(const char *key)
81 /* template stuff - ignore */
86 _ui_menu_item_add(ICON, NAME, FNAME);
98 ui_func_set(_key, _loop);