Create a gradient from the script, control stops and color.
Do not understand from the document for Photoshop cs6 javaScript reference how and where to access the gradient.
Please help me, I can not make day after day ..
The principle of the script consists of scanning black-and-white and color texture of the pixel, recording color in the array.
Then in order to decompose the array of color from 0 to 255 black-and-white texture.
So get the texture gradient.
0 where blacks where 255 white. each color will be assigned a user ID and on it will be moved to color in the gradient color texture.
Sorry for my English.
Thanks!