$color » History » Version 1
Per Amundsen, 07/13/2014 12:45 AM
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 |