mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
[backport] print more information for the previous commit
(cherry picked from commit 717da9f158)
This commit is contained in:
@@ -86,7 +86,9 @@ proc extractRGB*(a: Color): tuple[r, g, b: range[0..255]] =
|
||||
# assert extractRGB(a) == (r: 255.Col, g: 0.Col, b: 255.Col)
|
||||
# assert extractRGB(b) == (r: 0.Col, g: 255.Col, b: 204.Col)
|
||||
echo extractRGB(a)
|
||||
echo typeof(extractRGB(a))
|
||||
echo extractRGB(b)
|
||||
echo typeof(extractRGB(b))
|
||||
|
||||
result.r = a.int shr 16 and 0xff
|
||||
result.g = a.int shr 8 and 0xff
|
||||
|
||||
Reference in New Issue
Block a user