Color palette viewer for Tweakpane.
<script src="tweakpane.min.js"></script>
<script src="tweakpane-plugin-chromatic.min.js"></script>
<script>
const pane = new Tweakpane.Pane();
pane.registerPlugin(TweakpaneChromaticPlugin);
</script>
import {Pane} from 'tweakpane';
import * as ChromaticPlugin from 'tweakpane-plugin-chromatic';
const pane = new Pane();
pane.registerPlugin(ChromaticPlugin);
pane.addBlade({
view: 'chromatic',
label: 'palette',
colors: ['red', 'blue', 'green']
});