$rgb » History » Version 1
Per Amundsen, 08/05/2015 10:59 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | *$rgb(N,N,N|N|name)* |
||
4 | |||
5 | If N,N,N is defined, returns an RGB decimal color value. |
||
6 | if N is defined, returns a RRR,GGG,BBB value. |
||
7 | if name is defined, returns a system color RGB decimal value. |
||
8 | |||
9 | *Parameters* |
||
10 | |||
11 | N,N,N - An RRR,GGG,BBB value. |
||
12 | N - A RGB decimal value. |
||
13 | name - A system color name: face, shadow, hilight, 3dlight, frame, or text. |
||
14 | |||
15 | *Switches* |
||
16 | |||
17 | .hex - Returns the value in hex format. (AdiIRC only) |
||
18 | |||
19 | *Example* |
||
20 | |||
21 | <pre> |
||
22 | ; Print the RGB decimal value from 123,123,123 |
||
23 | //echo -ag RGB value is $rgb(123,123,123) |
||
24 | |||
25 | ; Print the RRR,GGG,BBB value from 8092539 |
||
26 | //echo -ag RGB decimal value is $rgb(8092539) |
||
27 | </pre> |