I was bored... and wondered if you already have something like this or maybe this will be of any use to you.
I call it
Create New Gradient from Black DrawingIt scans the active layer from left to right, then from top to bottom and looks for black pixels.
the first pixel it finds from the top down and save the y coordinate
Then it creates a new gradient with (layer width-1) number of segments so that it has layer's width's number of colors.
The it loops through and sets the colors to a gray scale of the y coordinate..
for example if it finds a black pixel at y coordinate 0, it'll make that color on the gradient to be (0,0,0) (pure black)
if it doesn't find a black pixel at y coordinate for a certain x, it'll make that color on the gradient to be (255,255,255) (pure white).
so basically you can have an active layer that is (a width of your choice) x (a height of 255) and you can create gradients to use as height map.
Here i'll just show you an example.
here's a simple drawing i used to run the script on.
[
Image ]
and then i run the script and i get a gradient that is like this
[
Image ]
Is this script useful to you at all? Or do you already have something that helps with this?
Anyways here's the script. Let me know what's up.
It'll be available under <Image>/Tools/Create New Gradient From Black Drawing...
Attachment:
create_new_gradient_from_black_drawing.zip
I was just playing around and was able to create gradient that is very similar to your 01RoundFull Gradient. I even tried to compare them by blending one layer with your 01RoundFull Gradient and another layer with my gradient from image below and set top layer to difference and the image is all black (don't know if they're pureblack but definitely close)
here's the screen shot of how i created the similar to your 01RoundFull Gradient.
[
Image ]
I tried this script yesterday and it works pretty good on a canvas that is 256 pixels in height.