**This is an old revision of the document!**

Component: Screen

This component is provided by screen blocks (either when placed in the world or when installed in a robot).

Component name: screen.
Callbacks:

  • isOn():boolean
    Returns whether the screen is currently on.
  • turnOn():boolean
    Turns the screen on. Returns true if it was off.
  • turnOff():boolean
    Turns off the screen. Returns true if it was on.
  • getAspectRatio():number, number
    The aspect ratio of the screen. For multi-block screens this is the number of blocks, horizontal and vertical.
  • getKeyboards():table
    The list of keyboards attached to the screen.