lerp 0.0.2 copy "lerp: ^0.0.2" to clipboard
lerp: ^0.0.2 copied to clipboard

Linearly interpolate between two numbers, boolean, or enum by an extrapolation factor.

example/README.md

lerpDouble(1.1, 5.5, 0.5);
lerpInt(1, 5, 0.7);
lerpBool(true, false, 0.4);
lerpEnum(CrossAxisAlignment.start, CrossAxisAlignment.end, 0.6);
1
likes
160
points
91
downloads

Publisher

verified publisherwidgetarian.com

Weekly Downloads

Linearly interpolate between two numbers, boolean, or enum by an extrapolation factor.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on lerp