![]() |
Faker C++
|
#include <string>#include <string_view>#include "faker-cxx/export.h"#include "faker-cxx/types/locale.h"#include "types/hex.h"

Go to the source code of this file.
Namespaces | |
| namespace | faker |
| namespace | faker::color |
Functions | |
| FAKER_CXX_EXPORT std::string_view | faker::color::name (Locale locale=Locale::en_US) |
| Returns a random color. | |
| FAKER_CXX_EXPORT std::string | faker::color::rgb (bool includeAlpha=false) |
| Returns an RGB color. | |
| FAKER_CXX_EXPORT std::string | faker::color::hex (HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::Hash, bool includeAlpha=false) |
| Returns a hex color. | |
| FAKER_CXX_EXPORT std::string | faker::color::hsl (bool includeAlpha=false) |
| Returns an HSL color. | |
| FAKER_CXX_EXPORT std::string | faker::color::lch (bool includeAlpha=false) |
| Returns an LCH color. | |
| FAKER_CXX_EXPORT std::string | faker::color::cmyk () |
| Return a CMYK color. | |
| FAKER_CXX_EXPORT std::string | faker::color::lab () |
| Return a LAB color. | |
| FAKER_CXX_EXPORT std::string | faker::color::hsb () |
| Return a HSB color. | |
| FAKER_CXX_EXPORT std::string | faker::color::hsv () |
| Return a HSV color. | |
| FAKER_CXX_EXPORT std::string | faker::color::hwb () |
| Return a HWB color. | |
| FAKER_CXX_EXPORT std::string | faker::color::yuv () |
| Return a YUV color. | |
| FAKER_CXX_EXPORT std::string | faker::color::space () |
| Returns a random color space. | |