Skip to content

Convert alpha to hex of #AARRGGBB color.

Notifications You must be signed in to change notification settings

erloncabral/alpha2hex-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: