Tweeny  3.2.0
A Tweening library for modern C++

◆ during()

tween<T, Ts...>& during ( Ds...  ds)

Specifies the easing function for the last added point, accepting an easing name as a const char * value. *.

   @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 to and its previous step.
  • You can mix-and-match enumerated easings, functions and easing names.

Example:

    • * auto tween = tweeny::from(0.0f, 100.0f).to(100.0f, 0.0f).via(tweeny::easing::linear, "backOut");
      *
      * @param fs The functions
      * @returns *this
      */
      template<typename... Fs> tween<T, Ts...> & via(const char * easing, Fs... fs);
      template<typename... Fs> tween<T, Ts...> & via(int index, Fs... fs);
      The easing class holds all the bundled easings.
      Definition: easing.h:130
      tween()
      Default constructor for a tween.
      tween< T, Ts... > & via(Fs... fs)
      Specifies the easing function for the last added point.
      tween< Ts... > from(Ts... vs)
      Creates a tween starting from the values defined in the arguments.
Parameters
dsDuration values
Returns
*this