Tweeny 4.1.0
A Tweening library for modern C++
Loading...
Searching...
No Matches

◆ quarticIn

detail::quarticInEasing quarticIn {}
inlineconstexpr

Quartic polynomial easing (t⁴) with strong acceleration.

The quarticIn easing function uses a power-4 curve for acceleration, creating pronounced easing that's stronger than cubic but less extreme than exponential.

Characteristics:

  • Strong acceleration curve
  • Polynomial with power of 4
  • Very slow start, rapid finish
  • More dramatic than cubic

This easing is ideal for:

  • Dramatic entrances: Elements that burst into view
  • Emphasis: Drawing attention to motion start
  • Game animations: Action-oriented interfaces
  • Long animations: Over 500ms where strong curves work

Mathematically: f(t) = t⁴

// Panel sliding in with emphasis
auto x = tweeny::from(-400.0f)
.to(0.0f)
.during(50U)
.build();
tweeny_builder< true, FirstValue, RemainingValues... > to(const FirstValue &firstComponent, const RemainingValues &... remainingComponents) &
Adds a target keyframe to the tween.
Definition tweeny.h:109
tweeny_builder & via(EasingFunctionTypes... easing_functions)
Specifies per-component easing functions for the last keyframe segment.
Definition tweeny.h:198
constexpr detail::quarticInEasing quarticIn
Quartic polynomial easing (t⁴) with strong acceleration.
Definition easing.h:1106
tweeny_builder< false, FirstValue, RemainingValues... > from(FirstValue firstComponent, RemainingValues... remainingComponents)
Creates a new tween builder starting from the specified value(s).
Definition tweeny.h:347
See also
quarticOut For strong deceleration
quarticInOut For strong motion at both ends
cubicIn For gentler acceleration
quinticIn For even stronger acceleration
Visualize at https://easings.net/#easeInQuart