mIRC Home    About    Download    Register    News    Help

Print Thread
#143377 23/02/06 06:35 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
hi all,
i've seen a script that uses multiple color pallets in mirc.ini.
My questions is how to make those colors.
I don't understand the colorcode that they use like this :
Code:
 16777215,3618615,12087408,16744448,255,32764,65535,43008,9671424,16776960,16515072,16711935,8355711,16711808,8355711,13816530 

can someone explain to me how those numbers turn out to be colors?

#143378 23/02/06 07:58 PM
Joined: Feb 2006
Posts: 54
T
Babel fish
Offline
Babel fish
T
Joined: Feb 2006
Posts: 54
Code:
 
If you type //echo -a $color($rgb(16777215)) it makes sense 
 
smile

#143379 23/02/06 08:44 PM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
the only thing i get is a black 1

#143380 23/02/06 09:13 PM
Joined: Feb 2006
Posts: 54
T
Babel fish
Offline
Babel fish
T
Joined: Feb 2006
Posts: 54
well then try
Code:
 
//echo -a $rgb(3618615)
//echo -a $color(1) $color(2) $color(3) $color(4) $color(5)
 

Last edited by tso29; 23/02/06 09:19 PM.
#143381 24/02/06 06:34 AM
Joined: Feb 2005
Posts: 344
B
Fjord artisan
OP Offline
Fjord artisan
B
Joined: Feb 2005
Posts: 344
oke //echo -a $rgb(3618615) returns 55,55,55 the rgb colorcode.
but how do I convert the rgb into the number that is in the pallet in mirc.ini?
I have this colorcode in rgb: 194,136,216 it's a purple.

#143382 24/02/06 07:38 AM
Joined: Feb 2006
Posts: 54
T
Babel fish
Offline
Babel fish
T
Joined: Feb 2006
Posts: 54
Well actuali you don't have to undersend how mirc deals with colors

this is what you tring to understend :
Quote:

16777215,0,8323072,37632,255,127,10223772,32764,65535,64512,9671424,16776960,16515072,16711935,8355711,13816530

and this is what its return:
Code:
  
mIRC Classic,0,15,4,5,2,3,3,3,3,3,3,12,5,7,6,1,3,2,3,5,1,0,1,0,1,15,6,0

and this is what you get:
Code:
 
//echo -a $color(whois) $color(notice) $color(join) $color(action)
 


Link Copied to Clipboard