Project

General

Profile

$color » History » Version 9

Per Amundsen, 12/13/2019 09:13 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 6 Per Amundsen
_See also [[/color]], [[$ocolor]], [[Extra Colors]]._
10 5 Per Amundsen
11 1 Per Amundsen
*Parameters*
12
13
name/N - Named color or Nth color to retrieve.
14
15
*Properties*
16
17 4 Per Amundsen
.dd - Returns number in double-digit format.
18 9 Per Amundsen
.hex - Returns the color in RRGGBB hex format. *(AdiIRC only)*
19 1 Per Amundsen
20
*Example*
21
<pre>
22 8 Per Amundsen
; Get the action color.
23 1 Per Amundsen
//echo -ag action color is $color(action)
24
25 8 Per Amundsen
; Get the action color by partial match in double digits.
26 1 Per Amundsen
//echo -ag action color is $color(act).dd
27
28 8 Per Amundsen
; Get the rgb value for color 5.
29 1 Per Amundsen
//echo -ag rgb value for 5 is $color(5)
30
</pre>
31
32 2 Per Amundsen
*Color names*
33
34 7 Per Amundsen
Background
35 3 Per Amundsen
Background text
36
Action text
37
Ctcp text
38
Highlight text
39
Info text
40
Info2 text
41
Invite text
42
Join text
43
Kick text
44
Mode text
45
Nick text
46
Normal text
47
Notice text
48
Notify text
49
Other text
50
Own text
51
Part text
52
Quit text
53
Topic text
54
Wallops text
55
Whois text
56 7 Per Amundsen
Editbox
57 3 Per Amundsen
Editbox text
58
Inactive text
59 7 Per Amundsen
Listbox
60 3 Per Amundsen
Listbox text
61
Gray text
62
Title text
63 7 Per Amundsen
Treebar
64 3 Per Amundsen
Treebar text