Raised This Month: $ Target: $400
 0% 

RGB, RGBA, Hex


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-17-2012 , 11:19   Re: RGB, RGBA, Hex
Reply With Quote #2

Ok, sry. I take this second post

hex-triple to back decimal-triple (explain later)
PHP Code:
    new my_color 0x05C8FF;
    new 
r,g,b;
    
= ((my_color >> 16) & 0xFF);
    
= ((my_color >> 8) & 0xFF);
    
= ((my_color >> 0) & 0xFF);

    
PrintToChatAll("Hex %06X = R %i, G %i, B %i"my_colorrgb); 

Last edited by Bacardi; 06-17-2012 at 11:22.
Bacardi is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode