6 #define FNAME image_blend_occlude3_many_start
7 #define NAME "Image Blend Occlude 3 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 = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
34 efl_file_simple_load(o, 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);
42 efl_file_simple_load(o, build_path("image.png"), NULL);
43 efl_gfx_entity_position_set(o, EINA_POSITION2D(x, y));
45 efl_gfx_fill_set(o, EINA_RECT(0, 0, 120, 160));
46 efl_gfx_entity_size_set(o, EINA_SIZE2D(120, 160));
47 efl_gfx_entity_visible_set(o, EINA_TRUE);
53 static void _cleanup(void)
56 for (i = 0; i < OBNUM; i++) efl_del(o_images[i]);
59 /* loop - do things */
60 static void _loop(double t, int f)
63 Evas_Coord x, y, w, h;
64 for (i = 0; i < OBNUM; i++)
70 x = (win_w / 2) - (w / 2);
71 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
72 y = (win_h / 2) - (h / 2);
73 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
74 efl_gfx_entity_position_set(o_images[i], EINA_POSITION2D(x, y));
80 /* prepend special key handlers if interactive (before STD) */
81 static void _key(const char *key)
97 /* template stuff - ignore */
102 _ui_menu_item_add(ICON, NAME, FNAME);
113 ui_func_set(_key, _loop, _setup);