colorNames

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the colorNames
colorNames()
Summary

Returns a list of the color names you can use in LiveCode.

Introduced1.0
Changes

In LiveCode 8.1 the Gray1-100 colors were corrected to match the shades of gray from the X11 color names.

OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the colorNames
if field "Color" is not among the lines of the colorNames then beep
Values
NameTypeDescription
return

The colorNames function returns a list of color names, one per line.

RelatedProperty: hiliteColor, shadowColor, foregroundColor, linkHiliteColor, HTMLText, borderColor, penColor, focusColor, brushColor, properties, backdrop, bottomColor, backgroundColor, accentColor, topColor, linkColor, selectionHandleColor
Operator: is a
Command: answer color
Function: propertyNames, functionNames
Glossary: property, LiveCode, return
Description

Use the colorNames property to check whether a particular color name can be used to specify properties such as foregroundColor and backgroundColor.

You can use the color names with the foregroundColor, backgroundColor, focusColor, topColor, bottomColor, hiliteColor, borderColor, shadowColor, selectionHandleColor, accentColor, backdrop, brushColor, and penColor properties.

Tagsui