ArborX


rgb_r

Longname: rgb_r   Open the Documentation Legend
Released: 8.00 
Created: 8.00 
See also: rgb rgb_g rgb_b cmyk cmyk_c cmyk_m cmyk cmyk_k hsb hsb_h hsb_s hsb_b

Summary
A keyword used with function variables: ^[funcname parameter(s)]. This syntax can be used anywhere that a regular 3B2 variable can be used: in show strings, in scripts, in expressions, etc. Function variables are a V8 feature that uniforms variable use and functions into a readable syntax. The 'rgb_r' function will extract the red from the colour selected within the syntax and return the relevant RGB values for the specified colour, 'rgb' will give you all of the values, its r,g,b variants will give the specific colour asked for.
Example extract

The following show string will display the current value of the th command (text height).

 <?show ^[prop th]?>

Syntax (1)
rgb_r colour:t
colour:t

The colour name to extract RGB values from.

^[rgb_r colour] red component of colour.

 <?show $^[rgb_r my-nice-colour]>

Document created on 02-Nov-2004 (revision 1)