Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var/A = #123456
- if(!A)
- return 0
- var/R = hex2num(copytext(A,2,4))
- var/G = hex2num(copytext(A,4,6))
- var/B = hex2num(copytext(A,6,0)
- var/O = rgb(R,G,B)
- world.log << "[R]"
- world.log << "[G]"
- world.log << "[B]"
- world.log << "[O]"
Add Comment
Please, Sign In to add comment