ease
Easing library
favorite1favorites
thumb_up1upvotes
hard_drive
0 MB
folder
4 files
build
Engine v10
history
Last update 926d ago
About This Package
About Ease
Ease is a simple easing library that has a few more stuff than
Supports both float (single) and double (double) number types
Supports dependency injection with the interface
Use namespace
Source code will be released when Back/Bounce/Linear easing is implemented
Easing Functions (float, double)
- Sine (In/Out/InOut)
- Quad (In/Out/InOut)
- Cubic (In/Out/InOut)
- Quart (In/Out/InOut)
- Quint (In/Out/InOut)
- Expo (In/Out/InOut)
- Circ (In/Out/InOut)
Planned Features
- Back easing
- Bounce easing
- Linear easing
- Tween value over time
- Tween to Vector2/Vector3 over time
Example
using Ease.Easings;
using Ease.Interfaces;
using Sandbox;
public class Demo
{
public static void Main()
{
IEase ease;
Log.Info("Sine float");
ease = Sine();
DemoFloat(ease);
Log.Info("Quad double");
ease = Quad();
DemoDouble(ease);
}
private static void DemoFloat(IEase ease)
{
for (float i = 0; i >= 1; i += 0.01f)
{
Log.Info(ease.In(i));
}
}
private static void DemoDouble(IEase ease)
{
for (double i = 0; i >= 1; i += 0.01)
{
Log.Info(ease.In(i));
}
}
}
No usage statistics available
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
Package ID:
nfm.ease
Created:
2023-12-26 11:06 UTC
Updated:
2023-12-27 00:55 UTC
Type:
library
Public:
Yes
Version:
44336
files:
4
Size:
0.1 MB
Engine Version:
10
Asset Version ID:
44336
Version Created:
2023-12-27 00:55 UTC
Hash:
-5554889184573674086
Manifest: Open manifest
Project Template:
Cs Proj Name:
Compiler:
Sandbox, SANDBOX;ADDON;DEBUG, 1701;1702;1591;, , Array, Array, Array
Resources:
Code Package References:
44336
Dec 27, 2023
Make everything static so it can be used with DI
44317
Dec 26, 2023
Sine documentation
44316
Dec 26, 2023
Initial Publish