Skip to content
This repository has been archived by the owner on May 22, 2023. It is now read-only.

MoonsideGames/MoonTools.Core.Easing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MoonTools.Core.Easing

NuGet Badge CircleCI

Easing functions for .NET Core

Reference

https://easings.net

Example

Use easing functions to transform time values and get fancy animations along paths.

using MoonTools.Core.Easing;

// Transform a normalized time value.
Easing.InQuad(0.75f); // => 0.5625f

// Transform a time value within a time range.
Easing.InOutSine(3.5, 2, 6); // => 3.2346331352698

// Move within an arbitrary number range based on time.
// (time, start, delta, duration)
Easing.OutQuart(2, 10, 100, 4); // => 103.75

Additional Info

Use this library with MoonTools.Core.Curve for some nicely animated Bezier curves!