Project

General

Profile

$color » History » Version 11

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