تابع Lerp | hyperPad Documentation

Loading...

Logo
Documentationمنطقتابع Lerp
منطق

تابع Lerp

Last updated November 14, 2023

تابع Lerp Function یک مقدار بین یک نقطه شروع و نقطه پایان با استفاده از یک tween easing مشخص بازمی‌گرداند.

خصوصیتتوضیحات
Tween

چگونه باید بین دو مقدار.interpolate شود. به طور پیش فرض، این به صورت خطی interpolate خواهد شد.

Start

مقدار شروع که نقطه interpolation آن 0% است.

End

مقدار پایان که نقطه interpolation آن 100% است.

Interpolation Point

یک درصد که تعیین می‌کند در کجا بین نقطه شروع و پایان interpolate شود. 50% به معنای نیمه‌راه بین دو نقطه است.

Easing Tweenگراف
Linear
In Bounce

Out Bounce

In Out Bounce

In Elastic

Out Elastic

In Out Elastic

In Back

Out Back

In Out Back

In Sine

Out Sine

In Out Sine

In Quadratic

Out Quadratic

In Out Quadratic

In Cubic

Out Cubic

mceclip19.png

In Out Cubic

In Exponential

Out Exponential

In Out Exponential

خروجی فیلدهاتوضیحات
result

مقدار خروجی از تابع.