ColorMake
Type
operator
Summary
Creates a new color value.
Syntax
color <mColor>
Description
note
The component value denotes the intensity of that component, expressed as a real number between 0 and 1. The alpha component represents the opacity of the color. If the alpha component is not specified then it is assumed to be 1 (fully opaque).
Parameters
Name | Type | Description |
---|---|---|
mColor | An expression which evaluates to a list of 3 or 4 numbers, the red, green, blue, and (optional) alpha components of the color. |
Examples
variable tColor
// Set tColor to opaque red
put color [1.0, 0.0, 0.0] into tColor
// Set tColor to partially transparent cyan
put color [0.0, 1.0, 1.0, 0.75] into tColor