[script] Parse easing modes by name

The easing modes for a ClutterAlpha can either be parsed by using
the enumeration "nickname" (the shorthand form of the enumeration
value) or by using the common naming policy used in other
animation frameworks, like:

        easeInCubic
        easeOutElastic
        easeInOutBounce
This commit is contained in:
Emmanuele Bassi
2009-01-20 18:24:58 +00:00
parent 268abcd786
commit ac1a0d568e
2 changed files with 83 additions and 31 deletions

View File

@ -43,7 +43,7 @@ static const gchar *test_behaviour =
" \"path\" : \"M 50 50 L 100 100\","
" \"alpha\" : {"
" \"timeline\" : \"main-timeline\","
" \"function\" : \"ramp\""
" \"mode\" : \"linear\""
" }"
" },"
" {"
@ -54,7 +54,7 @@ static const gchar *test_behaviour =
" \"axis\" : \"y-axis\","
" \"alpha\" : {"
" \"timeline\" : \"main-timeline\","
" \"function\" : \"sine\""
" \"mode\" : \"ease-in-sine\""
" }"
" },"
" {"
@ -64,7 +64,7 @@ static const gchar *test_behaviour =
" \"opacity-end\" : 0,"
" \"alpha\" : {"
" \"timeline\" : \"main-timeline\","
" \"function\" : \"ramp-inc\""
" \"mode\" : \"easeOutCubic\""
" }"
" }"
"]";