Tweeny 3.2.0
A Tweening library for modern C++
|
◆ during()
template<typename T , typename... Ts>
template<typename... Ds>
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); /** This will specify the easing between the last tween point added by Example: @param fs The functions
@returns *this
@see tweeny::easing
/
tween< T, Ts... > & via(Fs... fs) Specifies the easing function for the last added point. The tween class is the core class of tweeny. It controls the interpolation steps, easings and duratio... Definition tween.h:48 tween< Ts... > from(Ts... vs) Creates a tween starting from the values defined in the arguments.
|