summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-01-25 10:55:11 +0000
committerChunEon Park <hermet@hermet.pe.kr>2013-01-25 10:55:11 +0000
commitdce0fb31594b4716a941a3eadc736bd3e1093d60 (patch)
tree040cb89bc24471a4ecd320d136027245ab6d7ea1
parenta9e39877d2e70e2ce55a415bd3c4b3bf659693cc (diff)
expedite - removed filter/mask codes
SVN revision: 83323
-rw-r--r--src/bin/Makefile.am28
-rw-r--r--src/bin/filter_object_blur.c110
-rw-r--r--src/bin/filter_object_blur_solid.c111
-rw-r--r--src/bin/filter_object_brightness.c112
-rw-r--r--src/bin/filter_object_brightness_solid.c114
-rw-r--r--src/bin/filter_object_colors.c114
-rw-r--r--src/bin/filter_object_colors_solid.c115
-rw-r--r--src/bin/filter_object_greyscale.c109
-rw-r--r--src/bin/filter_object_greyscale_solid.c110
-rw-r--r--src/bin/filter_object_invert.c109
-rw-r--r--src/bin/filter_object_invert_solid.c110
-rw-r--r--src/bin/filter_object_sepia.c109
-rw-r--r--src/bin/filter_object_sepia_solid.c110
-rw-r--r--src/bin/image_mask.c115
-rw-r--r--src/bin/image_mask_10.c121
-rw-r--r--src/bin/image_mask_11.c126
-rw-r--r--src/bin/image_mask_12.c125
-rw-r--r--src/bin/image_mask_13.c123
-rw-r--r--src/bin/image_mask_14.c121
-rw-r--r--src/bin/image_mask_15.c121
-rw-r--r--src/bin/image_mask_2.c115
-rw-r--r--src/bin/image_mask_3.c115
-rw-r--r--src/bin/image_mask_4.c116
-rw-r--r--src/bin/image_mask_5.c116
-rw-r--r--src/bin/image_mask_6.c116
-rw-r--r--src/bin/image_mask_7.c122
-rw-r--r--src/bin/image_mask_8.c116
-rw-r--r--src/bin/image_mask_9.c127
28 files changed, 0 insertions, 3156 deletions
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
index fb2ccf4..5e742d1 100644
--- a/src/bin/Makefile.am
+++ b/src/bin/Makefile.am
@@ -114,34 +114,6 @@ proxy_image.c \
114proxy_text_fixed.c \ 114proxy_text_fixed.c \
115proxy_text_random.c 115proxy_text_random.c
116 116
117#image_mask.c \
118#image_mask_2.c \
119#image_mask_3.c \
120#image_mask_4.c \
121#image_mask_5.c \
122#image_mask_6.c \
123#image_mask_7.c \
124#image_mask_8.c \
125#image_mask_9.c \
126#image_mask_10.c \
127#image_mask_11.c \
128#image_mask_12.c \
129#image_mask_13.c \
130#image_mask_14.c \
131#image_mask_15.c \
132#filter_object_colors.c \
133#filter_object_colors_solid.c \
134#filter_object_sepia.c \
135#filter_object_sepia_solid.c \
136#filter_object_greyscale.c \
137#filter_object_greyscale_solid.c \
138#filter_object_invert.c \
139#filter_object_invert_solid.c \
140#filter_object_brightness.c \
141#filter_object_brightness_solid.c \
142#filter_object_blur.c \
143#filter_object_blur_solid.c
144
145expedite_CFLAGS = @WIN32_CFLAGS@ @WAYLAND_CLIENT_CFLAGS@ @WAYLAND_EGL_CFLAGS@ 117expedite_CFLAGS = @WIN32_CFLAGS@ @WAYLAND_CLIENT_CFLAGS@ @WAYLAND_EGL_CFLAGS@
146expedite_CXXFLAGS = @EXPEDITE_CXXFLAGS@ 118expedite_CXXFLAGS = @EXPEDITE_CXXFLAGS@
147expedite_LDADD = @SDL_LIBS@ @x_libs@ @gdi_libs@ @ddraw_libs@ @d3d_libs@ @wince_16_libs@ @DIRECTFB_LIBS@ @XCB_LIBS@ @EVAS_LIBS@ @EINA_LIBS@ @EVIL_LIBS@ @gl_cocoa_libs@ @WAYLAND_CLIENT_LIBS@ @WAYLAND_EGL_LIBS@ -lm 119expedite_LDADD = @SDL_LIBS@ @x_libs@ @gdi_libs@ @ddraw_libs@ @d3d_libs@ @wince_16_libs@ @DIRECTFB_LIBS@ @XCB_LIBS@ @EVAS_LIBS@ @EINA_LIBS@ @EVIL_LIBS@ @gl_cocoa_libs@ @WAYLAND_CLIENT_LIBS@ @WAYLAND_EGL_LIBS@ -lm
diff --git a/src/bin/filter_object_blur.c b/src/bin/filter_object_blur.c
deleted file mode 100644
index 65cb623..0000000
--- a/src/bin/filter_object_blur.c
+++ /dev/null
@@ -1,110 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_blur
7#define NAME "Filter Object Blur"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_BLUR);
33 evas_object_filter_param_int_set(o, "radius", 3);
34 if (o)
35 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
36 src = o;
37 o_images[i] = src;
38 }
39
40 done = 0;
41}
42
43/* cleanup */
44static void _cleanup(void)
45{
46 int i;
47 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
48}
49
50/* loop - do things */
51static void _loop(double t, int f)
52{
53 int i;
54 Evas_Coord x, y, w, h;
55 for (i = 0; i < OBNUM; i++)
56 {
57 w = 120;
58 h = 160;
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 if (o_images[i])
64 eo_do(o_images[i], evas_obj_position_set(x, y));
65 }
66 FPS_STD(NAME);
67}
68
69/* prepend special key handlers if interactive (before STD) */
70static void _key(char *key)
71{
72 KEY_STD;
73}
74
75
76
77
78
79
80
81
82
83
84
85
86/* template stuff - ignore */
87# endif
88#endif
89
90#ifdef UI
91_ui_menu_item_add(ICON, NAME, FNAME);
92#endif
93
94#ifdef PROTO
95void FNAME(void);
96#endif
97
98#ifndef PROTO
99# ifndef UI
100void FNAME(void)
101{
102 ui_func_set(_key, _loop);
103 _setup();
104}
105# endif
106#endif
107#undef FNAME
108#undef NAME
109#undef ICON
110
diff --git a/src/bin/filter_object_blur_solid.c b/src/bin/filter_object_blur_solid.c
deleted file mode 100644
index 4e08044..0000000
--- a/src/bin/filter_object_blur_solid.c
+++ /dev/null
@@ -1,111 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_blur_solid
7#define NAME "Filter Object Blur Solid"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_BLUR);
33 evas_object_filter_param_int_set(o, "radius", 5);
34 if (o)
35 eo_do(o, evas_obj_layer_set(1),
36 evas_obj_visibility_set(EINA_TRUE));
37 src = o;
38 o_images[i] = src;
39 }
40
41 done = 0;
42}
43
44/* cleanup */
45static void _cleanup(void)
46{
47 int i;
48 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
49}
50
51/* loop - do things */
52static void _loop(double t, int f)
53{
54 int i;
55 Evas_Coord x, y, w, h;
56 for (i = 0; i < OBNUM; i++)
57 {
58 w = 120;
59 h = 160;
60 x = (win_w / 2) - (w / 2);
61 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
62 y = (win_h / 2) - (h / 2);
63 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
64 if (o_images[i])
65 eo_do(o_images[i], evas_obj_position_set(x, y));
66 }
67 FPS_STD(NAME);
68}
69
70/* prepend special key handlers if interactive (before STD) */
71static void _key(char *key)
72{
73 KEY_STD;
74}
75
76
77
78
79
80
81
82
83
84
85
86
87/* template stuff - ignore */
88# endif
89#endif
90
91#ifdef UI
92_ui_menu_item_add(ICON, NAME, FNAME);
93#endif
94
95#ifdef PROTO
96void FNAME(void);
97#endif
98
99#ifndef PROTO
100# ifndef UI
101void FNAME(void)
102{
103 ui_func_set(_key, _loop);
104 _setup();
105}
106# endif
107#endif
108#undef FNAME
109#undef NAME
110#undef ICON
111
diff --git a/src/bin/filter_object_brightness.c b/src/bin/filter_object_brightness.c
deleted file mode 100644
index 8bd0dd0..0000000
--- a/src/bin/filter_object_brightness.c
+++ /dev/null
@@ -1,112 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_brightness
7#define NAME "Filter Object Brightness"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_BRIGHTNESS);
33 evas_object_filter_param_float_set(o, "adjust", i / (double)OBNUM);
34 if (o)
35 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
36 src = o;
37 o_images[i] = src;
38 }
39
40 done = 0;
41}
42
43/* cleanup */
44static void _cleanup(void)
45{
46 int i;
47 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
48}
49
50/* loop - do things */
51static void _loop(double t, int f)
52{
53 int i;
54 Evas_Coord x, y, w, h;
55 for (i = 0; i < OBNUM; i++)
56 {
57 w = 120;
58 h = 160;
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 if (o_images[i])
64 eo_do(o_images[i], evas_obj_position_set(x, y));
65 evas_object_filter_param_float_set(o_images[i], "adjust",
66 ((i + f) % OBNUM) / (2.0 * OBNUM) - 1);
67 }
68 FPS_STD(NAME);
69}
70
71/* prepend special key handlers if interactive (before STD) */
72static void _key(char *key)
73{
74 KEY_STD;
75}
76
77
78
79
80
81
82
83
84
85
86
87
88/* template stuff - ignore */
89# endif
90#endif
91
92#ifdef UI
93_ui_menu_item_add(ICON, NAME, FNAME);
94#endif
95
96#ifdef PROTO
97void FNAME(void);
98#endif
99
100#ifndef PROTO
101# ifndef UI
102void FNAME(void)
103{
104 ui_func_set(_key, _loop);
105 _setup();
106}
107# endif
108#endif
109#undef FNAME
110#undef NAME
111#undef ICON
112
diff --git a/src/bin/filter_object_brightness_solid.c b/src/bin/filter_object_brightness_solid.c
deleted file mode 100644
index ef10d3d..0000000
--- a/src/bin/filter_object_brightness_solid.c
+++ /dev/null
@@ -1,114 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_brightness_solid
7#define NAME "Filter Object Brightness Solid"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_BRIGHTNESS);
33 evas_object_filter_param_float_set(o, "adjust",
34 i / (2.0 * OBNUM) - 1.0);
35 if (o)
36 eo_do(o, evas_obj_layer_set(1),
37 evas_obj_visibility_set(EINA_TRUE));
38 src = o;
39 o_images[i] = src;
40 }
41
42 done = 0;
43}
44
45/* cleanup */
46static void _cleanup(void)
47{
48 int i;
49 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
50}
51
52/* loop - do things */
53static void _loop(double t, int f)
54{
55 int i;
56 Evas_Coord x, y, w, h;
57 for (i = 0; i < OBNUM; i++)
58 {
59 w = 120;
60 h = 160;
61 x = (win_w / 2) - (w / 2);
62 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
63 y = (win_h / 2) - (h / 2);
64 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
65 if (o_images[i])
66 eo_do(o_images[i], evas_obj_position_set(x, y));
67 evas_object_filter_param_float_set(o_images[i], "adjust",
68 (((i + f) % OBNUM) * 2.0) / (OBNUM) - 1.0);
69 }
70 FPS_STD(NAME);
71}
72
73/* prepend special key handlers if interactive (before STD) */
74static void _key(char *key)
75{
76 KEY_STD;
77}
78
79
80
81
82
83
84
85
86
87
88
89
90/* template stuff - ignore */
91# endif
92#endif
93
94#ifdef UI
95_ui_menu_item_add(ICON, NAME, FNAME);
96#endif
97
98#ifdef PROTO
99void FNAME(void);
100#endif
101
102#ifndef PROTO
103# ifndef UI
104void FNAME(void)
105{
106 ui_func_set(_key, _loop);
107 _setup();
108}
109# endif
110#endif
111#undef FNAME
112#undef NAME
113#undef ICON
114
diff --git a/src/bin/filter_object_colors.c b/src/bin/filter_object_colors.c
deleted file mode 100644
index ccc6c1b..0000000
--- a/src/bin/filter_object_colors.c
+++ /dev/null
@@ -1,114 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_colors
7#define NAME "Filter Object Colors"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24 Evas_Filter filters[3] = {
25 EVAS_FILTER_GREYSCALE,
26 EVAS_FILTER_INVERT,
27 EVAS_FILTER_SEPIA
28 };
29
30 for (i = 0; i < OBNUM; i++)
31 {
32 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
33 if (o)
34 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
35 evas_obj_image_fill_set(0, 0, 120, 160),
36 evas_obj_size_set(120, 160));
37 evas_object_filter_set(o, filters[i % 3]);
38 if (o)
39 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
40 src = o;
41 o_images[i] = src;
42 }
43
44 done = 0;
45}
46
47/* cleanup */
48static void _cleanup(void)
49{
50 int i;
51 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
52}
53
54/* loop - do things */
55static void _loop(double t, int f)
56{
57 int i;
58 Evas_Coord x, y, w, h;
59 for (i = 0; i < OBNUM; i++)
60 {
61 w = 120;
62 h = 160;
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
67 if (o_images[i])
68 eo_do(o_images[i], evas_obj_position_set(x, y));
69 }
70 FPS_STD(NAME);
71}
72
73/* prepend special key handlers if interactive (before STD) */
74static void _key(char *key)
75{
76 KEY_STD;
77}
78
79
80
81
82
83
84
85
86
87
88
89
90/* template stuff - ignore */
91# endif
92#endif
93
94#ifdef UI
95_ui_menu_item_add(ICON, NAME, FNAME);
96#endif
97
98#ifdef PROTO
99void FNAME(void);
100#endif
101
102#ifndef PROTO
103# ifndef UI
104void FNAME(void)
105{
106 ui_func_set(_key, _loop);
107 _setup();
108}
109# endif
110#endif
111#undef FNAME
112#undef NAME
113#undef ICON
114
diff --git a/src/bin/filter_object_colors_solid.c b/src/bin/filter_object_colors_solid.c
deleted file mode 100644
index 03b1714..0000000
--- a/src/bin/filter_object_colors_solid.c
+++ /dev/null
@@ -1,115 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_colors_solid
7#define NAME "Filter Object Colors Solid"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24 Evas_Filter filters[3] = {
25 EVAS_FILTER_GREYSCALE,
26 EVAS_FILTER_INVERT,
27 EVAS_FILTER_SEPIA
28 };
29
30 for (i = 0; i < OBNUM; i++)
31 {
32 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
33 if (o)
34 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
35 evas_obj_image_fill_set(0, 0, 120, 160),
36 evas_obj_size_set(120, 160));
37 evas_object_filter_set(o, filters[i % 3]);
38 if (o)
39 eo_do(o, evas_obj_layer_set(1),
40 evas_obj_visibility_set(EINA_TRUE));
41 src = o;
42 o_images[i] = src;
43 }
44
45 done = 0;
46}
47
48/* cleanup */
49static void _cleanup(void)
50{
51 int i;
52 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
53}
54
55/* loop - do things */
56static void _loop(double t, int f)
57{
58 int i;
59 Evas_Coord x, y, w, h;
60 for (i = 0; i < OBNUM; i++)
61 {
62 w = 120;
63 h = 160;
64 x = (win_w / 2) - (w / 2);
65 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
66 y = (win_h / 2) - (h / 2);
67 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
68 if (o_images[i])
69 eo_do(o_images[i], evas_obj_position_set(x, y));
70 }
71 FPS_STD(NAME);
72}
73
74/* prepend special key handlers if interactive (before STD) */
75static void _key(char *key)
76{
77 KEY_STD;
78}
79
80
81
82
83
84
85
86
87
88
89
90
91/* template stuff - ignore */
92# endif
93#endif
94
95#ifdef UI
96_ui_menu_item_add(ICON, NAME, FNAME);
97#endif
98
99#ifdef PROTO
100void FNAME(void);
101#endif
102
103#ifndef PROTO
104# ifndef UI
105void FNAME(void)
106{
107 ui_func_set(_key, _loop);
108 _setup();
109}
110# endif
111#endif
112#undef FNAME
113#undef NAME
114#undef ICON
115
diff --git a/src/bin/filter_object_greyscale.c b/src/bin/filter_object_greyscale.c
deleted file mode 100644
index 70d1021..0000000
--- a/src/bin/filter_object_greyscale.c
+++ /dev/null
@@ -1,109 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_greyscale
7#define NAME "Filter Object Greyscale"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_GREYSCALE);
33 if (o)
34 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
35 src = o;
36 o_images[i] = src;
37 }
38
39 done = 0;
40}
41
42/* cleanup */
43static void _cleanup(void)
44{
45 int i;
46 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
47}
48
49/* loop - do things */
50static void _loop(double t, int f)
51{
52 int i;
53 Evas_Coord x, y, w, h;
54 for (i = 0; i < OBNUM; i++)
55 {
56 w = 120;
57 h = 160;
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 if (o_images[i])
63 eo_do(o_images[i], evas_obj_position_set(x, y));
64 }
65 FPS_STD(NAME);
66}
67
68/* prepend special key handlers if interactive (before STD) */
69static void _key(char *key)
70{
71 KEY_STD;
72}
73
74
75
76
77
78
79
80
81
82
83
84
85/* template stuff - ignore */
86# endif
87#endif
88
89#ifdef UI
90_ui_menu_item_add(ICON, NAME, FNAME);
91#endif
92
93#ifdef PROTO
94void FNAME(void);
95#endif
96
97#ifndef PROTO
98# ifndef UI
99void FNAME(void)
100{
101 ui_func_set(_key, _loop);
102 _setup();
103}
104# endif
105#endif
106#undef FNAME
107#undef NAME
108#undef ICON
109
diff --git a/src/bin/filter_object_greyscale_solid.c b/src/bin/filter_object_greyscale_solid.c
deleted file mode 100644
index 11c7014..0000000
--- a/src/bin/filter_object_greyscale_solid.c
+++ /dev/null
@@ -1,110 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_greyscale_solid
7#define NAME "Filter Object Greyscale Solid"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_GREYSCALE);
33 if (o)
34 eo_do(o, evas_obj_layer_set(1),
35 evas_obj_visibility_set(EINA_TRUE));
36 src = o;
37 o_images[i] = src;
38 }
39
40 done = 0;
41}
42
43/* cleanup */
44static void _cleanup(void)
45{
46 int i;
47 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
48}
49
50/* loop - do things */
51static void _loop(double t, int f)
52{
53 int i;
54 Evas_Coord x, y, w, h;
55 for (i = 0; i < OBNUM; i++)
56 {
57 w = 120;
58 h = 160;
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 if (o_images[i])
64 eo_do(o_images[i], evas_obj_position_set(x, y));
65 }
66 FPS_STD(NAME);
67}
68
69/* prepend special key handlers if interactive (before STD) */
70static void _key(char *key)
71{
72 KEY_STD;
73}
74
75
76
77
78
79
80
81
82
83
84
85
86/* template stuff - ignore */
87# endif
88#endif
89
90#ifdef UI
91_ui_menu_item_add(ICON, NAME, FNAME);
92#endif
93
94#ifdef PROTO
95void FNAME(void);
96#endif
97
98#ifndef PROTO
99# ifndef UI
100void FNAME(void)
101{
102 ui_func_set(_key, _loop);
103 _setup();
104}
105# endif
106#endif
107#undef FNAME
108#undef NAME
109#undef ICON
110
diff --git a/src/bin/filter_object_invert.c b/src/bin/filter_object_invert.c
deleted file mode 100644
index 85ccce3..0000000
--- a/src/bin/filter_object_invert.c
+++ /dev/null
@@ -1,109 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_invert
7#define NAME "Filter Object Invert"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_INVERT);
33 if (o)
34 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
35 src = o;
36 o_images[i] = src;
37 }
38
39 done = 0;
40}
41
42/* cleanup */
43static void _cleanup(void)
44{
45 int i;
46 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
47}
48
49/* loop - do things */
50static void _loop(double t, int f)
51{
52 int i;
53 Evas_Coord x, y, w, h;
54 for (i = 0; i < OBNUM; i++)
55 {
56 w = 120;
57 h = 160;
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 if (o_images[i])
63 eo_do(o_images[i], evas_obj_position_set(x, y));
64 }
65 FPS_STD(NAME);
66}
67
68/* prepend special key handlers if interactive (before STD) */
69static void _key(char *key)
70{
71 KEY_STD;
72}
73
74
75
76
77
78
79
80
81
82
83
84
85/* template stuff - ignore */
86# endif
87#endif
88
89#ifdef UI
90_ui_menu_item_add(ICON, NAME, FNAME);
91#endif
92
93#ifdef PROTO
94void FNAME(void);
95#endif
96
97#ifndef PROTO
98# ifndef UI
99void FNAME(void)
100{
101 ui_func_set(_key, _loop);
102 _setup();
103}
104# endif
105#endif
106#undef FNAME
107#undef NAME
108#undef ICON
109
diff --git a/src/bin/filter_object_invert_solid.c b/src/bin/filter_object_invert_solid.c
deleted file mode 100644
index f6a9afe..0000000
--- a/src/bin/filter_object_invert_solid.c
+++ /dev/null
@@ -1,110 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_invert_solid
7#define NAME "Filter Object Invert Solid"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_INVERT);
33 if (o)
34 eo_do(o, evas_obj_layer_set(1),
35 evas_obj_visibility_set(EINA_TRUE));
36 src = o;
37 o_images[i] = src;
38 }
39
40 done = 0;
41}
42
43/* cleanup */
44static void _cleanup(void)
45{
46 int i;
47 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
48}
49
50/* loop - do things */
51static void _loop(double t, int f)
52{
53 int i;
54 Evas_Coord x, y, w, h;
55 for (i = 0; i < OBNUM; i++)
56 {
57 w = 120;
58 h = 160;
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 if (o_images[i])
64 eo_do(o_images[i], evas_obj_position_set(x, y));
65 }
66 FPS_STD(NAME);
67}
68
69/* prepend special key handlers if interactive (before STD) */
70static void _key(char *key)
71{
72 KEY_STD;
73}
74
75
76
77
78
79
80
81
82
83
84
85
86/* template stuff - ignore */
87# endif
88#endif
89
90#ifdef UI
91_ui_menu_item_add(ICON, NAME, FNAME);
92#endif
93
94#ifdef PROTO
95void FNAME(void);
96#endif
97
98#ifndef PROTO
99# ifndef UI
100void FNAME(void)
101{
102 ui_func_set(_key, _loop);
103 _setup();
104}
105# endif
106#endif
107#undef FNAME
108#undef NAME
109#undef ICON
110
diff --git a/src/bin/filter_object_sepia.c b/src/bin/filter_object_sepia.c
deleted file mode 100644
index 4e825b3..0000000
--- a/src/bin/filter_object_sepia.c
+++ /dev/null
@@ -1,109 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_sepia
7#define NAME "Filter Object Sepia"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_SEPIA);
33 if (o)
34 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
35 src = o;
36 o_images[i] = src;
37 }
38
39 done = 0;
40}
41
42/* cleanup */
43static void _cleanup(void)
44{
45 int i;
46 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
47}
48
49/* loop - do things */
50static void _loop(double t, int f)
51{
52 int i;
53 Evas_Coord x, y, w, h;
54 for (i = 0; i < OBNUM; i++)
55 {
56 w = 120;
57 h = 160;
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 if (o_images[i])
63 eo_do(o_images[i], evas_obj_position_set(x, y));
64 }
65 FPS_STD(NAME);
66}
67
68/* prepend special key handlers if interactive (before STD) */
69static void _key(char *key)
70{
71 KEY_STD;
72}
73
74
75
76
77
78
79
80
81
82
83
84
85/* template stuff - ignore */
86# endif
87#endif
88
89#ifdef UI
90_ui_menu_item_add(ICON, NAME, FNAME);
91#endif
92
93#ifdef PROTO
94void FNAME(void);
95#endif
96
97#ifndef PROTO
98# ifndef UI
99void FNAME(void)
100{
101 ui_func_set(_key, _loop);
102 _setup();
103}
104# endif
105#endif
106#undef FNAME
107#undef NAME
108#undef ICON
109
diff --git a/src/bin/filter_object_sepia_solid.c b/src/bin/filter_object_sepia_solid.c
deleted file mode 100644
index 0987dcb..0000000
--- a/src/bin/filter_object_sepia_solid.c
+++ /dev/null
@@ -1,110 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME filter_object_sepia_solid
7#define NAME "Filter Object Sepia Solid"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o,*src;
24
25 for (i = 0; i < OBNUM; i++)
26 {
27 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160));
32 evas_object_filter_set(o, EVAS_FILTER_SEPIA);
33 if (o)
34 eo_do(o, evas_obj_layer_set(1),
35 evas_obj_visibility_set(EINA_TRUE));
36 src = o;
37 o_images[i] = src;
38 }
39
40 done = 0;
41}
42
43/* cleanup */
44static void _cleanup(void)
45{
46 int i;
47 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
48}
49
50/* loop - do things */
51static void _loop(double t, int f)
52{
53 int i;
54 Evas_Coord x, y, w, h;
55 for (i = 0; i < OBNUM; i++)
56 {
57 w = 120;
58 h = 160;
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 if (o_images[i])
64 eo_do(o_images[i], evas_obj_position_set(x, y));
65 }
66 FPS_STD(NAME);
67}
68
69/* prepend special key handlers if interactive (before STD) */
70static void _key(char *key)
71{
72 KEY_STD;
73}
74
75
76
77
78
79
80
81
82
83
84
85
86/* template stuff - ignore */
87# endif
88#endif
89
90#ifdef UI
91_ui_menu_item_add(ICON, NAME, FNAME);
92#endif
93
94#ifdef PROTO
95void FNAME(void);
96#endif
97
98#ifndef PROTO
99# ifndef UI
100void FNAME(void)
101{
102 ui_func_set(_key, _loop);
103 _setup();
104}
105# endif
106#endif
107#undef FNAME
108#undef NAME
109#undef ICON
110
diff --git a/src/bin/image_mask.c b/src/bin/image_mask.c
deleted file mode 100644
index cc483bf..0000000
--- a/src/bin/image_mask.c
+++ /dev/null
@@ -1,115 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask
7#define NAME "Image Mask"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o;
24 for (i = 0; i < OBNUM; i+= 2)
25 {
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_images[i] = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("image.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160),
32 evas_obj_visibility_set(EINA_TRUE));
33
34 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
35 o_images[i + 1] = o;
36 if (o)
37 eo_do(o, evas_obj_image_file_set(build_path("e-logo.png"), NULL),
38 evas_obj_image_fill_set(0, 0, 120, 160),
39 evas_obj_size_set(120, 160),
40 evas_obj_visibility_set(EINA_TRUE));
41 if (o_images[i])
42 eo_do(o_images[i], evas_obj_clip_set(o));
43 }
44 done = 0;
45}
46
47/* cleanup */
48static void _cleanup(void)
49{
50 int i;
51 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
52}
53
54/* loop - do things */
55static void _loop(double t, int f)
56{
57 int i;
58 Evas_Coord x, y, w, h;
59 for (i = 0; i < OBNUM; i+= 2)
60 {
61 w = 120;
62 h = 160;
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
67 if (o_images[i])
68 eo_do(o_images[i], evas_obj_position_set(x, y));
69 if (o_images[i + 1])
70 eo_do(o_images[i + 1], evas_obj_position_set(x, y));
71 }
72 FPS_STD(NAME);
73}
74
75/* prepend special key handlers if interactive (before STD) */
76static void _key(char *key)
77{
78 KEY_STD;
79}
80
81
82
83
84
85
86
87
88
89
90
91
92/* template stuff - ignore */
93# endif
94#endif
95
96#ifdef UI
97_ui_menu_item_add(ICON, NAME, FNAME);
98#endif
99
100#ifdef PROTO
101void FNAME(void);
102#endif
103
104#ifndef PROTO
105# ifndef UI
106void FNAME(void)
107{
108 ui_func_set(_key, _loop);
109 _setup();
110}
111# endif
112#endif
113#undef FNAME
114#undef NAME
115#undef ICON
diff --git a/src/bin/image_mask_10.c b/src/bin/image_mask_10.c
deleted file mode 100644
index 69a967f..0000000
--- a/src/bin/image_mask_10.c
+++ /dev/null
@@ -1,121 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_10
7#define NAME "Image Mask 10"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[1];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < 1; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("texture.png"), NULL),
41 evas_obj_image_fill_set(0, 0, win_w * 4, win_h * 4),
42 evas_obj_size_set(win_w * 4, win_h * 4),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < 1; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 static Evas_Map *m = NULL;
62 Evas_Coord x, y, w, h;
63 if (!m) m = evas_map_new(4);
64 for (i = 0; i < 1; i++)
65 {
66 w = win_w * 4;
67 h = win_h * 4;
68 x = (win_w / 2) - (w / 2);
69 y = (win_h / 2) - (h / 2);
70 evas_map_util_points_populate_from_geometry(m,
71 -win_w, -win_h,
72 win_w * 4, win_h * 4, 0);
73 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
74 if (o_images[i])
75 eo_do(o_images[i], evas_obj_map_enable_set(1),
76 evas_obj_map_set(m));
77 }
78 FPS_STD(NAME);
79}
80
81/* prepend special key handlers if interactive (before STD) */
82static void _key(char *key)
83{
84 KEY_STD;
85}
86
87
88
89
90
91
92
93
94
95
96
97
98/* template stuff - ignore */
99# endif
100#endif
101
102#ifdef UI
103_ui_menu_item_add(ICON, NAME, FNAME);
104#endif
105
106#ifdef PROTO
107void FNAME(void);
108#endif
109
110#ifndef PROTO
111# ifndef UI
112void FNAME(void)
113{
114 ui_func_set(_key, _loop);
115 _setup();
116}
117# endif
118#endif
119#undef FNAME
120#undef NAME
121#undef ICON
diff --git a/src/bin/image_mask_11.c b/src/bin/image_mask_11.c
deleted file mode 100644
index e7f12c3..0000000
--- a/src/bin/image_mask_11.c
+++ /dev/null
@@ -1,126 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_11
7#define NAME "Image Mask 11"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120, 160),
42 evas_obj_size_set(120, 160),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 static Evas_Map *m = NULL;
62 Evas_Coord x, y, w, h;
63 for (i = 0; i < OBNUM; i++)
64 {
65 w = 120;
66 h = 160;
67 x = (win_w / 2) - (w / 2);
68 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
69 y = (win_h / 2) - (h / 2);
70 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
71 if (o_images[i])
72 eo_do(o_images[i], evas_obj_position_set(x, y));
73 }
74 if (!m) m = evas_map_new(4);
75 evas_map_util_points_populate_from_geometry(m,
76 (win_w - 720) / 2,
77 (win_h - 420) / 2,
78 720, 420, 0);
79 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
80 if (o_mask)
81 eo_do(o_mask, evas_obj_map_enable_set(1),
82 evas_obj_map_set(m));
83 FPS_STD(NAME);
84}
85
86/* prepend special key handlers if interactive (before STD) */
87static void _key(char *key)
88{
89 KEY_STD;
90}
91
92
93
94
95
96
97
98
99
100
101
102
103/* template stuff - ignore */
104# endif
105#endif
106
107#ifdef UI
108_ui_menu_item_add(ICON, NAME, FNAME);
109#endif
110
111#ifdef PROTO
112void FNAME(void);
113#endif
114
115#ifndef PROTO
116# ifndef UI
117void FNAME(void)
118{
119 ui_func_set(_key, _loop);
120 _setup();
121}
122# endif
123#endif
124#undef FNAME
125#undef NAME
126#undef ICON
diff --git a/src/bin/image_mask_12.c b/src/bin/image_mask_12.c
deleted file mode 100644
index a403894..0000000
--- a/src/bin/image_mask_12.c
+++ /dev/null
@@ -1,125 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_12
7#define NAME "Image Mask 12"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_TEXT_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_text_font_set("Vera-Bold", 150),
30 evas_obj_visibility_set(EINA_TRUE));
31
32 for (i = 0; i < OBNUM; i++)
33 {
34 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
35 o_images[i] = o;
36 if (o)
37 eo_do(o, evas_obj_image_file_set(build_path("texture.png"), NULL),
38 evas_obj_image_fill_set(0, 0, 500, 444),
39 evas_obj_size_set(win_w * 4, win_h * 4));
40 // if (o)
41 eo_do(o, evas_obj_clip_set(o_mask));
42 if (o)
43 eo_do(o, evas_obj_visibility_set(EINA_TRUE));
44 }
45 done = 0;
46}
47
48/* cleanup */
49static void _cleanup(void)
50{
51 int i;
52 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
53 eo_del(o_mask);
54}
55
56/* loop - do things */
57static void _loop(double t, int f)
58{
59 int i;
60 Evas_Coord x, y, w, h;
61 const char *strs[] = {
62 "Big", "Smelly", "Fish", "Pants", "Octopus", "Garden", "There", "I",
63 "Am", "You", "Are", "Erogenous", "We", "Stick", "Wet", "Fishy",
64 "Fiddly", "Family", "Lair", "Monkeys", "Magazine"
65 };
66 for (i = 0; i < OBNUM; i++)
67 {
68 w = win_w * 4;
69 h = win_h * 4;
70 x = (win_w / 2) - (w / 2);
71 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
72 y = (win_h / 2) - (h / 2);
73 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2);
74 if (o_images[i])
75 eo_do(o_images[i], evas_obj_position_set(x, y));
76 }
77 if (o_mask)
78 eo_do(o_mask, evas_obj_text_text_set(strs[rnd() % (sizeof(strs) / sizeof(char *))]),
79 evas_obj_color_set(255, 255, 255, 255),
80 evas_obj_size_get(&w, &h),
81 evas_obj_position_set((win_w - w) / 2, (win_h - h) / 2));
82 FPS_STD(NAME);
83}
84
85/* prepend special key handlers if interactive (before STD) */
86static void _key(char *key)
87{
88 KEY_STD;
89}
90
91
92
93
94
95
96
97
98
99
100
101
102/* template stuff - ignore */
103# endif
104#endif
105
106#ifdef UI
107_ui_menu_item_add(ICON, NAME, FNAME);
108#endif
109
110#ifdef PROTO
111void FNAME(void);
112#endif
113
114#ifndef PROTO
115# ifndef UI
116void FNAME(void)
117{
118 ui_func_set(_key, _loop);
119 _setup();
120}
121# endif
122#endif
123#undef FNAME
124#undef NAME
125#undef ICON
diff --git a/src/bin/image_mask_13.c b/src/bin/image_mask_13.c
deleted file mode 100644
index 44bc1e8..0000000
--- a/src/bin/image_mask_13.c
+++ /dev/null
@@ -1,123 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_13
7#define NAME "Image Mask 13"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_TEXT_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_text_font_set("Vera-Bold", 150),
30 evas_obj_visibility_set(EINA_TRUE));
31
32 for (i = 0; i < OBNUM; i++)
33 {
34 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
35 o_images[i] = o;
36 if (o)
37 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
38 evas_obj_image_fill_set(0, 0, 120, 160),
39 evas_obj_size_set(120, 160),
40 evas_obj_visibility_set(EINA_TRUE),
41 evas_obj_clip_set(o_mask));
42 }
43 done = 0;
44}
45
46/* cleanup */
47static void _cleanup(void)
48{
49 int i;
50 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
51 eo_del(o_mask);
52}
53
54/* loop - do things */
55static void _loop(double t, int f)
56{
57 int i;
58 Evas_Coord x, y, w, h;
59 const char *strs[] = {
60 "Big", "Smelly", "Fish", "Pants", "Octopus", "Garden", "There", "I",
61 "Am", "You", "Are", "Erogenous", "We", "Stick", "Wet", "Fishy",
62 "Fiddly", "Family", "Lair", "Monkeys", "Magazine"
63 };
64 for (i = 0; i < OBNUM; i++)
65 {
66 w = 120;
67 h = 160;
68 x = (win_w / 2) - (w / 2);
69 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
70 y = (win_h / 2) - (h / 2);
71 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
72 if (o_images[i])
73 eo_do(o_images[i], evas_obj_position_set(x, y));
74 }
75 if (o_mask)
76 eo_do(o_mask, evas_obj_text_text_set(strs[rnd() % (sizeof(strs) / sizeof(char *))]),
77 evas_obj_color_set(255, 255, 255, 255),
78 evas_obj_size_get(&w, &h),
79 evas_obj_position_set((win_w - w) / 2, (win_h - h) / 2));
80 FPS_STD(NAME);
81}
82
83/* prepend special key handlers if interactive (before STD) */
84static void _key(char *key)
85{
86 KEY_STD;
87}
88
89
90
91
92
93
94
95
96
97
98
99
100/* template stuff - ignore */
101# endif
102#endif
103
104#ifdef UI
105_ui_menu_item_add(ICON, NAME, FNAME);
106#endif
107
108#ifdef PROTO
109void FNAME(void);
110#endif
111
112#ifndef PROTO
113# ifndef UI
114void FNAME(void)
115{
116 ui_func_set(_key, _loop);
117 _setup();
118}
119# endif
120#endif
121#undef FNAME
122#undef NAME
123#undef ICON
diff --git a/src/bin/image_mask_14.c b/src/bin/image_mask_14.c
deleted file mode 100644
index 235aecd..0000000
--- a/src/bin/image_mask_14.c
+++ /dev/null
@@ -1,121 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_14
7#define NAME "Image Mask 14"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120, 160),
42 evas_obj_size_set(120, 160),
43 evas_obj_image_smooth_scale_set(1),
44 evas_obj_clip_set(o_mask),
45 evas_obj_visibility_set(EINA_TRUE));
46 }
47 done = 0;
48}
49
50/* cleanup */
51static void _cleanup(void)
52{
53 int i;
54 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
55 eo_del(o_mask);
56}
57
58/* loop - do things */
59static void _loop(double t, int f)
60{
61 int i;
62 Evas_Coord x, y, w, h, w0, h0;
63 for (i = 0; i < OBNUM; i++)
64 {
65 w0 = 80;
66 h0 = 80;
67 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
68 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
69 x = (win_w / 2) - (w / 2);
70 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
71 y = (win_h / 2) - (h / 2);
72 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
73 if (o_images[i])
74 eo_do(o_images[i], evas_obj_position_set(x, y),
75 evas_obj_size_set(w, h),
76 evas_obj_image_fill_set(0, 0, w, h));
77 }
78 FPS_STD(NAME);
79}
80
81/* prepend special key handlers if interactive (before STD) */
82static void _key(char *key)
83{
84 KEY_STD;
85}
86
87
88
89
90
91
92
93
94
95
96
97
98/* template stuff - ignore */
99# endif
100#endif
101
102#ifdef UI
103_ui_menu_item_add(ICON, NAME, FNAME);
104#endif
105
106#ifdef PROTO
107void FNAME(void);
108#endif
109
110#ifndef PROTO
111# ifndef UI
112void FNAME(void)
113{
114 ui_func_set(_key, _loop);
115 _setup();
116}
117# endif
118#endif
119#undef FNAME
120#undef NAME
121#undef ICON
diff --git a/src/bin/image_mask_15.c b/src/bin/image_mask_15.c
deleted file mode 100644
index 51f868d..0000000
--- a/src/bin/image_mask_15.c
+++ /dev/null
@@ -1,121 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_15
7#define NAME "Image Mask 15"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120, 160),
42 evas_obj_size_set(120, 160),
43 evas_obj_image_smooth_scale_set(0),
44 evas_obj_clip_set(o_mask),
45 evas_obj_visibility_set(EINA_TRUE));
46 }
47 done = 0;
48}
49
50/* cleanup */
51static void _cleanup(void)
52{
53 int i;
54 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
55 eo_del(o_mask);
56}
57
58/* loop - do things */
59static void _loop(double t, int f)
60{
61 int i;
62 Evas_Coord x, y, w, h, w0, h0;
63 for (i = 0; i < OBNUM; i++)
64 {
65 w0 = 80;
66 h0 = 80;
67 w = 5 + ((1.0 + cos((double)(f + (i * 10)) / (7.4 * SLOW) )) * w0 * 2);
68 h = 5 + ((1.0 + sin((double)(f + (i * 19)) / (12.6 * SLOW) )) * h0 * 2);
69 x = (win_w / 2) - (w / 2);
70 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w0 / 2);
71 y = (win_h / 2) - (h / 2);
72 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h0 / 2);
73 if (o_images[i])
74 eo_do(o_images[i], evas_obj_position_set(x, y),
75 evas_obj_size_set(w, h),
76 evas_obj_image_fill_set(0, 0, w, h));
77 }
78 FPS_STD(NAME);
79}
80
81/* prepend special key handlers if interactive (before STD) */
82static void _key(char *key)
83{
84 KEY_STD;
85}
86
87
88
89
90
91
92
93
94
95
96
97
98/* template stuff - ignore */
99# endif
100#endif
101
102#ifdef UI
103_ui_menu_item_add(ICON, NAME, FNAME);
104#endif
105
106#ifdef PROTO
107void FNAME(void);
108#endif
109
110#ifndef PROTO
111# ifndef UI
112void FNAME(void)
113{
114 ui_func_set(_key, _loop);
115 _setup();
116}
117# endif
118#endif
119#undef FNAME
120#undef NAME
121#undef ICON
diff --git a/src/bin/image_mask_2.c b/src/bin/image_mask_2.c
deleted file mode 100644
index ac8ad56..0000000
--- a/src/bin/image_mask_2.c
+++ /dev/null
@@ -1,115 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_2
7#define NAME "Image Mask 2"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o;
24 for (i = 0; i < OBNUM; i+= 2)
25 {
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_images[i] = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160),
32 evas_obj_visibility_set(EINA_TRUE));
33
34 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
35 o_images[i + 1] = o;
36 if (o)
37 eo_do(o, evas_obj_image_file_set(build_path("e-logo-2.png"), NULL),
38 evas_obj_image_fill_set(0, 0, 120, 160),
39 evas_obj_size_set(120, 160),
40 evas_obj_visibility_set(EINA_TRUE));
41 if (o_images[i])
42 eo_do(o_images[i], evas_obj_clip_set(o));
43 }
44 done = 0;
45}
46
47/* cleanup */
48static void _cleanup(void)
49{
50 int i;
51 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
52}
53
54/* loop - do things */
55static void _loop(double t, int f)
56{
57 int i;
58 Evas_Coord x, y, w, h;
59 for (i = 0; i < OBNUM; i+= 2)
60 {
61 w = 120;
62 h = 160;
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
67 if (o_images[i])
68 eo_do(o_images[i], evas_obj_position_set(x, y));
69 if (o_images[i + 1])
70 eo_do(o_images[i + 1], evas_obj_position_set(x, y));
71 }
72 FPS_STD(NAME);
73}
74
75/* prepend special key handlers if interactive (before STD) */
76static void _key(char *key)
77{
78 KEY_STD;
79}
80
81
82
83
84
85
86
87
88
89
90
91
92/* template stuff - ignore */
93# endif
94#endif
95
96#ifdef UI
97_ui_menu_item_add(ICON, NAME, FNAME);
98#endif
99
100#ifdef PROTO
101void FNAME(void);
102#endif
103
104#ifndef PROTO
105# ifndef UI
106void FNAME(void)
107{
108 ui_func_set(_key, _loop);
109 _setup();
110}
111# endif
112#endif
113#undef FNAME
114#undef NAME
115#undef ICON
diff --git a/src/bin/image_mask_3.c b/src/bin/image_mask_3.c
deleted file mode 100644
index 1a1a0d1..0000000
--- a/src/bin/image_mask_3.c
+++ /dev/null
@@ -1,115 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_3
7#define NAME "Image Mask 3"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18
19/* setup */
20static void _setup(void)
21{
22 int i;
23 Evas_Object *o;
24 for (i = 0; i < OBNUM; i+= 2)
25 {
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_images[i] = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-2.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160),
32 evas_obj_visibility_set(EINA_TRUE));
33
34 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
35 o_images[i + 1] = o;
36 if (o)
37 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
38 evas_obj_image_fill_set(0, 0, 120, 160),
39 evas_obj_size_set(120, 160),
40 evas_obj_visibility_set(EINA_TRUE));
41 if (o_images[i])
42 eo_do(o_images[i], evas_obj_clip_set(o));
43 }
44 done = 0;
45}
46
47/* cleanup */
48static void _cleanup(void)
49{
50 int i;
51 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
52}
53
54/* loop - do things */
55static void _loop(double t, int f)
56{
57 int i;
58 Evas_Coord x, y, w, h;
59 for (i = 0; i < OBNUM; i+= 2)
60 {
61 w = 120;
62 h = 160;
63 x = (win_w / 2) - (w / 2);
64 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
65 y = (win_h / 2) - (h / 2);
66 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
67 if (o_images[i])
68 eo_do(o_images[i], evas_obj_position_set(x, y));
69 if (o_images[i + 1])
70 eo_do(o_images[i + 1], evas_obj_position_set(x, y));
71 }
72 FPS_STD(NAME);
73}
74
75/* prepend special key handlers if interactive (before STD) */
76static void _key(char *key)
77{
78 KEY_STD;
79}
80
81
82
83
84
85
86
87
88
89
90
91
92/* template stuff - ignore */
93# endif
94#endif
95
96#ifdef UI
97_ui_menu_item_add(ICON, NAME, FNAME);
98#endif
99
100#ifdef PROTO
101void FNAME(void);
102#endif
103
104#ifndef PROTO
105# ifndef UI
106void FNAME(void)
107{
108 ui_func_set(_key, _loop);
109 _setup();
110}
111# endif
112#endif
113#undef FNAME
114#undef NAME
115#undef ICON
diff --git a/src/bin/image_mask_4.c b/src/bin/image_mask_4.c
deleted file mode 100644
index 90861f0..0000000
--- a/src/bin/image_mask_4.c
+++ /dev/null
@@ -1,116 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_4
7#define NAME "Image Mask 4"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120, 160),
42 evas_obj_size_set(120, 160),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 Evas_Coord x, y, w, h;
62 for (i = 0; i < OBNUM; i++)
63 {
64 w = 120;
65 h = 160;
66 x = (win_w / 2) - (w / 2);
67 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
68 y = (win_h / 2) - (h / 2);
69 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
70 if (o_images[i])
71 eo_do(o_images[i], evas_obj_position_set(x, y));
72 }
73 FPS_STD(NAME);
74}
75
76/* prepend special key handlers if interactive (before STD) */
77static void _key(char *key)
78{
79 KEY_STD;
80}
81
82
83
84
85
86
87
88
89
90
91
92
93/* template stuff - ignore */
94# endif
95#endif
96
97#ifdef UI
98_ui_menu_item_add(ICON, NAME, FNAME);
99#endif
100
101#ifdef PROTO
102void FNAME(void);
103#endif
104
105#ifndef PROTO
106# ifndef UI
107void FNAME(void)
108{
109 ui_func_set(_key, _loop);
110 _setup();
111}
112# endif
113#endif
114#undef FNAME
115#undef NAME
116#undef ICON
diff --git a/src/bin/image_mask_5.c b/src/bin/image_mask_5.c
deleted file mode 100644
index ed6956d..0000000
--- a/src/bin/image_mask_5.c
+++ /dev/null
@@ -1,116 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_5
7#define NAME "Image Mask 5"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-2.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160),
32 evas_obj_position_set((win_w - 120) / 2, (win_h - 160) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120, 160),
42 evas_obj_size_set(120, 160),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 Evas_Coord x, y, w, h;
62 for (i = 0; i < OBNUM; i++)
63 {
64 w = 120;
65 h = 160;
66 x = (win_w / 2) - (w / 2);
67 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
68 y = (win_h / 2) - (h / 2);
69 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
70 if (o_images[i])
71 eo_do(o_images[i], evas_obj_position_set(x, y));
72 }
73 FPS_STD(NAME);
74}
75
76/* prepend special key handlers if interactive (before STD) */
77static void _key(char *key)
78{
79 KEY_STD;
80}
81
82
83
84
85
86
87
88
89
90
91
92
93/* template stuff - ignore */
94# endif
95#endif
96
97#ifdef UI
98_ui_menu_item_add(ICON, NAME, FNAME);
99#endif
100
101#ifdef PROTO
102void FNAME(void);
103#endif
104
105#ifndef PROTO
106# ifndef UI
107void FNAME(void)
108{
109 ui_func_set(_key, _loop);
110 _setup();
111}
112# endif
113#endif
114#undef FNAME
115#undef NAME
116#undef ICON
diff --git a/src/bin/image_mask_6.c b/src/bin/image_mask_6.c
deleted file mode 100644
index eefb093..0000000
--- a/src/bin/image_mask_6.c
+++ /dev/null
@@ -1,116 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_6
7#define NAME "Image Mask 6"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120 / 2, 160 / 2),
42 evas_obj_size_set(120 / 2, 160 / 2),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 Evas_Coord x, y, w, h;
62 for (i = 0; i < OBNUM; i++)
63 {
64 w = 120 / 2;
65 h = 160 / 2;
66 x = (win_w / 2) - (w / 2);
67 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
68 y = (win_h / 2) - (h / 2);
69 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
70 if (o_images[i])
71 eo_do(o_images[i], evas_obj_position_set(x, y));
72 }
73 FPS_STD(NAME);
74}
75
76/* prepend special key handlers if interactive (before STD) */
77static void _key(char *key)
78{
79 KEY_STD;
80}
81
82
83
84
85
86
87
88
89
90
91
92
93/* template stuff - ignore */
94# endif
95#endif
96
97#ifdef UI
98_ui_menu_item_add(ICON, NAME, FNAME);
99#endif
100
101#ifdef PROTO
102void FNAME(void);
103#endif
104
105#ifndef PROTO
106# ifndef UI
107void FNAME(void)
108{
109 ui_func_set(_key, _loop);
110 _setup();
111}
112# endif
113#endif
114#undef FNAME
115#undef NAME
116#undef ICON
diff --git a/src/bin/image_mask_7.c b/src/bin/image_mask_7.c
deleted file mode 100644
index d197ce8..0000000
--- a/src/bin/image_mask_7.c
+++ /dev/null
@@ -1,122 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_7
7#define NAME "Image Mask 7"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[OBNUM];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-2.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 120, 160),
31 evas_obj_size_set(120, 160),
32 evas_obj_position_set((win_w - 120) / 2, (win_h - 160) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < OBNUM; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("logo.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 120, 160),
42 evas_obj_size_set(120, 160),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < OBNUM; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 Evas_Coord x, y, w, h;
62 for (i = 0; i < OBNUM; i++)
63 {
64 w = 120;
65 h = 160;
66 x = (win_w / 2) - (w / 2);
67 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
68 y = (win_h / 2) - (h / 2);
69 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
70 if (o_images[i])
71 eo_do(o_images[i], evas_obj_position_set(x, y));
72 }
73 w = 10 + (110 + (110 * sin((double)(f) / (14.3 * SLOW))));
74 h = 10 + (150 + (150 * sin((double)(f) / (21.7 * SLOW))));
75 if (o_mask)
76 eo_do(o_mask, evas_obj_image_fill_set(0, 0, w, h),
77 evas_obj_size_set(w, h),
78 evas_obj_position_set((win_w - w) / 2, (win_h - h) / 2));
79 FPS_STD(NAME);
80}
81
82/* prepend special key handlers if interactive (before STD) */
83static void _key(char *key)
84{
85 KEY_STD;
86}
87
88
89
90
91
92
93
94
95
96
97
98
99/* template stuff - ignore */
100# endif
101#endif
102
103#ifdef UI
104_ui_menu_item_add(ICON, NAME, FNAME);
105#endif
106
107#ifdef PROTO
108void FNAME(void);
109#endif
110
111#ifndef PROTO
112# ifndef UI
113void FNAME(void)
114{
115 ui_func_set(_key, _loop);
116 _setup();
117}
118# endif
119#endif
120#undef FNAME
121#undef NAME
122#undef ICON
diff --git a/src/bin/image_mask_8.c b/src/bin/image_mask_8.c
deleted file mode 100644
index 3e027d2..0000000
--- a/src/bin/image_mask_8.c
+++ /dev/null
@@ -1,116 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_8
7#define NAME "Image Mask 8"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[1];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < 1; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("texture.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 500, 444),
42 evas_obj_size_set(win_w * 4, win_h * 4),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < 1; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 Evas_Coord x, y, w, h;
62 for (i = 0; i < 1; i++)
63 {
64 w = win_w * 4;
65 h = win_h * 4;
66 x = (win_w / 2) - (w / 2);
67 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
68 y = (win_h / 2) - (h / 2);
69 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2);
70 if (o_images[i])
71 eo_do(o_images[i], evas_obj_position_set(x, y));
72 }
73 FPS_STD(NAME);
74}
75
76/* prepend special key handlers if interactive (before STD) */
77static void _key(char *key)
78{
79 KEY_STD;
80}
81
82
83
84
85
86
87
88
89
90
91
92
93/* template stuff - ignore */
94# endif
95#endif
96
97#ifdef UI
98_ui_menu_item_add(ICON, NAME, FNAME);
99#endif
100
101#ifdef PROTO
102void FNAME(void);
103#endif
104
105#ifndef PROTO
106# ifndef UI
107void FNAME(void)
108{
109 ui_func_set(_key, _loop);
110 _setup();
111}
112# endif
113#endif
114#undef FNAME
115#undef NAME
116#undef ICON
diff --git a/src/bin/image_mask_9.c b/src/bin/image_mask_9.c
deleted file mode 100644
index da7e0ff..0000000
--- a/src/bin/image_mask_9.c
+++ /dev/null
@@ -1,127 +0,0 @@
1#undef FNAME
2#undef NAME
3#undef ICON
4
5/* metadata */
6#define FNAME image_mask_9
7#define NAME "Image Mask 9"
8#define ICON "blend.png"
9
10#ifndef PROTO
11# ifndef UI
12# include "main.h"
13
14/* standard var */
15static int done = 0;
16/* private data */
17static Evas_Object *o_images[1];
18static Evas_Object *o_mask;
19
20/* setup */
21static void _setup(void)
22{
23 int i;
24 Evas_Object *o;
25
26 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
27 o_mask = o;
28 if (o)
29 eo_do(o, evas_obj_image_file_set(build_path("e-logo-mask.png"), NULL),
30 evas_obj_image_fill_set(0, 0, 720, 420),
31 evas_obj_size_set(720, 420),
32 evas_obj_position_set((win_w - 720) / 2, (win_h - 420) / 2),
33 evas_obj_visibility_set(EINA_TRUE));
34
35 for (i = 0; i < 1; i++)
36 {
37 o = eo_add(EVAS_OBJ_IMAGE_CLASS, evas);
38 o_images[i] = o;
39 if (o)
40 eo_do(o, evas_obj_image_file_set(build_path("texture.png"), NULL),
41 evas_obj_image_fill_set(0, 0, 500, 444),
42 evas_obj_size_set(win_w * 4, win_h * 4),
43 evas_obj_clip_set(o_mask),
44 evas_obj_visibility_set(EINA_TRUE));
45 }
46 done = 0;
47}
48
49/* cleanup */
50static void _cleanup(void)
51{
52 int i;
53 for (i = 0; i < 1; i++) eo_del(o_images[i]);
54 eo_del(o_mask);
55}
56
57/* loop - do things */
58static void _loop(double t, int f)
59{
60 int i;
61 static Evas_Map *m = NULL;
62 Evas_Coord x, y, w, h;
63 for (i = 0; i < 1; i++)
64 {
65 w = win_w * 4;
66 h = win_h * 4;
67 x = (win_w / 2) - (w / 2);
68 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (500 / 2);
69 y = (win_h / 2) - (h / 2);
70 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (444 / 2);
71 if (o_images[i])
72 eo_do(o_images[i], evas_obj_position_set(x, y));
73 }
74 if (!m) m = evas_map_new(4);
75
76 evas_map_util_points_populate_from_geometry(m,
77 (win_w - 720) / 2,
78 (win_h - 420) / 2,
79 720, 420, 0);
80 evas_map_util_rotate(m, f, win_w / 2, win_h / 2);
81 if (o_mask)
82 eo_do(o_mask, evas_obj_map_enable_set(1),
83 evas_obj_map_set(m));
84 FPS_STD(NAME);
85}
86
87/* prepend special key handlers if interactive (before STD) */
88static void _key(char *key)
89{
90 KEY_STD;
91}
92
93
94
95
96
97
98
99
100
101
102
103
104/* template stuff - ignore */
105# endif
106#endif
107
108#ifdef UI
109_ui_menu_item_add(ICON, NAME, FNAME);
110#endif
111
112#ifdef PROTO
113void FNAME(void);
114#endif
115
116#ifndef PROTO
117# ifndef UI
118void FNAME(void)
119{
120 ui_func_set(_key, _loop);
121 _setup();
122}
123# endif
124#endif
125#undef FNAME
126#undef NAME
127#undef ICON