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.
2 parents 0861529 + e7f7823 commit 6bab3c0Copy full SHA for 6bab3c0
core/math/color.cpp
@@ -113,10 +113,8 @@ void _append_hex(float p_val, char32_t *string) {
113
int v = Math::round(p_val * 255.0f);
114
v = CLAMP(v, 0, 255);
115
116
- for (int i = 0; i < 2; i++) {
117
- string[i] = hex_char_table_lower[v & 0xF];
118
- v >>= 4;
119
- }
+ string[0] = hex_char_table_lower[(v >> 4) & 0xF];
+ string[1] = hex_char_table_lower[v & 0xF];
120
}
121
122
String Color::to_html(bool p_alpha) const {
0 commit comments