erloncabral / alpha2hex-cli

Convert alpha to hex of #AARRGGBB color.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Convert Alpha to Hexadecimal to use on #AARRGGBB colors.

Use:

./alpha2hex -a {alpha_value}

The requirements are:

  • cmake 3.14+.
  • C++17 compatible compiler
  • Git

To configure:

cmake -S . -B build

Add -GNinja if you have Ninja.

To build:

cmake --build build

To test (--target can be written as -t in CMake 3.15+):

cmake --build build --target test

To use an IDE, such as Xcode:

cmake -S . -B xbuild -GXcode
cmake --open xbuild

Kudos for:

About

Convert alpha to hex of #AARRGGBB color.


Languages

Language:C++ 82.2%Language:CMake 16.5%Language:C 1.3%