$rgb » History » Version 2
Per Amundsen, 12/13/2019 09:07 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 | 2 | Per Amundsen | .hex - Returns the value in hex format. *(AdiIRC only)* |
| 18 | 1 | Per Amundsen | |
| 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> |