Project

General

Profile

$colour » History » Version 1

Per Amundsen, 07/13/2014 12:46 AM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$colour(name/N)*
4
5
_Alias for [[$color]]_
6
7
Returns the Nth color index of the specified color name. If you do not specify the full name the first partial match is returned.
8
9
If you specify an N value, returns the RGB value for the Nth color box.
10
11
*Parameters*
12
13
name/N - Named color or Nth color to retrieve.
14
15
*Properties*
16
17
.dd - returns number in double-digit format.
18
19
*Example*
20
<pre>
21
;Get the action color
22
//echo -ag action color is $color(action)
23
24
;Get the action color by partial match in double digits
25
//echo -ag action color is $color(act).dd
26
27
;Get the rgb value for color 5
28
//echo -ag rgb value for 5 is $color(5)
29
</pre>
30
31