https://github.com/aptacode/interpolatr
A Light weight C# .net standard Tweening and Interpolation library
https://github.com/aptacode/interpolatr
csharp dotnet dotnet-core dotnet-standard interpolation-library
Last synced: about 1 month ago
JSON representation
A Light weight C# .net standard Tweening and Interpolation library
- Host: GitHub
- URL: https://github.com/aptacode/interpolatr
- Owner: Aptacode
- License: mit
- Created: 2020-03-11T00:13:36.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T22:00:03.000Z (over 4 years ago)
- Last Synced: 2025-02-11T12:31:06.353Z (3 months ago)
- Topics: csharp, dotnet, dotnet-core, dotnet-standard, interpolation-library
- Language: C#
- Homepage: https://aptacode.com/opensource/interpolatr/
- Size: 1.82 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Interpolatr
### a lightweight cross platform .net tweening & Interpolation library.
NuGet package:
[](https://www.nuget.org/packages/Aptacode.Interpolatr/)
[](https://www.codacy.com/manual/Timmoth/Aptacode.Interpolatr?utm_source=github.com&utm_medium=referral&utm_content=Timmoth/Aptacode.Interpolatr&utm_campaign=Badge_Grade)
## User Guide
### Code Example
```csharp
double startValue = 0;
double endValue = 10;
int stepCount = 5;IEnumerable result = DoubleInterpolator.Interpolate(stepCount, DefaultEasers.Linear, startValue, endValue);
//Expected output { 2, 4, 6, 8, 10 }
```
### Easers
Easer functions are used to determine the rate at which a transformations value changes. The graphs below show the rate at which an interpolator affected by each easer approaches its end value over time.
![]()
### Easer demos
#### Linear

#### EaseIn

#### EaseOut

#### EaseInOut

#### Elastic
