diff --git a/Color_8h_source.html b/Color_8h_source.html index 72b338dc7..89edd97b0 100644 --- a/Color_8h_source.html +++ b/Color_8h_source.html @@ -129,15 +129,21 @@
86 static std::string cmyk();
87
96 static std::string lab();
-
97};
+
97
+
106 static std::string hsb();
+
107
+
116 static std::string hsv();
+
117};
-
98}
+
118}
faker::Color
Definition Color.h:10
faker::Color::rgb
static std::string rgb(bool includeAlpha=false)
Returns an RGB color.
faker::Color::hex
static std::string hex(HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::Hash, bool includeAlpha=false)
Returns a hex color.
+
faker::Color::hsv
static std::string hsv()
Return a HSV color.
faker::Color::name
static std::string name()
Returns a random color.
faker::Color::cmyk
static std::string cmyk()
Return a CMYK color.
faker::Color::hsl
static std::string hsl(bool includeAlpha=false)
Returns an HSL color.
+
faker::Color::hsb
static std::string hsb()
Return a HSB color.
faker::Color::lch
static std::string lch(bool includeAlpha=false)
Returns an LCH color.
faker::Color::lab
static std::string lab()
Return a LAB color.
diff --git a/classfaker_1_1Color-members.html b/classfaker_1_1Color-members.html index b639fcfb1..d2840b3e9 100644 --- a/classfaker_1_1Color-members.html +++ b/classfaker_1_1Color-members.html @@ -103,7 +103,9 @@ - + + + diff --git a/classfaker_1_1Color.html b/classfaker_1_1Color.html index 3aa8a0923..e5bc1a720 100644 --- a/classfaker_1_1Color.html +++ b/classfaker_1_1Color.html @@ -125,6 +125,12 @@ + + + + + +
cmyk()faker::Colorstatic
hex(HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::Hash, bool includeAlpha=false)faker::Colorstatic
hsl(bool includeAlpha=false)faker::Colorstatic
hsb()faker::Colorstatic
hsl(bool includeAlpha=false)faker::Colorstatic
hsv()faker::Colorstatic
lab()faker::Colorstatic
lch(bool includeAlpha=false)faker::Colorstatic
name()faker::Colorstatic
static std::string lab ()
 Return a LAB color.
 
static std::string hsb ()
 Return a HSB color.
 
static std::string hsv ()
 Return a HSV color.
 

Member Function Documentation

@@ -204,6 +210,36 @@

Definition Color.h:10
static std::string hex(HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::Hash, bool includeAlpha=false)
Returns a hex color.
+ + + +

◆ hsb()

+ +
+
+ + + + + +
+ + + + + + + +
static std::string faker::Color::hsb ()
+
+static
+
+ +

Return a HSB color.

+
Returns
HSB color formatted with hsb(X,X,X)
Color::hsb() // "hsb(37, 82, 50)"
+
static std::string hsb()
Return a HSB color.
+
+
@@ -241,6 +277,36 @@

static std::string hsl(bool includeAlpha=false)
Returns an HSL color.
+ + + +

◆ hsv()

+ +
+
+ + + + + +
+ + + + + + + +
static std::string faker::Color::hsv ()
+
+static
+
+ +

Return a HSV color.

+
Returns
HSV color formatted with hsv(X,X,X)
Color::hsv() // "hsv(21, 67, 39)"
+
static std::string hsv()
Return a HSV color.
+
+
diff --git a/functions_func_h.html b/functions_func_h.html index 2bd7de2bc..1a1768d27 100644 --- a/functions_func_h.html +++ b/functions_func_h.html @@ -102,7 +102,9 @@

