Project

General

Profile

$color » History » Version 4

Per Amundsen, 07/25/2017 04:32 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$color(name/N)*
4
5
Returns the Nth color index of the specified color name. If you do not specify the full name the first partial match is returned.
6
7
If you specify an N value, returns the RGB value for the Nth color box.
8
9
*Parameters*
10
11
name/N - Named color or Nth color to retrieve.
12
13
*Properties*
14
15 4 Per Amundsen
.dd - Returns number in double-digit format.
16
.hex - Returns the color in RRGGBB hex format. (AdiIRC only)
17 1 Per Amundsen
18
*Example*
19
<pre>
20
;Get the action color
21
//echo -ag action color is $color(action)
22
23
;Get the action color by partial match in double digits
24
//echo -ag action color is $color(act).dd
25
26
;Get the rgb value for color 5
27
//echo -ag rgb value for 5 is $color(5)
28
</pre>
29
30 2 Per Amundsen
*Color names*
31
32 3 Per Amundsen
Background text
33
Action text
34
Ctcp text
35
Highlight text
36
Info text
37
Info2 text
38
Invite text
39
Join text
40
Kick text
41
Mode text
42
Nick text
43
Normal text
44
Notice text
45
Notify text
46
Other text
47
Own text
48
Part text
49
Quit text
50
Topic text
51
Wallops text
52
Whois text
53
Editbox text
54
Inactive text
55
Listbox text
56
Gray text
57
Title text
58
Treebar text