Error getting tags :
error 404Error getting tags :
error 404 screenColors | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
screenColors
Basics
Expander triangle
Type
Function
Syntax
the screenColors screenColors()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the number of colors the screen can display.
Examples

the screenColors
if the screenColors = 2 then put "black & white" into graphicsLevel

Additional Comments
Expander triangle

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.

Value:

The screenColors function returns a positive integer which is a power of two.

Comments:

If the system has more than one monitor, the screenColors function returns the number of colors for the main screen.

The expression

the screenColors

is equal to

the screenDepth^2

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.

User Comments
Expander triangle