Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

tweakpane/plugin-cubic-bezier

Repository files navigation

⚠️ This project was integrated into plugin-essentials.

tweakpane-plugin-cubic-bezier

Cubic bezier control for Tweakpane.

Installation

Browser

<script src="tweakpane.min.js"></script>
<scirpt src="tweakpane-plugin-cubic-bezier.min.js"></script>
<script>
  const pane = new Tweakpane.Pane();
  pane.registerPlugin(TweakpaneCubicBezierPlugin);
</script>

Package

import {Pane} from 'tweakpane';
import * as CubicBezierPlugin from '@tweakpane/plugin-cubic-bezier';

const pane = new Pane();
pane.registerPlugin(CubicBezierPlugin);

Usage

pane.addBlade({
  view: 'cubicbezier',
  expanded: true,
  picker: 'inline',
  value: [0.5, 0, 0.5, 1],
});