[libadwaita/wip/exalm/tabs: 3/12] animation: Add adw_ease_in_cubic()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/tabs: 3/12] animation: Add adw_ease_in_cubic()
- Date: Mon, 10 May 2021 10:10:03 +0000 (UTC)
commit 6dfc6dfd3c84d6fa67543cb5d60bdd0514cd5b26
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Sep 13 02:14:18 2020 +0500
animation: Add adw_ease_in_cubic()
src/adw-animation-private.h | 1 +
src/adw-animation.c | 6 ++++++
2 files changed, 7 insertions(+)
---
diff --git a/src/adw-animation-private.h b/src/adw-animation-private.h
index dc061fe..c273580 100644
--- a/src/adw-animation-private.h
+++ b/src/adw-animation-private.h
@@ -46,5 +46,6 @@ double adw_animation_get_value (AdwAnimation *self);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AdwAnimation, adw_animation_unref)
double adw_lerp (double a, double b, double t);
+double adw_ease_in_cubic (double t);
G_END_DECLS
diff --git a/src/adw-animation.c b/src/adw-animation.c
index eea34f7..fcddea1 100644
--- a/src/adw-animation.c
+++ b/src/adw-animation.c
@@ -276,3 +276,9 @@ adw_ease_out_cubic (double t)
double p = t - 1;
return p * p * p + 1;
}
+
+double
+adw_ease_in_cubic (gdouble t)
+{
+ return t * t * t;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]