ColorMake |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | color <mColor>
|
Associations | com.livecode.canvas |
Summary | Creates a new color value.
|
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.
|
|
Example | variable tColor
put color [1.0, 0.0, 0.0] into tColor
put color [0.0, 1.0, 1.0, 0.75] into tColor
|
Values | Name | Type | Description |
---|
return | | A new color with the given RGBA values.
|
|
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).
|
Tags | canvas |