aboutsummaryrefslogtreecommitdiffstats
path: root/src/examples/edje/edje-map-color.edc
blob: b4eb23e4e00454b37b60b19c8a1aa1e73e13c94d (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
collections {
   images{
      image: "bubble-blue.png" COMP;
   }
   group {
      name: "map_example_group";
      parts {
         part {
            type: IMAGE;
            name: "bg";
            description {
               state: "default" 0.0;
               image {
                  normal: "bubble-blue.png";
               }
               rel1.relative: 0.25 0.25;
               rel2.relative: 0.75 0.75;
            }
         }
         part {
            type: RECT;
            name: "rectangle";
            description {
               state: "default" 0.0;
               color: 255 255 255 255;
               map {
                  on: 1;
                  color: 0 0 0 0 0;
                  color: 1 255 255 255 255;
                  color: 2 255 255 255 255;
                  color: 3 255 255 255 255;
               }
            }
            description { state: "moved" 0.0;
               state: "moved" 0.0;
               color: 255 255 255 255;
               map {
                  on: 1;
                  color: 0 0 0 255 255;
                  color: 1 0 0 255 255;
                  color: 2 0 0 0 0;
                  color: 3 0 0 255 255;
               }
            }
            description {
               state: "rotated" 0.0;
               color: 255 255 255 255;
               map {
                  on: 1;
                  color: 0 0 125 255 255;
                  color: 1 255 0 255 128;
                  color: 2 0 125 255 255;
                  color: 3 255 0 255 128;
                  rotation {
                     x: 65.0;
                     y: 95.0;
                     z: 95.0;
                  }
               }
            }
         }
      }
      programs {
         program {
            name: "start_program";
            signal: "load";
            source: "";
            transition: ACCELERATE 0.5;
            action: STATE_SET "default" 0.0;
            target: "rectangle";
            after: "continue_program";
         }
         program {
            name: "continue_program";
            transition: DECELERATE 3;
            action: STATE_SET "moved" 0.0;
            target: "rectangle";
            after: "rotate_program";
         }
         program {
            name: "rotate_program";
            transition: DECELERATE 4;
            action: STATE_SET "rotated" 0.0;
            target: "rectangle";
            after: "start_program";
         }
      }
   }
}