Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 03.11.2006, 01:37   #1
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

Quote:
Originally Posted by FidoW View Post
Is very easy, get color in HEX RGB format...

example...
FF FF 00 - yellow

now... reverse RGB colors... 00 FF FF... transform to DECIMAL.... 65535

Thats all.
Thank you, i just figured that out using http://www.shodor.org/stella2java/rgbint.html and seeing that some programs use GBR
GMan is offline  
Old 03.11.2006, 08:43   #2
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

Quote:
Originally Posted by GMan View Post
Thank you, i just figured that out using http://www.shodor.org/stella2java/rgbint.html and seeing that some programs use GBR
You could use that to save value to database:
Code:
$color_rgb= ( hexdec ( substr ( $_GET [ "name_color" ], 0, 2 ) ) + ( hexdec ( substr ( $_GET [ "name_color" ], 2, 2 ) ) << 8 ) + ( hexdec ( substr ( $_GET [ "name_color" ], 4, 2 ) ) << 16 ) );
and this to show in form field:
Code:
printf ( "%02X%02X%02X", $color_rgb & 0xff, ( $color_rgb & 0xff00 ) >> 8, ( $color_rgb & 0xff0000 ) >> 16 );
Kenjiro is offline  
Old 03.11.2006, 16:19   #3
Dubie
Архивный участник
 
Join Date: Mar 2005
Posts: 133
Default

Here is a good list of colors
Use the Access code

http://cloford.com/resources/colours/500col.htm

Should help a couple ppl
Dubie is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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. The time now is 05:18.