Light

trafficLight. Light

A Light in a traffic light.

Constructor

new Light()

Source:

Members

off :boolean

Description:
  • If the light is off.

Source:

If the light is off.

Type:
  • boolean

on :boolean

Description:
  • If the light is on.

Source:

If the light is on.

Type:
  • boolean

Methods

toggle()

Description:
  • Toggles the light.

Source:

turnOff()

Description:
  • Turns the light off.

Source:

turnOn()

Description:
  • Turns the light on.

Source: