Skip to content

mmarusiak/Opacity-Color-Finder

Repository files navigation

Opacity Color Finder

Just quick project made in C++, also my first project in C++ for long time.

What is it and how it works?

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.

Shows an illustrated sun in light mode and a moon with stars in dark mode.

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.

Installation

  • 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;

Usage

Just follow instructions displayed in console.

consolecolors

Contributions

App is simple and made by beginner in C++, so feel free to contribute and improve it by yourself.

About

Just quick project in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published