6 #define FNAME image_blend_border_recolor_start
7 #define NAME "Image Blend Border Recolor"
8 #define ICON "blend.png"
17 static Evas_Object *o_images[OBNUM];
20 static void _setup(void)
24 for (i = 0; i < OBNUM; i++)
26 o = evas_object_image_add(evas);
28 evas_object_image_file_set(o, build_path("pan.png"), NULL);
29 evas_object_color_set(o, 64, 64, 64, 255);
30 evas_object_image_border_set(o, 3, 3, 3, 3);
37 static void _cleanup(void)
40 for (i = 0; i < OBNUM; i++) evas_object_del(o_images[i]);
43 /* loop - do things */
44 static void _loop(double t, int f)
47 Evas_Coord x, y, w, h, w0, h0;
48 for (i = 0; i < OBNUM; i++)
52 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
53 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
54 x = (win_w / 2) - (w / 2);
55 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
56 y = (win_h / 2) - (h / 2);
57 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
58 evas_object_move(o_images[i], x, y);
59 evas_object_resize(o_images[i], w, h);
60 evas_object_image_fill_set(o_images[i], 0, 0, w, h);
65 /* prepend special key handlers if interactive (before STD) */
66 static void _key(char *key)
82 /* template stuff - ignore */
87 _ui_menu_item_add(ICON, NAME, FNAME);
98 ui_func_set(_key, _loop);