We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3fd0ea commit 841f49eCopy full SHA for 841f49e
1 file changed
util/colors.hh
@@ -27,12 +27,18 @@ struct Color {
27
uint8_t r, g, b;
28
};
29
30
- explicit constexpr Color(uint8_t r = 0, uint8_t g = 0, uint8_t b = 0)
+ explicit constexpr Color(uint8_t r, uint8_t g, uint8_t b)
31
: r_(r)
32
, g_(g)
33
, b_(b) {
34
}
35
36
+ constexpr Color()
37
+ : r_(0)
38
+ , g_(0)
39
+ , b_(0) {
40
+ }
41
+
42
constexpr Color(uint16_t rgb565)
43
: r_((rgb565 & 0xf800) >> 8)
44
, g_((rgb565 & 0x07e0) >> 3)
0 commit comments