Etch *e;
e = etch_new();
etch_timer_fps_set(e, 30);
a = etch_animation_add(e, ETCH_UINT32, _animation_cb, NULL);
k = etch_animation_keyframe_add(a);
etch_animation_keyframe_type_set(k, ETCH_ANIMATION_COSIN);
etch_animation_keyframe_value_set(k, 10);
etch_animation_keyframe_time_set(k, 3, 3015);
Note that this library is totally agnostic about the main loop handler, you just need to call
etch_timer_tick(e) to update the internal system.The example below is an application that transforms an evas' image and moves it based on a couple of Etch's animations and Enesim's transformation functions.