Difference between revisions of "platform.isColorDisplay"

From Inspired-Lua Wiki
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...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
platform.'''isDeviceModeRendering''' is a function that is part of [[:Category:platform|platform]].
+
platform.'''isColorDisplay''' is a function that is part of [[:Category:platform|platform]].
  
  
 
Returns a boolean :  
 
Returns a boolean :  
* ''true'' if the script is running on the hand-held device or in the emulator of the desktop software.
+
* ''true'' if the display of the host platform is color-capable (Nspire CX, Nspire CX CAS, Computer Software)
* ''false'' if the script is running in the normal view of the desktop software.
+
* ''false'' false if the display is gray scale (Nspire non-CAS, Nspire CAS)
 
+
     
  
 
{{Since|3.0}}
 
{{Since|3.0}}
  
 
== Syntax  ==
 
== Syntax  ==
platform.'''isDeviceModeRendering'''()  
+
platform.'''isColorDisplay'''()  
  
 
== Example  ==
 
== Example  ==
<syntaxhighlight>device = platform.isDeviceModeRendering()</syntaxhighlight>
+
<syntaxhighlight>hasColor = platform.isColorDisplay()</syntaxhighlight>
  
 
== See also  ==
 
== See also  ==

Latest revision as of 22:18, 3 September 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)
  • 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