I'm not sure if this works on any background color, but for your example, you can calucate the values like this:
value = backgroundValue - (backgroundValue - colorValue) * alphaValue
-----
r = 255 - (255 - 55) * 0.53 = 149
g = 255 - (255 - 103) * 0.53 ~= 174
b = 255 - (255 - 235) * 0.53 ~= 244
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.