ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Opacity color math

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jerry SmithOpacity color math
by on Jun 10, 2016 at 6:07:17 pm

So, I have a colored square with 100% opacity on a white background. I'd like to replace it by a darker colored square with 50% opacity. Is there a simple formula or web site with a color applet that I can use to calculate how to go from the hex for the original color to the hex for the darker color?

Thanks


Return to posts index

Richard HerdRe: Opacity color math
by on Jun 10, 2016 at 7:14:53 pm
Last Edited By Richard Herd on Jun 10, 2016 at 7:16:36 pm

Have you tried Adobe Color? https://color.adobe.com/

EDIT: here is some blend mode math http://photoblogstop.com/photoshop/photoshop-blend-modes-explained


Return to posts index

Kalle KannistoRe: Opacity color math
by on Jun 11, 2016 at 6:38:39 pm

You can calculate it by the RGB values

r1=255-(255-r0)*2
g1=255-(255-g0)*2
b1=255-(255-b0)*2

You'll see the hex value in the color picker dialog if you plug in the results there.

Note that if any of your original R, G or B values are below 128, the resulting color doesn't fall into the RGB gamut.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]