ease
LibraryEasing library
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));
}
}
} This package may be new or not widely used yet. Usage data becomes available as more users install and play with the package.
| Rank | Player | Score | Recorded |
|---|---|---|---|
|
refresh
Discovering package leaderboards...
|
|||
more_horiz Additional Properties
This file manifest and asset metadata are retrieved live directly from the official Facepunch s&box public API. s&box Explorer does not host, store, or redistribute any package files. All download links route directly to Facepunch CDN servers.