ColorMake

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
color <mColor>
Associationscom.livecode.canvas
Summary

Creates a new color value.

Parameters
NameTypeDescription
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
// 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
Values
NameTypeDescription
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).

Tagscanvas