Project

General

Profile

$colour » History » Version 2

Per Amundsen, 11/09/2018 09:51 PM

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 2 Per Amundsen
_See also [[/color]], [[$ocolor]], [[Extra Colors]]._
10
11 1 Per Amundsen
If you specify an N value, returns the RGB value for the Nth color box.
12
13
*Parameters*
14
15
name/N - Named color or Nth color to retrieve.
16
17
*Properties*
18
19
.dd - returns number in double-digit format.
20
21
*Example*
22
<pre>
23
;Get the action color
24
//echo -ag action color is $color(action)
25
26
;Get the action color by partial match in double digits
27
//echo -ag action color is $color(act).dd
28
29
;Get the rgb value for color 5
30
//echo -ag rgb value for 5 is $color(5)
31
</pre>
32
33