rgb

Syntax rgb (value)

Params value is the object whose datatype you wish to coerce to rgbType.

Action Coerces the datatype of value to be an rgb datatype if possible.

Returns The resulting rgb value.

Examples rgb ("30, 40, 50")

   » 30, 40, 50 // red value = 30, green value = 40, blue value = 50

Errors If value is an improperly formatted string or a type that cannot be coerced to an rgb, an error message is generated. Only strings and binary values that are six bytes long can be converted.

Notes This is an advanced Frontier verb of primary interest to implementers and advanced scripters. It is not necessary to understand it to use Frontier effectively for most tasks.

This verb is most useful in dealing with Macintosh-specific IAC situations where an rgb value is required by one of the programs involved in the IAC process.

In order for a string value to be recognized as an rgb, it must be made up of three short numbers separated by commas. The numbers are interpreted as the red, green and blue components, respectively. Leading blanks are allowed before each number in the

string.

Discuss