Skip to content

Commit 844eff3

Browse files
committed
hex colors def alpha
1 parent 49bae74 commit 844eff3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Qor/Graphics.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ class Color
110110
else if(boost::starts_with(s, "#"))
111111
s = s.substr(1);
112112

113+
if(s.size() == 6)
114+
c[3] = 1.0f;
115+
113116
assert(s.size() == 6 || s.size() == 8);
114117
for(size_t i=0;i<s.size()/2;++i) {
115118
std::string sub = s.substr(i*2,2);

0 commit comments

Comments
 (0)