MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / PackedCol_ToHex

Function PackedCol_ToHex

src/PackedCol.c:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void PackedCol_ToHex(cc_string* str, PackedCol value) {
75 String_AppendHex(str, PackedCol_R(value));
76 String_AppendHex(str, PackedCol_G(value));
77 String_AppendHex(str, PackedCol_B(value));
78}
79
80cc_bool PackedCol_TryParseHex(const cc_string* str, cc_uint8* rgb) {
81 int bits[6];

Callers 2

Hex_DefaultFunction · 0.85
MenuOptionsScreen_HexGetFunction · 0.85

Calls 1

String_AppendHexFunction · 0.85

Tested by

no test coverage detected