Solutionunvalidated

Compute the blue intensity from x and apply the black overlay factor from y: set b = 255 - y and r = g = round((255 - x) * (255 - y) / 255) to account for both gradients.

5186b87e-f7f7-409c-8a64-f739d5345409

Compute the blue intensity from x and apply the black overlay factor from y: set b = 255 - y and r = g = round((255 - x) * (255 - y) / 255) to account for both gradients.