Function NumColors() Foundation

Determines the number of available colors

Syntax
NumColors() --> nColorCount
Return

Function NumColors() returns a numeric value that specifies the maximum number of available colors for the current video mode.

Return values of NumColors()
Value Colors
0 Monochrome
1 2 colors
2 4 colors
4 *) 16 colors
8 256 colors
  1. under Windows, the return value is always 4

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.