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 = 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));
34 a = 256 - (1 << ((rnd() % 8) + 1));
37 efl_gfx_color_set(a, a, a, a),
38 efl_gfx_visible_set(EINA_TRUE));
44 static void _cleanup(void)
47 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
50 /* loop - do things */
51 static void _loop(double t, int f)
54 Evas_Coord x, y, w, h;
55 for (i = 0; i < OBNUM; i++)
59 x = (win_w / 2) - (w / 2);
60 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
61 y = (win_h / 2) - (h / 2);
62 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
63 eo_do(o_images[i], efl_gfx_position_set(x, y));
68 /* prepend special key handlers if interactive (before STD) */
69 static void _key(char *key)
85 /* template stuff - ignore */
90 _ui_menu_item_add(ICON, NAME, FNAME);
101 ui_func_set(_key, _loop);