interpolate 1.0.2+2 interpolate: ^1.0.2+2 copied to clipboard
A dart plugin to interpolate values. This plugin interpolates the values within a range of values.
import 'package:interpolate/interpolate.dart';
main() {
Interpolate interpolate = Interpolate(
inputRange: [10, 20, 30],
outputRange: [1, 0, 1],
extrapolate: Extrapolate.clamp,
);
interpolate.eval(15); // returns 1.5
}