$color » History » Version 2
Per Amundsen, 11/08/2014 06:46 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 | action |
||
32 | background |
||
33 | ctcp |
||
34 | editbox |
||
35 | gray |
||
36 | highlight |
||
37 | inactive |
||
38 | info |
||
39 | info2 |
||
40 | invite |
||
41 | join |
||
42 | kick |
||
43 | listbox |
||
44 | mode |
||
45 | nick |
||
46 | normal |
||
47 | notice |
||
48 | other |
||
49 | own |
||
50 | part |
||
51 | quit |
||
52 | title |
||
53 | topic |
||
54 | treebar |
||
55 | wallops |
||
56 | whois |