53 lines
929 B
C++
53 lines
929 B
C++
#undef FNAME
|
|
#undef NAME
|
|
#undef ICON
|
|
|
|
/* metadata */
|
|
#define FNAME rect_blend_start
|
|
#define NAME "Rect Blend"
|
|
#define ICON "rect.png"
|
|
|
|
#ifndef PROTO
|
|
# ifndef UI
|
|
# include "main.h"
|
|
|
|
/* standard var */
|
|
static int done = 0;
|
|
/* private data */
|
|
static efl::eina::list<evas::image> images;
|
|
|
|
/* setup */
|
|
static void _setup(void)
|
|
{
|
|
int i;
|
|
evas::canvas canvas(::eo_ref(G_evas));
|
|
srnd();
|
|
for (i = 0; i < OBNUM; i++)
|
|
{
|
|
int r, g, b, a;
|
|
|
|
evas::image o(efl::eo::parent = canvas);
|
|
images.push_back(o);
|
|
a = rnd()&0xff;
|
|
r = ((rnd()&0xff) * a) / 255;
|
|
g = ((rnd()&0xff) * a) / 255;
|
|
b = ((rnd()&0xff) * a) / 255;
|
|
eo_do(o,
|
|
evas_obj_color_set(r, g, b, a),
|
|
evas_obj_visibility_set(EINA_TRUE));
|
|
}
|
|
done = 0;
|
|
}
|
|
|
|
/* cleanup */
|
|
static void _cleanup(void)
|
|
{
|
|
int i;
|
|
for (i = 0; i < OBNUM; i++) eo_del(images[i]);
|
|
|
|
extern "C" static void _key(char *key)
|
|
{
|
|
KEY_STD;
|
|
}
|
|
|