Just quick project made in C++, also my first project in C++ for long time.
So, when I was creating UI in Unity, I wanted to find color with some declared opacity which after blend with my background color will be the color that I expect. That's why I made this tool.

So from picture above:
If you have background color
(here blue (left) color), opacity of second color
(opacity of green (right) color) and blended color
(middle, blended green and blue color, here gray-blue-ish like) you will get output color
(RGBA and HEX) value.
Example input:
- Main color/background color:
rgb(1, 4, 9)
- Opacity of target color:
70
- Blended color:
rgb(13, 17, 23)
Expected output:
Hex value of new color with opacity 70: #0C0161
RGBA value of the new color is: (12, 16, 22, 70)
App works in console.
- Clone this repo from your project folder;
- Be sure that you're using
C++17
(should work on any other version, but didn't test that); - Compile or build
main.cpp
;
Just follow instructions displayed in console.
App is simple and made by beginner in C++, so feel free to contribute and improve it by yourself.