Package Exports
- @rbxts/cubic-bezier
- @rbxts/cubic-bezier/init.lua
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/cubic-bezier) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Bezier
Used to create Bezier functions.
API
import Bezier from "cubic-bezier";
const EasingFunc = new Bezier(0.17, 0.67, 0.83, 0.67);
EasingFunc(0) // 0
EasingFunc(0.5) // something in between
EasingFunc(1) // 1Test and generate Bezier curves here at cubic-bezier.com or at greweb.me Credit: Math borrowed from here.