Sign in to follow this  
silverhammer

Advanced Color Replacement

Recommended Posts

This plugin is like a more useful version of the color replacement tool. Whereas the standard tool merely paints over pixels if they're close enough to the secondary color, this plugin recolors every pixel a different amount based on how similar it is to the secondary color.

For example I'll use this colorful image:

rainbow-bookshelf.jpg

Here's the built in tool replacing pink with cyan at about 30%:

rainbowbookshelf2bd1.jpg

Notice the ugly, harsh edges and how some pinkish parts of the image are entirely untouched.

Now my plugin replacing pink with cyan:

rainbowbookshelf3eo8.jpg

No more ugly edges! My plugin changes all pixels of the image based on how similar each is to the secondary color.

dialoguevl5.png

*Threshold changes how strongly pixels are recolored based on how similar they are to the secondary color

*Roughness changes how quickly the recolor effect falls off after the threshold is passed when continuous replacement is selected. Lower values look 'nicer' but tend to give the image an overall tint

*Continuous replacement recolors all pixels different amounts and looks really nice. Cutoff works similar to the normal tool as pixels over the threshold are not recolored at all - recolored pixels however are colored more 'accurately' than with the built-in tool.

Note that this plugin works like the built-in tool inasmuch as the color used and the color replaced are the primary and secondary colors in the palette, respectively.

advcolorrep.zip

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this