diff options
author | bptato <nincsnevem662@gmail.com> | 2022-11-25 00:32:54 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-11-25 00:33:39 +0100 |
commit | b086e346afeded51c94c9b77280dcea6f6b3ce8a (patch) | |
tree | e2fd9f29e77ab787f960bbd8ba190a14a6d5d7a0 /src/types | |
parent | 896489a6c500e28f13d0237ab691622cb5c5114f (diff) | |
download | chawan-b086e346afeded51c94c9b77280dcea6f6b3ce8a.tar.gz |
Buffer improvements
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/color.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/color.nim b/src/types/color.nim index c33e2b5c..9fc00edc 100644 --- a/src/types/color.nim +++ b/src/types/color.nim @@ -212,7 +212,7 @@ func parseHexColor*(s: string): Option[RGBAColor] = case s.len of 6: let c = (hexValue(s[0]) shl 20) or (hexValue(s[1]) shl 16) or - (hexValue(s[1]) shl 12) or (hexValue(s[3]) shl 8) or + (hexValue(s[2]) shl 12) or (hexValue(s[3]) shl 8) or (hexValue(s[4]) shl 4) or hexValue(s[5]) return some(RGBAColor(c)) of 8: |