- h -

  • hexadecimal() : faker::String
  • hobby() : faker::Person
  • horse() : faker::Animal
  • +
  • hsb() : faker::Color
  • hsl() : faker::Color
  • +
  • hsv() : faker::Color
  • httpMediaType() : faker::Internet
  • httpMethod() : faker::Internet
  • httpRequestHeader() : faker::Internet
  • diff --git a/functions_h.html b/functions_h.html index 53e5a6fae..7f8d36985 100644 --- a/functions_h.html +++ b/functions_h.html @@ -102,7 +102,9 @@

    - h -

    • hexadecimal() : faker::String
    • hobby() : faker::Person
    • horse() : faker::Animal
    • +
    • hsb() : faker::Color
    • hsl() : faker::Color
    • +
    • hsv() : faker::Color
    • httpMediaType() : faker::Internet
    • httpMethod() : faker::Internet
    • httpRequestHeader() : faker::Internet
    • diff --git a/search/all_7.js b/search/all_7.js index 1a916a475..5457a716e 100644 --- a/search/all_7.js +++ b/search/all_7.js @@ -6,11 +6,13 @@ var searchData= ['hexadecimal_3',['hexadecimal',['../classfaker_1_1String.html#ae95d6815ba2172cc63374c391d246006',1,'faker::String::hexadecimal(unsigned length=1, HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::ZeroX)'],['../classfaker_1_1String.html#a9fbbf30a77e61856af68584305a41ca6',1,'faker::String::hexadecimal(GuaranteeMap &&guarantee, unsigned length=1, HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::ZeroX)']]], ['hobby_4',['hobby',['../classfaker_1_1Person.html#a499b411db884a8b154b370009bd3b3c2',1,'faker::Person']]], ['horse_5',['horse',['../classfaker_1_1Animal.html#a3f86d0fc7c4d2544935603a2e8753b81',1,'faker::Animal']]], - ['hsl_6',['hsl',['../classfaker_1_1Color.html#ac76590c23d158333133277b6f6f2163a',1,'faker::Color']]], - ['httpmediatype_7',['httpMediaType',['../classfaker_1_1Internet.html#ab5bd8ab51d4594f34d1edc35e357a1b2',1,'faker::Internet']]], - ['httpmethod_8',['httpMethod',['../classfaker_1_1Internet.html#a1787871f9974218270bdd597320eae16',1,'faker::Internet']]], - ['httprequestheader_9',['httpRequestHeader',['../classfaker_1_1Internet.html#ab5c23e5e20d5d76c3e87e7fdbe4533b5',1,'faker::Internet']]], - ['httpresponseheader_10',['httpResponseHeader',['../classfaker_1_1Internet.html#a2035e26d9d435c144c96f3a78c02c390',1,'faker::Internet']]], - ['httpstatuscode_11',['httpStatusCode',['../classfaker_1_1Internet.html#ac9c4ff01e85aa66576683bdce5969b37',1,'faker::Internet']]], - ['humidity_12',['humidity',['../classfaker_1_1Weather.html#af7a0525193a2748adf628334d5eb542a',1,'faker::Weather']]] + ['hsb_6',['hsb',['../classfaker_1_1Color.html#ae3253948412674d74a3ad9c010df5b77',1,'faker::Color']]], + ['hsl_7',['hsl',['../classfaker_1_1Color.html#ac76590c23d158333133277b6f6f2163a',1,'faker::Color']]], + ['hsv_8',['hsv',['../classfaker_1_1Color.html#a678712ced9e1af658474934bb418faab',1,'faker::Color']]], + ['httpmediatype_9',['httpMediaType',['../classfaker_1_1Internet.html#ab5bd8ab51d4594f34d1edc35e357a1b2',1,'faker::Internet']]], + ['httpmethod_10',['httpMethod',['../classfaker_1_1Internet.html#a1787871f9974218270bdd597320eae16',1,'faker::Internet']]], + ['httprequestheader_11',['httpRequestHeader',['../classfaker_1_1Internet.html#ab5c23e5e20d5d76c3e87e7fdbe4533b5',1,'faker::Internet']]], + ['httpresponseheader_12',['httpResponseHeader',['../classfaker_1_1Internet.html#a2035e26d9d435c144c96f3a78c02c390',1,'faker::Internet']]], + ['httpstatuscode_13',['httpStatusCode',['../classfaker_1_1Internet.html#ac9c4ff01e85aa66576683bdce5969b37',1,'faker::Internet']]], + ['humidity_14',['humidity',['../classfaker_1_1Weather.html#af7a0525193a2748adf628334d5eb542a',1,'faker::Weather']]] ]; diff --git a/search/functions_7.js b/search/functions_7.js index 490d6a1a7..34b9e9531 100644 --- a/search/functions_7.js +++ b/search/functions_7.js @@ -4,11 +4,13 @@ var searchData= ['hexadecimal_1',['hexadecimal',['../classfaker_1_1String.html#ae95d6815ba2172cc63374c391d246006',1,'faker::String::hexadecimal(unsigned length=1, HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::ZeroX)'],['../classfaker_1_1String.html#a9fbbf30a77e61856af68584305a41ca6',1,'faker::String::hexadecimal(GuaranteeMap &&guarantee, unsigned length=1, HexCasing casing=HexCasing::Lower, HexPrefix prefix=HexPrefix::ZeroX)']]], ['hobby_2',['hobby',['../classfaker_1_1Person.html#a499b411db884a8b154b370009bd3b3c2',1,'faker::Person']]], ['horse_3',['horse',['../classfaker_1_1Animal.html#a3f86d0fc7c4d2544935603a2e8753b81',1,'faker::Animal']]], - ['hsl_4',['hsl',['../classfaker_1_1Color.html#ac76590c23d158333133277b6f6f2163a',1,'faker::Color']]], - ['httpmediatype_5',['httpMediaType',['../classfaker_1_1Internet.html#ab5bd8ab51d4594f34d1edc35e357a1b2',1,'faker::Internet']]], - ['httpmethod_6',['httpMethod',['../classfaker_1_1Internet.html#a1787871f9974218270bdd597320eae16',1,'faker::Internet']]], - ['httprequestheader_7',['httpRequestHeader',['../classfaker_1_1Internet.html#ab5c23e5e20d5d76c3e87e7fdbe4533b5',1,'faker::Internet']]], - ['httpresponseheader_8',['httpResponseHeader',['../classfaker_1_1Internet.html#a2035e26d9d435c144c96f3a78c02c390',1,'faker::Internet']]], - ['httpstatuscode_9',['httpStatusCode',['../classfaker_1_1Internet.html#ac9c4ff01e85aa66576683bdce5969b37',1,'faker::Internet']]], - ['humidity_10',['humidity',['../classfaker_1_1Weather.html#af7a0525193a2748adf628334d5eb542a',1,'faker::Weather']]] + ['hsb_4',['hsb',['../classfaker_1_1Color.html#ae3253948412674d74a3ad9c010df5b77',1,'faker::Color']]], + ['hsl_5',['hsl',['../classfaker_1_1Color.html#ac76590c23d158333133277b6f6f2163a',1,'faker::Color']]], + ['hsv_6',['hsv',['../classfaker_1_1Color.html#a678712ced9e1af658474934bb418faab',1,'faker::Color']]], + ['httpmediatype_7',['httpMediaType',['../classfaker_1_1Internet.html#ab5bd8ab51d4594f34d1edc35e357a1b2',1,'faker::Internet']]], + ['httpmethod_8',['httpMethod',['../classfaker_1_1Internet.html#a1787871f9974218270bdd597320eae16',1,'faker::Internet']]], + ['httprequestheader_9',['httpRequestHeader',['../classfaker_1_1Internet.html#ab5c23e5e20d5d76c3e87e7fdbe4533b5',1,'faker::Internet']]], + ['httpresponseheader_10',['httpResponseHeader',['../classfaker_1_1Internet.html#a2035e26d9d435c144c96f3a78c02c390',1,'faker::Internet']]], + ['httpstatuscode_11',['httpStatusCode',['../classfaker_1_1Internet.html#ac9c4ff01e85aa66576683bdce5969b37',1,'faker::Internet']]], + ['humidity_12',['humidity',['../classfaker_1_1Weather.html#af7a0525193a2748adf628334d5eb542a',1,'faker::Weather']]] ];