Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 22 days 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T22:00:03.000Z (almost 4 years ago)
- Last Synced: 2023-03-09T23:26:33.962Z (almost 2 years 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:
[![NuGet](https://img.shields.io/nuget/v/Aptacode.Interpolatr.svg?style=flat)](https://www.nuget.org/packages/Aptacode.Interpolatr/)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/042b4cf9e73b4a46aa38c55c3d4c3b0c)](https://www.codacy.com/manual/Timmoth/Aptacode.Interpolatr?utm_source=github.com&utm_medium=referral&utm_content=Timmoth/Aptacode.Interpolatr&utm_campaign=Badge_Grade)
![last commit](https://img.shields.io/github/last-commit/Timmoth/Aptacode.Interpolatr?style=flat-square&cacheSeconds=86000)## 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
![Alt Text](https://raw.githubusercontent.com/Timmoth/Aptacode.Interpolatr/master/Resources/demos/Linear.gif)
#### EaseIn
![Alt Text](https://raw.githubusercontent.com/Timmoth/Aptacode.Interpolatr/master/Resources/demos/EaseIn.gif)
#### EaseOut
![Alt Text](https://raw.githubusercontent.com/Timmoth/Aptacode.Interpolatr/master/Resources/demos/EaseOut.gif)
#### EaseInOut
![Alt Text](https://raw.githubusercontent.com/Timmoth/Aptacode.Interpolatr/master/Resources/demos/EaseInOut.gif)
#### Elastic
![Alt Text](https://raw.githubusercontent.com/Timmoth/Aptacode.Interpolatr/master/Resources/demos/Elastic.gif)