#Caluclating leather armor color
1 messages · Page 1 of 1 (latest)
def to_armor(r, g, b):
return (r << 16) | (g << 8) | b
Formula for that is r << 16 + g << 8 + b
I've never seen a bitwise operator in action before.
I always wondered when they would be useful.
yea that works thank youu
Does r<<16 mean "move red bits 16 positions to the left" ?
Ok thanks !