0.0.6 • Published 2 years ago

tweakpane-plugin-colors v0.0.6

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Tweakpane plugin template

Custom color binding for Tweakpane. Use view: 'color-2' to bind color between 0 and 1.

Installation

Browser

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

Package

import {Pane} from 'tweakpane';
import * as ColorsPlugin from 'tweakpane-plugin-colors';

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

Usage

const params = {
    color: {r: 0, g: 1, b: 1},
   };

pane.addInput(params, 'color', {
  // required
  view: 'color-2',
});
0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago