Advertisement
caubert

hex2RBG

Jul 8th, 2021 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.14 KB | None | 0 0
  1. {{ $rgb := toInt64Base16 "89aa00" }}
  2. RGB > {{ shiftRight $rgb 16 }}  {{ bitwiseAnd (shiftRight $rgb 8) 0xFF }} {{ bitwiseAnd $rgb 0xFF }}
  3.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement