Function cubicBezierShape

Creates an easing function using a simple cubic bezier defined by two points.

Eg: https://cubic-bezier.com/#0,1.33,1,-1.25 a:0, b: 1.33, c: 1, d: -1.25

import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";
// Time-based easing using bezier
const e = Easings.time(fromCubicBezier(1.33, -1.25), 1000);
e.compute();
  • Parameters

    • b: number
    • d: number

    Returns Modulate

    Value