FYI, I just released another open-source color ramps script (for Photoshop CS4 or later):
Create Color Ramp, which allows you to create a 256-color ramp programmatically, using mathematical formulas expressed in one color model among: RGB, HSB, HSL. Graphical preview is available (making use of ScriptUI's custom views), as well as import and export in curves map (.amp) and color table (.act) file formats.--Mikaeru
Update: HCL (CIE-LCH) has been added to the list of supported color models.
Create Color Ramp
Create Color Ramp
The creative script Create Color Ramp has been updated to version 3.0.
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
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