Faker C++
Loading...
Searching...
No Matches
Color.h File Reference
#include <string>
#include "types/Hex.h"
#include "faker-cxx/Export.h"
Include dependency graph for Color.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  faker
 
namespace  faker::color
 

Functions

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.