---
title: "ease - s&box library"
description: "Easing library"
canonical: "https://sbox.watch/zh-cn/libraries/nfm/ease/"
generated_at: "2026-11-27T15:09:25.260Z"
---

# ease

Easing library

- 类型: 库
- 标识符: nfm.ease
- 创作者: nonperforming
- 规范地址: https://sbox.watch/zh-cn/libraries/nfm/ease/
- Markdown: https://sbox.watch/zh-cn/libraries/nfm/ease/index.md
- sbox.game: https://sbox.game/nfm/ease/
- 生成时间: 2026-11-27T15:09:25.260Z

## 统计

- 24小时热度: +0
- Terry 评分: 27%
- 收藏: 1
- 好评: 1
- 差评: 0
- 更新时间: 2023年12月27日
- 创建时间: 2023年12月26日
- 大小: 52.1 KB
- 文件: 4
- 标签: ease, easing, tween

## 描述

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));
 }
 }
}



## More by nonperforming

| Package | 标识符 | 玩家 | 收藏 | 好评 | 评分 | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| perfmon | nfm.perfmon | 0 | 2 | 3 | 53% | https://sbox.watch/zh-cn/libraries/nfm/perfmon/index.md |
