Participant
October 22, 2020
Question
Selection Fill In Script Question
- October 22, 2020
- 3 replies
- 1478 views
Hello,
I've used a script to fill in a selection area using the code below.
activeDocument.selection.fill(fillColor);
When I zoom down to the pixel level, I noticed the edges is not the colors I specified because I think photoshop is blending the colors for a smooth transition. Is there anyway to fill so that the selected pixels are exactly the color specified?
I've attached an image below with the RGB values for each pixel. I'd like the only colors to be
Dark Green with 0 red, 111 green, and 0 blue
Light Green with 165 red, 241 green, and 172 blue

[ attachment inserted as inline image by moderator ]