6 #define FNAME image_blend_occlude2_very_many_start
7 #define NAME "Image Blend Occlude 2 Very Many"
8 #define ICON "blend.png"
20 static Evas_Object *o_images[OBNUM];
23 static void _setup(void)
28 for (i = 0; i < OBNUM; i++)
30 o = eo_add(EVAS_IMAGE_CLASS, evas);
34 eo_do(o, efl_file_set(build_path("logo.png"), NULL));
40 x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
41 y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
43 efl_file_set(build_path("image.png"), NULL),
44 efl_gfx_position_set(x, y));
47 efl_gfx_fill_set(0, 0, 120, 160),
48 efl_gfx_size_set(120, 160),
49 efl_gfx_visible_set(EINA_TRUE));
55 static void _cleanup(void)
58 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
61 /* loop - do things */
62 static void _loop(double t, int f)
65 Evas_Coord x, y, w, h;
66 for (i = 0; i < OBNUM; i++)
72 x = (win_w / 2) - (w / 2);
73 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
74 y = (win_h / 2) - (h / 2);
75 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
76 eo_do(o_images[i], efl_gfx_position_set(x, y));
82 /* prepend special key handlers if interactive (before STD) */
83 static void _key(char *key)
99 /* template stuff - ignore */
104 _ui_menu_item_add(ICON, NAME, FNAME);
115 ui_func_set(_key, _loop);