Automation for creating a gradient from colours within a selection
Trying to automate something but can't think how to approach it best. The manual method being used is:
1: Selection made of an area within an image
2: From that selection, 5 colour samples taken - Darkest, Dark-mid, Mid, Mid-Light, Lightest - based on luminosity, attempting to be equidistant across the luminosity range of the selection. (so for example if darkest area is 20% brightness, lightest is 80%, you'll get samples at 20%, 35%, 50%, 65%, 80% brightness)
Gradient created using the sample colours, with the location of each colour marker in the gradient specified by the brightness value.
Gradient saved with the file name as reference.
Probably some really simple solution to this I'm simply unaware of. Or it's way too complex for me, but I'm sure there must be some way to do it?
