JSPM

@rbxts/cubic-bezier

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 21
  • Score
    100M100P100Q60256F
  • License ISC

A library for generating smooth two-dimensional interpolation curves

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) // 1

Test and generate Bezier curves here at cubic-bezier.com or at greweb.me Credit: Math borrowed from here.