Tweakpane plugin that provides a range slider control for an interval value.
<script src="tweakpane.min.js"></script>
<scirpt src="tweakpane-plugin-interval.min.js"></script>
<script>
const pane = new Tweakpane.Pane();
pane.registerPlugin(TweakpaneIntervalPlugin);
</script>
import {Pane} from 'tweakpane';
import * as TweakpaneIntervalPlugin from '@tweakpane/plugin-interval';
const pane = new Pane();
pane.registerPlugin(TweakpaneIntervalPlugin);
// ...
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,
});
MIT License. See LICENSE.txt
for more information.