1 #define DOT_PROG(NUM, S1, S2) \
4 action, STATE_SET "end" 0.0; \
5 transition, DECELERATE S1; \
11 action, STATE_SET "default" 0.0; \
13 transition, LINEAR 0.0; \
14 after, "ani"NUM".3"; \
19 action, STATE_SET "end" 0.0; \
20 transition, DECELERATE S2; \
22 after, "ani"NUM".4"; \
26 action, STATE_SET "default" 0.0; \
28 transition, LINEAR 0.0; \
29 after, "ani"NUM".1"; \
33 name, "ani"NUM".stop"; \
34 action, ACTION_STOP; \
35 target, "ani"NUM".1"; \
36 target, "ani"NUM".2"; \
37 target, "ani"NUM".3"; \
38 target, "ani"NUM".4"; \
39 after, "ani"NUM".reset"; \
42 name, "ani"NUM".init"; \
45 after, "ani"NUM".stop"; \
48 name, "ani"NUM".reset"; \
49 action, STATE_SET "default" 0.0; \
51 transition, LINEAR 0.0; \
52 /* the following line breaks the animation, since the
53 * program's execution is delayed by 0.5-1.0 seconds.
54 * This kinda spoils the effect though :/
55 * rewrite with embryo! :)
59 name, "ani"NUM".playing"; \
60 signal, "PLAYBACK_STATE_PLAYING"; \
62 after, "ani"NUM".1"; \
65 name, "ani"NUM".paused"; \
66 signal, "PLAYBACK_STATE_PAUSED"; \
68 after, "ani"NUM".stop"; \
71 name, "ani"NUM".stopped"; \
72 signal, "PLAYBACK_STATE_STOPPED"; \
74 after, "ani"NUM".stop"; \
77 DOT_PROG(0, 1.15, .85)
80 DOT_PROG(3, 1.25, .75)