Binary and color confusion
in
Programming Questions
•
1 year ago
I am having trouble following the results as follows... commas added for clarity
color(7,0,0,0) gives binary 111,00000000,00000000
I can see what appears to be a truncated 7 followed by two 'bytes' of zero.
color (7,0,0,255) gives 11111111,00000111,00000000,00000000 appearing to me to be 255,7,0,0
What gem have I missed please?
1