6 #define FNAME image_blend_solid_fade_pow2_unscaled_start
7 #define NAME "Image Blend Solid Fade Power 2 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 = efl_add(EFL_CANVAS_IMAGE_CLASS, evas);
30 efl_file_simple_load(o, build_path("image.png"), NULL);
31 efl_gfx_fill_set(o, EINA_RECT(0, 0, 120, 160));
32 efl_gfx_entity_size_set(o, EINA_SIZE2D(120, 160));
33 a = 256 - (1 << ((rnd() % 8) + 1));
35 efl_gfx_color_set(o, a, a, a, a);
36 efl_gfx_entity_visible_set(o, EINA_TRUE);
42 static void _cleanup(void)
45 for (i = 0; i < OBNUM; i++) efl_del(o_images[i]);
48 /* loop - do things */
49 static void _loop(double t, int f)
52 Evas_Coord x, y, w, h;
53 for (i = 0; i < OBNUM; i++)
57 x = (win_w / 2) - (w / 2);
58 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
59 y = (win_h / 2) - (h / 2);
60 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
61 efl_gfx_entity_position_set(o_images[i], EINA_POSITION2D(x, y));
66 /* prepend special key handlers if interactive (before STD) */
67 static void _key(const char *key)
83 /* template stuff - ignore */
88 _ui_menu_item_add(ICON, NAME, FNAME);
99 ui_func_set(_key, _loop, _setup);