Created
          October 17, 2013 15:47 
        
      - 
      
 - 
        
Save olekukonko/7027323 to your computer and use it in GitHub Desktop.  
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Inverse imagecolorat | |
| $rgb = 11840909 ; | |
| $r = ($rgb >> 16) & 0xFF; | |
| $g = ($rgb >> 8) & 0xFF; | |
| $b = $rgb & 0xFF; | |
| // Convert To R , G, B | |
| var_dump($r ,$g , $b); | |
| // Back to RGB | |
| $rgb = $b + $g * 0x100 + $r * 0x10000; | |
| var_dump($rgb); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment