Guest User

Untitled

a guest
Oct 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var/A = #123456
  2.  
  3. if(!A)
  4.  
  5. return 0
  6.  
  7. var/R = hex2num(copytext(A,2,4))
  8.  
  9. var/G = hex2num(copytext(A,4,6))
  10.  
  11. var/B = hex2num(copytext(A,6,0)
  12.  
  13. var/O = rgb(R,G,B)
  14.  
  15. world.log << "[R]"
  16.  
  17. world.log << "[G]"
  18.  
  19. world.log << "[B]"
  20.  
  21. world.log << "[O]"
Add Comment
Please, Sign In to add comment