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

◆ byName

byNameEasing byName ( std::string_view name)
friend

Select a bundled easing by its identifier name.

Names match the existing identifiers exactly (linear, cubicInOut, bounceOut, def, stepped, …). Unknown names throw std::invalid_argument immediately.

auto e = tweeny::easing::byName("cubicInOut");
auto t = tweeny::from(0.f).to(1.f).via(e).during(60U).build();
// or: .via(tweeny::easing::byName("linear"))
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
byNameEasing byName(std::string_view name)
Select a bundled easing by its identifier name.
Definition by-name.h:178
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
Parameters
nameExact easing identifier
Returns
Callable easing holding an internal id
Exceptions
std::invalid_argumentif name is not a known easing