We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3ed272 commit 504adf8Copy full SHA for 504adf8
docs/Color.adoc
@@ -39,6 +39,28 @@ constexpr Color(uint32_t rgb, uint8_t a = 255); <3>
39
<2> Constructor with `r`, `g`, `b` and optionally `a` initializers.
40
<3> Constructor with an link:https://en.wikipedia.org/wiki/Web_colors#Hex_triplet[hex triplet] and an alpha channel
41
42
+=== `to_hex`
43
+
44
+[source]
45
+----
46
+constexpr uint32_t to_hex() const;
47
48
49
+Transform the color into an hex triplet with an alpha channel.
50
51
+See also: <<to_rgba32>>
52
53
+=== `to_rgba32`
54
55
56
57
+constexpr std::array<uint8_t, 4> to_rgba32() const;
58
59
60
+Transform the color in an array of four 8-bit channels.
61
62
+See also: <<to_hex>>
63
64
== Operators
65
66
=== `operator==`
0 commit comments