[libadwaita/wip/exalm/tabs: 115/124] animation: Add adw_ease_in_cubic()




commit 82ddb195aa85718bf051ad95ded9f4802aeb1dec
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 14e9990..4554a4a 100644
--- a/src/adw-animation-private.h
+++ b/src/adw-animation-private.h
@@ -45,5 +45,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 b3b71db..d3cd1ab 100644
--- a/src/adw-animation.c
+++ b/src/adw-animation.c
@@ -268,3 +268,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]