3 Replies Latest reply: Sep 24, 2012 2:18 PM by conroy RSS

    Have base color; want a shadowed color;  How do I calculate tint to apply?

    Astara_ Community Member

      I'm trying to convert from a 2 color area where I have a light area and a shadowed area.. the light area, rgb(251,223,203), I want to apply a shadowing type tint to get a result of rgb(182,130,119).  Is there a stock formula to use for this?  Is there one for hue?  Using the same colors, that'd be hsb(25,19,98) and going to hsb(10,35,71)?

       

      I've come up with "masks" (where if I use the exclusion filter, it results in the final color)...but that's obviously not a tint)...

       

      Anyway, I'm thinking I need to think of it as some type of equation, like

      rgba(251,223,203) + rgba(x) = rgba(182,130,119).  Does it matter what I use for 'A'  i.e. make it 100 and convert the other's to percents of 255.

      Ug... given only 2 inputs and 4 vars, seems like I could end up with a bunch

      of answers, but there's the constraint that no answers can be >100 and <0...

       

      Hmmm...maybe I'm making this over complicated?

        • 1. Re: Have base color; want a shadowed color;  How do I calculate tint to apply?
          conroy Community Member

          Make a Solid Color layer with the dark shade, blending mode Normal.

          Above it make a Solid Color layer with the light shade, blending mode Divide.

          Use Eye Dropper Tool set to sample All Layers and click on the image.

          The Foreground Color swatch will contain the colour which can be used in a Multiply layer on top of the light shade to result in the dark shade.

          • 2. Re: Have base color; want a shadowed color;  How do I calculate tint to apply?
            Astara_ Community Member

            That's interesting... but if I put that layer over other things, it doesn't result in the same type of shadow...

             

            I'm trying to figure out what type of 'tint', -- not a color-mix.. where 'tint implies some minimal amount of color applied to an existing color (so I guess it would be subtractive?), because if an object is in shade, then certain reflected elements are no longer present -- and are subtracted from the original). Hmmm...

             

            Maybe if it is something that acts like something in the shade, it would ""tend"" to be a grey filter -- but I put ten ind double double quotes, since if someone is sitting under a tree, and shaded by the tree, a grey tint doesn't work .... ARG...

            this is indoor... and I realize the tree has both sky-blue color shift and green-filtered-light through the leaves.

             

            Indoor, seem to be overhead incandescent lighting, so I'd think shade would be mostly neutral,(grey tint), no?.. probably not.

            There's the filtered component through their hair as well as the reflected color off of the walls.... ok.. this isn't as simple as I thought if I think of it in real-life terms....

             

            I just know that I have a shading factor that results in some

            approximate color.  So given that the result turns out 'x',

            what translucent shade would I apply ...  Maybe what I want isn't as simple as it sounds (it never is...sigh)...

             

            But thanks for the multiple/divide technique... I ... hmmm...

            Will have to think about that... multiple seems to usually result in darker and more saturated colors.  Would shade give a darker color and neutral saturation?... well now i'm not so sure I know what I want... (oi vey, ain't that a classic)... 

             

            I guess I just expected to be able to put something like a translucent photo filter over it and get a result...but perhaps that was a bit naive?  Dunno.

            • 3. Re: Have base color; want a shadowed color;  How do I calculate tint to apply?
              conroy Community Member

              I could only go by your specification of converting rgb(251,223,203) to rgb(182,130,119). As you've realized, when you modify elements of a scene, the indirect lighting changes as well as the occlusions. Are you working with photographs or illustrations? Can you show examples?