I'll have to post the code when I get back to my other computer. For selecting pixels, I always try to stay away from the edge of the image by one pixel, as sometimes on the bottom and right side I get that error if I use the actual document size. For the gradient. I created an oval shape layer with a gradient fill and recorded that using scriptlistener. Then I put that in a function and replaced all the color values with variables that I pass into the function - same with the size of the oval.
↧