projects
/
profile
/
ivi
/
clutter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c95b37
)
[tests] Animate the color during easing
author
Emmanuele Bassi
<ebassi@linux.intel.com>
Wed, 11 Mar 2009 22:12:36 +0000
(22:12 +0000)
committer
Emmanuele Bassi
<ebassi@linux.intel.com>
Wed, 11 Mar 2009 22:12:36 +0000
(22:12 +0000)
The easing modes test should also tweak the color to show the
progress of the animation.
tests/interactive/test-easing.c
patch
|
blob
|
history
diff --git
a/tests/interactive/test-easing.c
b/tests/interactive/test-easing.c
index
d625d6c
..
a8ff176
100644
(file)
--- a/
tests/interactive/test-easing.c
+++ b/
tests/interactive/test-easing.c
@@
-83,13
+83,20
@@
on_button_press (ClutterActor *actor,
{
ClutterAnimation *animation;
ClutterAnimationMode cur_mode;
+ ClutterColor color = { 0, 0, 0, 255 };
cur_mode = easing_modes[current_mode].mode;
+ clutter_color_from_hls (&color,
+ g_random_double_range (0.0, 360.0),
+ g_random_double_range (0.0, 1.0),
+ g_random_double_range (0.0, 1.0));
+
animation =
clutter_actor_animate (rectangle, cur_mode, 2000,
"x", event->x,
"y", event->y,
+ "color", &color,
NULL);
}