tweakpane-plugin-colors
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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',
});

Readme

Keywords

none

Package Sidebar

Install

npm i tweakpane-plugin-colors

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

140 kB

Total Files

7

Last publish

Collaborators

  • titouanpellerin