tweakpane / plugin-interval

Range slider control for Tweakpane

Home Page:https://cocopon.github.io/tweakpane/plugins.html#interval

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ This project was integrated into plugin-essentials.

tweakpane-plugin-interval

Tweakpane plugin that provides a range slider control for an interval value.

Install

Browser

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

Node.js

import {Pane} from 'tweakpane';
import * as TweakpaneIntervalPlugin from '@tweakpane/plugin-interval';

const pane = new Pane();
pane.registerPlugin(TweakpaneIntervalPlugin);
// ...

Usage

const PARAMS = {
  range: {min: 20, max: 80},
};

const pane = new Tweakpane.Pane();
pane.registerPlugin(TweakpaneIntervalPlugin);

pane.addInput(PARAMS, 'range', {
  min: 0,
  max: 100,
  step: 1,
});

License

MIT License. See LICENSE.txt for more information.

About

Range slider control for Tweakpane

https://cocopon.github.io/tweakpane/plugins.html#interval

License:MIT License


Languages

Language:TypeScript 72.6%Language:JavaScript 18.4%Language:SCSS 6.2%Language:HTML 2.8%