A C++ header-only color format & conversion library.
- Parsing and formatting colors: #aarrggbb, argb(a, r, g, b) & rgb(r, g, b)
- Checking whether the given color is light or dark.
- parsing named colors: x11, wpf & .net naming schemes
- conversion between: bgr24, bgra32, bgr32, bgr565, bgr555, bgra5551, rgba32 and rgb32 pixel formats
- build - directory for tests & examples
- examples - examples source code
- include - the source code of the library
- test - test source code
- Linux (x86/64)
- GCC 4.8, Boost 1.54
- Clang 3.4, Boost 1.54
- Windows (x86/64)
- MSVC 14, Boost 1.57
This is a header only library, in order to use it make the cpp-colors-include
directory available to your project and include the header file in your source code:
#include "cpp-colors/colors.h"
This project tests and examples use the Cross-platform Make (CMake) build system. Tests depend on Google Test Framework. gtest-1.7.0 is recommended.
The recommended way is to create 'out of source' build:
cd cpp-colors/build
cmake ..
make
Visual Studio:
Follow the directions at the link for running CMake on Windows:
http://www.cmake.org/runningcmake/
NOTE: Select the "build" folder as the location to build the binaries.
make clean-all
[Grigoriy Chudnov] (mailto:[email protected])
Distributed under the The MIT License (MIT).