Sign in to follow this  
Followers 0
Xhin

Color > Tint-Splitter v1.0

10 posts in this topic

I make a lot of abstract art. A problem I sometimes run into is the colors being god-awful. There's a couple tricks I've learned to fix that, for example making the piece black and white and applying http://forums.getpaint.net/index.php?/topic/25083-color-self-negation-now-v11/ or a color zoom blur to it. That can mess up the textures though, so isn't always useful.

If you have that problem, this plugin will permanently fix it.

Overview

What this plugin essentially does is it tints the image two different colors that you determine.

It does this by taking one RGB channel and shifting it to another, for example shifting green to red. This leaves a blue channel which depending on its value and the "gray" value will turn a piece a contrast of blue and yellow. You can then shift the blue to whatever color you want and the yellow to whatever color you want.

Let's look at the menu:

post-81957-0-24238100-1347265056_thumb.p

Shift: Which channels become equal, and what they become equal to. So for example, R --> B makes the Red channel equal to the Blue channel, with the Green channel determining the Split. In non-technical terms, you should probably play around with this if you don't like the split you're getting. R --> G seems to be the most stable.

Dominant Hue:

Secondary Hue:: These determine the two hues that the image is split into.

Here are some examples, since none of my plugins make sense without them:

post-81957-0-99918400-1347265064_thumb.p

Seed Image

post-81957-0-57910300-1347265069_thumb.p

Default settings (R-->G, no hue changes)

post-81957-0-72029300-1347265080_thumb.p

Changed the dominant hue to a reddish color

post-81957-0-73209300-1347265087_thumb.p

Same as above, but changed the secondary color to a bluish color.

post-81957-0-09172900-1347265094_thumb.p

Changed the Shift to G-->R. Notice the slightly different pattern.

Download (V1.0)

Tint-Splitter.zip

0

Share this post


Link to post
Share on other sites

it's very useful , i liked it a lot !

it'd be much more awesome if you add an ' Effect mix slider ' , it'll help me to use it to clarify some images :D

thanks for your effort.

Ahmed.

0

Share this post


Link to post
Share on other sites

Yeah, there's an idea. Until I do that, you could do:

1. Duplicate layer

2. Apply Tint-Splitter

3. Adjust transparency of top layer

2

Share this post


Link to post
Share on other sites
Yeah, there's an idea. Until I do that, you could do: 1. Duplicate layer 2. Apply Tint-Splitter 3. Adjust transparency of top layer

i know and you can do that directly in code lap btw

0

Share this post


Link to post
Share on other sites

Yeah, if I can get my color-averaging script to work...

CurrentPixel.R=(oldPixel.R+CurrentPixel.R)/2
CurrentPixel.G=(oldPixel.G+CurrentPixel.G)/2
CurrentPixel.B=(oldPixel.B+CurrentPixel.B)/2

?

edit that to fit your needs.

0

Share this post


Link to post
Share on other sites

Yeah, but that only averages two colors together. I want to do it on a gradient, so you can go, say, 15% between #ffc00 and #195682.

0

Share this post


Link to post
Share on other sites

Off the top of my head:

New.R = Start.R - (Start.R - End.R) x 0.15

New.G = Start.G - (Start.G - End.G) x 0.15

New.B = Start.B - (Start.B - End.B) x 0.15

(don't quote me - test it for yourself)

0

Share this post


Link to post
Share on other sites

Hi Xhin,

I don't use hex numbers but the way I add an effect slider would be to add double slider from 0 to 1.

Then multiply the source BGRA values by this and the effect BGRA values by the inverse of it.

eg.

// psuedo code
double Amount1 = 0; // [0,1] effect colour			blend				 source colour
double rat = Amount1;double irat = 1 - rat;
// let B,G,R be the values you want on the dst canvas
// let Bs,Gs,Rs be the src values
// let Be,Ge,Re be the effect values you have created
B = (int)((Bs * rat) + (Be * irat));
G = (int)((Gs * rat) + (Ge * irat));
R = (int)((Rs * rat) + (Re * irat));
// then recombine these (with A) and write to the dst canvas

hope that helps - I'm sure there are more correct ways of doing it, but it works for me!

0

Share this post


Link to post
Share on other sites

Thanks Ochre, I'll maybe try to fix it once I get some free time (this weekend probably).

1

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  
Followers 0