FYI, I just released version 3.0 of the open-source script Create Color Ramp for Photoshop CS4 or later.
What's new?
- Added handling of discrete steps.
- Added new formula format: indexed colors.
- Added optional smoothing in function interpolate.
- Added helper functions for components formula format: linear, pchip, coserp, smoothstep, smootherstep.
- Added helper functions for indexed colors formula format: interpolateColors to interpolate colors between fixed locations, distributeColors to distribute colors evenly and interpolate them.
A selection of formulas, covering many ways of creating color ramps, is also available on the dedicated page: Examples of Color Ramp Formulas.
--Mikaeru