Bounce animation in EDC file

This snipped demonstrates how to create a simple bounce animation in .edc files, without creating any C/C++ code.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
collections {
   group { name: "main";
      parts {
         part 
         { 
            name: "rectangle";
            type: RECT;
            mouse_events: 1;
            description{ 
               state: "default" 0.0;
               color: 200 200 200 255;
               rel1.relative: 0.4 0.45;
               rel2.relative: 0.6 0.55;
            }
            description{ 
               state: "large" 0.0;
               inherit: "default" 0.0;
               rel1.relative: 0.3 0.4;
               rel2.relative: 0.7 0.6;
            }
         }  
      }
      programs {
        program { name: "bounce1";
            signal: "mouse,up,*";
            source: "rectangle";
            action: STATE_SET "large" 0.0;
            transition: LINEAR 0.3;
            target: "rectangle";
            after: "bounce2";
        }
        program { name: "bounce2";
            action: STATE_SET "default" 0.0;
            transition: LINEAR 0.3;
            target: "rectangle";
        }
      }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX