Project

General

Profile

Actions

Added in 1.9.0

$colour(name/N)

Alias for $color

Returns the Nth color index of the specified color name. If you do not specify the full name the first partial match is returned.

See also /color, $ocolor, Extra Colors.

If you specify an N value, returns the RGB value for the Nth color box.

Parameters

Parameter Description
name/N Named color or Nth color to retrieve.

Properties

Property Description
.dd returns number in double-digit format.

Example

;Get the action color
//echo -ag action color is $color(action)

;Get the action color by partial match in double digits
//echo -ag action color is $color(act).dd

;Get the rgb value for color 5
//echo -ag rgb value for 5 is $color(5)

Updated by Per Amundsen almost 2 years ago · 3 revisions

Also available in: PDF HTML TXT