Mobile app version of vmapp.org
Login or Join
Si6392903

: How do you reverse a gradient from any one color to any other color If I have a gradient, know color a (primary) and b (secondary), how would I go about reversing said gradient so color

@Si6392903

Posted in: #Gradient

If I have a gradient, know color a (primary) and b (secondary), how would I go about reversing said gradient so color a instead transitions into an equivalent alpha that when layered over a pure background of color b would producing the starting gradient.

To further elaborate, say I have this gradient:



And I want to split to so that I have this instead:



Where if I overlay it with this:



I get back to this:



I have been only able to get it work with the primaries at best. My math doesn't seem to work on anywhere else but the calculator (will post if requested), any ideas?

EDIT: I should explain that the software in question is irrelevant, as this is a concept that I want to put into a plugin. The colors are in ARGB scale from 0-255 each (Ox12345678)

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Si6392903

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme