6 #define FNAME image_blend_solid_fade_unscaled_start
7 #define NAME "Image Blend Solid Fade Unscaled"
8 #define ICON "blend.png"
17 static Evas_Object *o_images[OBNUM];
20 static void _setup(void)
24 for (i = 0; i < OBNUM; i++)
28 o = eo_add(EVAS_IMAGE_CLASS, evas);
31 efl_file_set(build_path("image.png"), NULL),
32 efl_gfx_fill_set(0, 0, 120, 160),
33 efl_gfx_size_set(120, 160));
36 efl_gfx_color_set(a, a, a, a),
37 efl_gfx_visible_set(EINA_TRUE));
43 static void _cleanup(void)
46 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
49 /* loop - do things */
50 static void _loop(double t, int f)
53 Evas_Coord x, y, w, h;
54 for (i = 0; i < OBNUM; i++)
58 x = (win_w / 2) - (w / 2);
59 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
60 y = (win_h / 2) - (h / 2);
61 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
62 eo_do(o_images[i], efl_gfx_position_set(x, y));
67 /* prepend special key handlers if interactive (before STD) */
68 static void _key(char *key)
84 /* template stuff - ignore */
89 _ui_menu_item_add(ICON, NAME, FNAME);
100 ui_func_set(_key, _loop);