screenColors | |||||||
Type | function | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Returns the number of colors the screen can display. | ||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux | ||||||
Platforms | desktop, server | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Property: colorWorld, colorMap, borderPixel, dontRefresh, remapColor Control Structure: function Keyword: integer Object: image Glossary: return, application Command: unlock colorMap Function: screenType | ||||||
Description | Use the screenColors function to determine the color capacity of the screen. For example, you might display different images depending on the number of colors available. If the system has more than one monitor, the screenColors function returns the number of colors for the main screen. The expression
is equal to
The value returned by the screenColors function is updated only when you start up the application. If you change the screen settings after starting up the application, you must quit and restart to update the screenColors. |