summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2020-02-14 20:34:39 +0900
committerHermet Park <hermetpark@gmail.com>2020-02-14 20:34:39 +0900
commit1df50a772c43c22667e1c0568f9f4e70a81d86d7 (patch)
treeec69490d8f27fc8e52a7290f0253278091684367
parent244997bb19ee13154070d3bb9d610568f6abe976 (diff)
--
-rw-r--r--filter/makefile2
-rwxr-xr-xfilter/testbin46112 -> 0 bytes
-rw-r--r--filter/test.c106
3 files changed, 0 insertions, 108 deletions
diff --git a/filter/makefile b/filter/makefile
deleted file mode 100644
index c07ff17..0000000
--- a/filter/makefile
+++ /dev/null
@@ -1,2 +0,0 @@
1all:
2 gcc -o test test.c -g `pkg-config --cflags --libs elementary rlottie`
diff --git a/filter/test b/filter/test
deleted file mode 100755
index e589f37..0000000
--- a/filter/test
+++ /dev/null
Binary files differ
diff --git a/filter/test.c b/filter/test.c
deleted file mode 100644
index 68a5869..0000000
--- a/filter/test.c
+++ /dev/null
@@ -1,106 +0,0 @@
1#define EFL_BETA_API_SUPPORT 1
2#define EFL_EO_API_SUPPORT 1
3
4#include <Elementary.h>
5
6#define WIDTH 1920
7#define HEIGHT 1000
8
9void
10win_del(void *data, Evas_Object *o, void *ev)
11{
12 elm_exit();
13}
14
15Eo *text, *text2, *text3, *text4, *text5;
16
17Eina_Bool _anim_cb(void *data)
18{
19 char buf[100];
20
21 for (int i = 0; i < 100; i++)
22 buf[i] = rand() % 26 + 'a';
23 buf[99] = '\0';
24
25 evas_object_text_text_set(text, buf);
26#if 0
27 evas_object_text_text_set(text2, buf);
28 evas_object_text_text_set(text3, buf);
29 evas_object_text_text_set(text4, buf);
30 evas_object_text_text_set(text5, buf);
31#endif
32 return 1;
33}
34
35int
36main(int argc, char **argv)
37{
38 elm_init(argc, argv);
39
40 elm_config_accel_preference_set("gl");
41
42 Eo *win = elm_win_util_standard_add(NULL, "test");
43 evas_object_smart_callback_add(win, "delete,request", win_del, 0);
44 elm_win_autodel_set(win, 1);
45 Eo *evas = evas_object_evas_get(win);
46
47 {
48 text = evas_object_text_add(evas_object_evas_get(win));
49 evas_object_resize(text, WIDTH, HEIGHT);
50 evas_object_text_text_set(text, "RICKY WAS A YOUNG BOY, HE HAD A HEART OF STONE, LIVED 9 TO 5 AND WORKED HIS FINGERS TO THE BONE.");
51 evas_object_text_font_set(text, "Sans", 30);
52 evas_object_show(text);
53 efl_gfx_filter_program_set(text, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name");
54 }
55#if 0
56 {
57 text2 = evas_object_text_add(evas_object_evas_get(win));
58 evas_object_resize(text2, WIDTH, HEIGHT);
59 evas_object_move(text2, 0, 100);
60 evas_object_text_text_set(text2, "RICKY WAS A YOUNG BOY, HE HAD A HEART OF STONE, LIVED 9 TO 5 AND WORKED HIS FINGERS TO THE BONE.");
61 evas_object_text_font_set(text2, "Sans", 30);
62 evas_object_show(text2);
63 efl_gfx_filter_program_set(text2, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name");
64 }
65
66 {
67 text3 = evas_object_text_add(evas_object_evas_get(win));
68 evas_object_resize(text3, WIDTH, HEIGHT);
69 evas_object_move(text3, 0, 200);
70 evas_object_text_text_set(text3, "RICKY WAS A YOUNG BOY, HE HAD A HEART OF STONE, LIVED 9 TO 5 AND WORKED HIS FINGERS TO THE BONE.");
71 evas_object_text_font_set(text3, "Sans", 30);
72 evas_object_show(text3);
73 efl_gfx_filter_program_set(text3, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name");
74 }
75
76 {
77 text4 = evas_object_text_add(evas_object_evas_get(win));
78 evas_object_resize(text4, WIDTH, HEIGHT);
79 evas_object_move(text4, 0, 300);
80 evas_object_text_text_set(text4, "RICKY WAS A YOUNG BOY, HE HAD A HEART OF STONE, LIVED 9 TO 5 AND WORKED HIS FINGERS TO THE BONE.");
81 evas_object_text_font_set(text4, "Sans", 30);
82 evas_object_show(text4);
83 efl_gfx_filter_program_set(text4, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name");
84 }
85
86 {
87 text5 = evas_object_text_add(evas_object_evas_get(win));
88 evas_object_resize(text5, WIDTH, HEIGHT);
89 evas_object_move(text5, 0, 400);
90 evas_object_text_text_set(text5, "RICKY WAS A YOUNG BOY, HE HAD A HEART OF STONE, LIVED 9 TO 5 AND WORKED HIS FINGERS TO THE BONE.");
91 evas_object_text_font_set(text5, "Sans", 30);
92 evas_object_show(text5);
93 efl_gfx_filter_program_set(text5, "buffer:a(alpha); buffer:fat(alpha); buffer:rgbfat(rgba); curve (0:255-255:0, dst = a); blend (a, color = #00ca00ff); grow (1, dst = fat); blur (3, src = fat, color=#0000b9ff, ox = -2, oy = -2, dst = rgbfat); mask (a, src = rgbfat);padding_set(t=5);", "name");
94 }
95#endif
96
97// ecore_animator_add(_anim_cb, 0);
98 evas_object_resize(win, WIDTH, HEIGHT);
99 evas_object_show(win);
100
101 elm_run();
102 elm_shutdown();
103
104 return 0;
105}
106