$color » History » Version 3
Per Amundsen, 11/08/2014 06:52 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 | .dd - returns number in double-digit format. |
||
16 | |||
17 | *Example* |
||
18 | <pre> |
||
19 | ;Get the action color |
||
20 | //echo -ag action color is $color(action) |
||
21 | |||
22 | ;Get the action color by partial match in double digits |
||
23 | //echo -ag action color is $color(act).dd |
||
24 | |||
25 | ;Get the rgb value for color 5 |
||
26 | //echo -ag rgb value for 5 is $color(5) |
||
27 | </pre> |
||
28 | |||
29 | 2 | Per Amundsen | *Color names* |
30 | |||
31 | 3 | Per Amundsen | Background text |
32 | Action text |
||
33 | Ctcp text |
||
34 | Highlight text |
||
35 | Info text |
||
36 | Info2 text |
||
37 | Invite text |
||
38 | Join text |
||
39 | Kick text |
||
40 | Mode text |
||
41 | Nick text |
||
42 | Normal text |
||
43 | Notice text |
||
44 | Notify text |
||
45 | Other text |
||
46 | Own text |
||
47 | Part text |
||
48 | Quit text |
||
49 | Topic text |
||
50 | Wallops text |
||
51 | Whois text |
||
52 | Editbox text |
||
53 | Inactive text |
||
54 | Listbox text |
||
55 | Gray text |
||
56 | Title text |
||
57 | Treebar text |