Difference between revisions of "platform.isColorDisplay"
Jump to navigation
Jump to search
(Created page with "platform.'''isDeviceModeRendering''' is a function that is part of platform. Returns a boolean : * ''true'' if the script is running on the hand-held de...") |
|||
Line 1: | Line 1: | ||
− | platform.''' | + | platform.'''isColorDisplay''' is a function that is part of [[:Category:platform|platform]]. |
Returns a boolean : | Returns a boolean : | ||
− | * ''true'' if the | + | * ''true'' if the display of the host platform is color-capable (Nspire CX, Nspire CX CAS, Computer software emulator) |
− | * ''false'' if the | + | * ''false'' false if the display is gray scale (Nspire non-CAS, Nspire CAS) |
− | + | ||
{{Since|3.0}} | {{Since|3.0}} | ||
== Syntax == | == Syntax == | ||
− | platform.''' | + | platform.'''isColorDisplay'''() |
== Example == | == Example == | ||
− | <syntaxhighlight> | + | <syntaxhighlight>hasColor = platform.isColorDisplay()</syntaxhighlight> |
== See also == | == See also == |
Revision as of 23:44, 24 May 2011
platform.isColorDisplay is a function that is part of platform.
Returns a boolean :
- true if the display of the host platform is color-capable (Nspire CX, Nspire CX CAS, Computer software emulator)
- false false if the display is gray scale (Nspire non-CAS, Nspire CAS)
This has been introduced in TI-Nspire OS 3.0 (Changes).
Syntax
platform.isColorDisplay()
Example
hasColor = platform.isColorDisplay()
See also