mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
4dd11d6915
The whole point of having the Animator class is that the developer can describe a complex animation using ClutterScript. Hence, ClutterAnimator should hook into the Script machinery and parse a specific description format for its keys.
30 lines
522 B
JSON
30 lines
522 B
JSON
[
|
|
{
|
|
"type" : "ClutterRectangle",
|
|
"id" : "foo",
|
|
"x" : 0,
|
|
"y" : 0,
|
|
"width" : 100,
|
|
"height" : 100
|
|
},
|
|
{
|
|
"type" : "ClutterAnimator",
|
|
"id" : "animator",
|
|
"duration" : 1000,
|
|
|
|
"properties" : [
|
|
{
|
|
"object" : "foo",
|
|
"name" : "x",
|
|
"ease-in" : true,
|
|
"interpolation" : "linear",
|
|
"keys" : [
|
|
[ 0.0, "easeInCubic", 100.0 ],
|
|
[ 0.2, "easeOutCubic", 150.0 ],
|
|
[ 0.8, "linear", 200.0 ]
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|