Tweeny
3.2.0
A Tweening library for modern C++
|
◆ during()
Specifies the easing function for the last added point, accepting an easing name as a @brief Specifies the easing function for the last added point, accepting an enumeration. This will specify the easing between the last tween point added by @p to and its previous step. You can use a value from the @p tweeny::easing::enumerated enum. You can then have an enumeration of your own poiting to this enumerated enums, or use it directly. You can mix-and-match enumerated easings, functions and easing names. **Example**: @code auto tween1 = tweeny::from(0).to(100).via(tweeny::easing::enumerated::linear); auto tween2 = tweeny::from(0.0f, 100.0f).to(100.0f, 0.0f).via(tweeny::easing::linear, "backOut"); @param fs The functions @returns *this @see tweeny::easing / template<typename... Fs> tween<T, Ts...> & via(easing::enumerated enumerated, Fs... fs); /** * @brief Specifies the easing function for the last added point, accepting an easing name as a `std::string` value. * * This will specify the easing between the last tween point added by @p to and its previous step. * You can mix-and-match enumerated easings, functions and easing names. * **Example**: * * @code * auto tween = tweeny::from(0.0f, 100.0f).to(100.0f, 0.0f).via(tweeny::easing::linear, "backOut"); * * @param fs The functions * @returns *this * @see tweeny::easing */ template<typename... Fs> tween<T, Ts...> & via(const std::string & easing, Fs... fs); /**
Example:
|