summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Niklaus <marex@opencompositing.org>2008-03-07 22:44:27 +0100
committerPatrick Niklaus <marex@opencompositing.org>2008-03-07 22:44:27 +0100
commit05e5e766419db6e2d6cf680942d0e1b80c109381 (patch)
treed63e5fa542fe0f211045b390f2a35808f1c0db32
parentfa33a087e5560ad1184eb8bf9c51d7304b5d28b5 (diff)
downloadgroup-05e5e766419db6e2d6cf680942d0e1b80c109381.tar.gz
group-05e5e766419db6e2d6cf680942d0e1b80c109381.tar.bz2
Fixed pulse animation
-rw-r--r--cairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cairo.c b/cairo.c
index 342ab11..9f3e5fd 100644
--- a/cairo.c
+++ b/cairo.c
@@ -557,7 +557,7 @@ groupRenderTabBarBackground(GroupSelection *group)
animationProgress = bar->bgAnimationTime /
(groupGetPulseTime (s) * 1000.0);
- alpha = fabs (sin (PI * animationProgress)) * 0.75;
+ alpha = sin ((2 * PI * animationProgress) - 1.55)*0.5 + 0.5;
if (alpha <= 0)
break;