diff --git a/legacy/evas/test/evas_test.c b/legacy/evas/test/evas_test.c index ba858f05f6..c63d66ebbe 100644 --- a/legacy/evas/test/evas_test.c +++ b/legacy/evas/test/evas_test.c @@ -495,17 +495,29 @@ fn_grad(double v, double val, int no) static void fn_image(double v, double val, int no) { - static Evas_Object o_fn_images[8] = - {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}; + static Evas_Object o_fn_images[16]; static double last_val = 0; static int init = 0; + static double coords[16 * 2]; + int i; + if (!init) + { + init = 1; + + for (i = 0; i < 16; i++) + { + o_fn_images[i] = NULL; + coords[(i * 2) + 0] = ((1024 - 128) / 2) + ((rand() % 500) - 250); + coords[(i * 2) + 1] = ((768) / 2) + ((rand() % 200) - 0); + } + } if (no) { if (last_val != val) { - for (i = 0; i < 8; i++) + for (i = 0; i < 16; i++) { if (o_fn_images[i]) evas_del_object(evas_view, o_fn_images[i]); @@ -514,6 +526,30 @@ fn_image(double v, double val, int no) } return; } + for (i = 0; i < 16; i++) + { + double alpha; + + if (v < 1) + alpha = v; + else if (v < 2) + alpha = 1; + else alpha = (3 - v); + if (!o_fn_images[i]) + { + char buf[4096]; + + sprintf(buf, IMGDIR"evas_test_image_%i.png", i); + o_fn_images[i] = evas_add_image_from_file(evas_view, buf); + evas_set_layer(evas_view, o_fn_images[i], 99); + } + evas_set_color(evas_view, o_fn_images[i], 255, 255, 255, 255.0 * alpha); + evas_move(evas_view, o_fn_images[i], + coords[(i * 2) + 0] + (50 * cos((val * 2.7) + 3.4 + i)), + coords[(i * 2) + 1] + (20 * sin((val * 3.6) + 1.2 + i))); + evas_show(evas_view, o_fn_images[i]); + } + last_val = val; } diff --git a/legacy/evas/test/img/evas_test_image_0.png b/legacy/evas/test/img/evas_test_image_0.png new file mode 100644 index 0000000000..ecf6b064d1 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_0.png differ diff --git a/legacy/evas/test/img/evas_test_image_1.png b/legacy/evas/test/img/evas_test_image_1.png new file mode 100644 index 0000000000..34d4671d3c Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_1.png differ diff --git a/legacy/evas/test/img/evas_test_image_10.png b/legacy/evas/test/img/evas_test_image_10.png new file mode 100644 index 0000000000..8ef955e75d Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_10.png differ diff --git a/legacy/evas/test/img/evas_test_image_11.png b/legacy/evas/test/img/evas_test_image_11.png new file mode 100644 index 0000000000..502c3869be Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_11.png differ diff --git a/legacy/evas/test/img/evas_test_image_12.png b/legacy/evas/test/img/evas_test_image_12.png new file mode 100644 index 0000000000..533e84515c Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_12.png differ diff --git a/legacy/evas/test/img/evas_test_image_13.png b/legacy/evas/test/img/evas_test_image_13.png new file mode 100644 index 0000000000..c245e9a40b Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_13.png differ diff --git a/legacy/evas/test/img/evas_test_image_14.png b/legacy/evas/test/img/evas_test_image_14.png new file mode 100644 index 0000000000..b6f964afc4 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_14.png differ diff --git a/legacy/evas/test/img/evas_test_image_15.png b/legacy/evas/test/img/evas_test_image_15.png new file mode 100644 index 0000000000..6c078391e2 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_15.png differ diff --git a/legacy/evas/test/img/evas_test_image_2.png b/legacy/evas/test/img/evas_test_image_2.png new file mode 100644 index 0000000000..57d3027d95 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_2.png differ diff --git a/legacy/evas/test/img/evas_test_image_3.png b/legacy/evas/test/img/evas_test_image_3.png new file mode 100644 index 0000000000..512e6c64b3 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_3.png differ diff --git a/legacy/evas/test/img/evas_test_image_4.png b/legacy/evas/test/img/evas_test_image_4.png new file mode 100644 index 0000000000..8c2729a6f6 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_4.png differ diff --git a/legacy/evas/test/img/evas_test_image_5.png b/legacy/evas/test/img/evas_test_image_5.png new file mode 100644 index 0000000000..d4347a3176 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_5.png differ diff --git a/legacy/evas/test/img/evas_test_image_6.png b/legacy/evas/test/img/evas_test_image_6.png new file mode 100644 index 0000000000..9c750abd0f Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_6.png differ diff --git a/legacy/evas/test/img/evas_test_image_7.png b/legacy/evas/test/img/evas_test_image_7.png new file mode 100644 index 0000000000..7e48541676 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_7.png differ diff --git a/legacy/evas/test/img/evas_test_image_8.png b/legacy/evas/test/img/evas_test_image_8.png new file mode 100644 index 0000000000..e13bc77900 Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_8.png differ diff --git a/legacy/evas/test/img/evas_test_image_9.png b/legacy/evas/test/img/evas_test_image_9.png new file mode 100644 index 0000000000..857d9bdc6b Binary files /dev/null and b/legacy/evas/test/img/evas_test_image_9.png differ