Faker C++
Loading...
Searching...
No Matches
color.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <string_view>
5
6#include "faker-cxx/export.h"
7#include "faker-cxx/types/locale.h"
8#include "types/hex.h"
9
10namespace faker::color
11{
23FAKER_CXX_EXPORT std::string_view name(Locale locale = Locale::en_US);
24
37FAKER_CXX_EXPORT std::string rgb(bool includeAlpha = false);
38
53FAKER_CXX_EXPORT std::string hex(HexCasing casing = HexCasing::Lower, HexPrefix prefix = HexPrefix::Hash,
54 bool includeAlpha = false);
55
68FAKER_CXX_EXPORT std::string hsl(bool includeAlpha = false);
69
82FAKER_CXX_EXPORT std::string lch(bool includeAlpha = false);
83
93FAKER_CXX_EXPORT std::string cmyk();
94
104FAKER_CXX_EXPORT std::string lab();
105
115FAKER_CXX_EXPORT std::string hsb();
116
126FAKER_CXX_EXPORT std::string hsv();
127
137FAKER_CXX_EXPORT std::string hwb();
138
148FAKER_CXX_EXPORT std::string yuv();
149
159FAKER_CXX_EXPORT std::string space();
160}
Definition color.h:11
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(Locale locale=Locale::en_US)
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 space()
Returns a random color space.
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 hwb()
Return a HWB color.
FAKER_CXX_EXPORT std::string rgb(bool includeAlpha=false)
Returns an RGB color.
FAKER_CXX_EXPORT std::string lab()
Return a LAB color.