Faker C++
Loading...
Searching...
No Matches
Color.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5#include "types/Hex.h"
6#include "faker-cxx/Export.h"
7
8namespace faker::color
9{
19FAKER_CXX_EXPORT std::string_view name();
20
33FAKER_CXX_EXPORT std::string rgb(bool includeAlpha = false);
34
49FAKER_CXX_EXPORT std::string hex(HexCasing casing = HexCasing::Lower, HexPrefix prefix = HexPrefix::Hash, bool includeAlpha = false);
50
61FAKER_CXX_EXPORT std::string hsl(bool includeAlpha = false);
62
73FAKER_CXX_EXPORT std::string lch(bool includeAlpha = false);
74
83FAKER_CXX_EXPORT std::string cmyk();
84
93FAKER_CXX_EXPORT std::string lab();
94
103FAKER_CXX_EXPORT std::string hsb();
104
113FAKER_CXX_EXPORT std::string hsv();
114
123FAKER_CXX_EXPORT std::string yuv();
124}
Definition Color.h:9
FAKER_CXX_EXPORT std::string cmyk()
Return a CMYK color.
FAKER_CXX_EXPORT std::string hsl(bool includeAlpha=false)
Returns an HSL color.
FAKER_CXX_EXPORT std::string hsv()
Return a HSV color.
FAKER_CXX_EXPORT std::string_view name()
Returns a random color.
FAKER_CXX_EXPORT std::string lch(bool includeAlpha=false)
Returns an LCH color.
FAKER_CXX_EXPORT std::string yuv()
Return a YUV color.
FAKER_CXX_EXPORT std::string hsb()
Return a HSB color.
FAKER_CXX_EXPORT std::string hex(HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::Hash, bool includeAlpha=false)
Returns a hex color.
FAKER_CXX_EXPORT std::string rgb(bool includeAlpha=false)
Returns an RGB color.
FAKER_CXX_EXPORT std::string lab()
Return a LAB color.