Project

General

Profile

$rgb » History » Revision 3

Revision 2 (Per Amundsen, 12/13/2019 09:07 PM) → Revision 3/4 (Per Amundsen, 02/23/2023 07:20 PM)

_Added in 1.9.0_ 

 *$rgb(N,N,N|N|name)* 

 If N,N,N is defined, returns an RGB decimal color value. 
 if N is defined, returns a RRR,GGG,BBB value. 
 if name is defined, returns a system color RGB decimal value. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | N,N,N | - An RRR,GGG,BBB value. | 
 | N | - A RGB decimal value. | 
 | name | - A system color name: face, shadow, hilight, 3dlight, frame, or text. | 

 *Switches* 

 table(ktable). 
 |*Switch*|*Description*| 
 .hex - Returns the value in hex format. *(AdiIRC only)* 

 *Example* 

 <pre> 
 ; Print the RGB decimal value from 123,123,123 
 //echo -ag RGB value is $rgb(123,123,123) 

 ; Print the RRR,GGG,BBB value from 8092539 
 //echo -ag RGB decimal value is $rgb(8092539) 
 </pre>