Color picker for Jmol

Concept and design by SÚrgio Ceroni da Silva.
Code modifications by Angel Herráez.
Adapted to JSmol by Angel Herráez

Pick color for currently selected part of molecule:
Pick color for background:

Instructions for re-using this code:

  1. Get the color-picker.js support file.
  2. In your page, include a call to color-picker.js in the HEAD and, wherever you want a color palette, a call to writeColorPicker() function.
  3. Instructions for using the function are inside color-picker.js
  4. Messages (in tooltips and status line) can be customized by editing color-picker.js