Project

General

Profile

$colour » History » Revision 2

Revision 1 (Per Amundsen, 07/13/2014 12:46 AM) → Revision 2/3 (Per Amundsen, 11/09/2018 09:51 PM)

_Added in 1.9.0_ 

 *$colour(name/N)* 

 _Alias for [[$color]]_ 

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

 _See also [[/color]], [[$ocolor]], [[Extra Colors]]._ 

 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>