Specifies the easing function for the last added point, accepting an enumeration.
This will specify the easing between the last tween point added by to
and its previous step. You can use a value from the 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:
template<
typename... Fs>
tween<T, Ts...> &
via(
const std::string &
easing, Fs... fs);
template<
typename... Fs>
tween<T, Ts...> &
via(
const char *
easing, Fs... fs);
template<
typename... Fs>
tween<T, Ts...> &
via(
int index, Fs... fs);
- Parameters
-
- Returns
- *this