#include <string>
#include "types/Hex.h"
#include "faker-cxx/Export.h"
Go to the source code of this file.
|
FAKER_CXX_EXPORT std::string_view | faker::color::name () |
| 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::yuv () |
| Return a YUV color.
|
|