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