Project

General

Profile

$rgb » History » Version 4

Per Amundsen, 02/23/2023 07:21 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 3 Per Amundsen
table(ktable).
12
|*Parameter*|*Description*|
13
| N,N,N | An RRR,GGG,BBB value. |
14
| N | A RGB decimal value. |
15
| name | A system color name: face, shadow, hilight, 3dlight, frame, or text. |
16 1 Per Amundsen
17
*Switches*
18
19 3 Per Amundsen
table(ktable).
20
|*Switch*|*Description*|
21 4 Per Amundsen
| .hex | Returns the value in hex format. *(AdiIRC only)* |
22 1 Per Amundsen
23
*Example*
24
25
<pre>
26
; Print the RGB decimal value from 123,123,123
27
//echo -ag RGB value is $rgb(123,123,123)
28
29
; Print the RRR,GGG,BBB value from 8092539
30
//echo -ag RGB decimal value is $rgb(8092539)
31
</pre>