6 #define FNAME image_blend_occlude2_start
7 #define NAME "Image Blend Occlude 2"
8 #define ICON "blend.png"
17 static Evas_Object *o_images[OBNUM];
20 static void _setup(void)
25 for (i = 0; i < OBNUM; i++)
27 o = evas_object_image_add(evas);
30 evas_object_image_file_set(o, build_path("logo.png"), NULL);
35 evas_object_image_file_set(o, build_path("image.png"), NULL);
36 x = (win_w / 4) + (((rnd() & 0xff) * ((win_w / 2) - 120)) >> 8);
37 y = (win_h / 4) + (((rnd() & 0xff) * ((win_h / 2) - 120)) >> 8);
38 evas_object_move(o, x, y);
40 evas_object_image_fill_set(o, 0, 0, 120, 160);
41 evas_object_resize(o, 120, 160);
48 static void _cleanup(void)
51 for (i = 0; i < OBNUM; i++) evas_object_del(o_images[i]);
54 /* loop - do things */
55 static void _loop(double t, int f)
58 Evas_Coord x, y, w, h;
59 for (i = 0; i < OBNUM; i++)
65 x = (win_w / 2) - (w / 2);
66 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
67 y = (win_h / 2) - (h / 2);
68 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
69 evas_object_move(o_images[i], x, y);
75 /* prepend special key handlers if interactive (before STD) */
76 static void _key(char *key)
92 /* template stuff - ignore */
97 _ui_menu_item_add(ICON, NAME, FNAME);
108 ui_func_set(_key, _loop);