Project

General

Profile

$color » History » Revision 3

Revision 2 (Per Amundsen, 11/08/2014 06:46 PM) → Revision 3/11 (Per Amundsen, 11/08/2014 06:52 PM)

_Added in 1.9.0_ 

 *$color(name/N)* 

 Returns the Nth color index of the specified color name. If you do not specify the full name the first partial match is returned. 

 If you specify an N value, returns the RGB value for the Nth color box. 

 *Parameters* 

 name/N - Named color or Nth color to retrieve. 

 *Properties* 

 .dd - returns number in double-digit format. 

 *Example* 
 <pre> 
 ;Get the action color 
 //echo -ag action color is $color(action) 

 ;Get the action color by partial match in double digits 
 //echo -ag action color is $color(act).dd 

 ;Get the rgb value for color 5 
 //echo -ag rgb value for 5 is $color(5) 
 </pre> 

 *Color names* 

 Background text action 
 Action text background 
 Ctcp text ctcp 
 Highlight text editbox 
 Info text gray 
 Info2 text highlight 
 Invite text inactive 
 Join text info 
 Kick text info2 
 Mode text invite 
 Nick text join 
 Normal text kick 
 Notice text listbox 
 Notify text mode 
 Other text nick 
 Own text normal 
 Part text notice 
 Quit text other 
 Topic text own 
 Wallops text part 
 Whois text quit 
 Editbox text title 
 Inactive text topic 
 Listbox text treebar 
 Gray text wallops 
 Title text whois 
 Treebar text