Bounce animation in EDC file
This snipped demonstrates how to create a simple bounce animation in .edc files, without creating any C/C++ code.
12345678910111213141516171819202122232425262728293031323334353637collections {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";}}