Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
component:screen [2015/10/08 21:10]
phallopode typo in setPrecise() -
component:screen [2024/03/26 15:59] (current)
dcnick3
Line 8: Line 8:
 - `isOn():​boolean`  ​ - `isOn():​boolean`  ​
   Returns whether the screen is currently on.   Returns whether the screen is currently on.
-- `turnOn():​boolean` ​  +- `turnOn():boolean, ​boolean` ​  
-  Turns the screen on. Returns ​true if it was off. +  Turns the screen on. Returns ​whether ​it was off and the new power state
-- `turnOff():​boolean` ​  +- `turnOff():boolean, ​boolean` ​  
-  Turns off the screen. Returns ​true if it was on.+  Turns off the screen. Returns ​whether ​it was on and the new power state.
 - `getAspectRatio():​number,​ number`  ​ - `getAspectRatio():​number,​ number`  ​
   The aspect ratio of the screen. For multi-block screens this is the number of blocks, horizontal and vertical.   The aspect ratio of the screen. For multi-block screens this is the number of blocks, horizontal and vertical.