Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LightningChannel

This class is used to display the Lightning Channel on the Timebox Evo

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Object literals

Constructors

constructor

Properties

Private _PACKAGE_PREFIX

_PACKAGE_PREFIX: string = "4501"

Private _PACKAGE_SUFFIX

_PACKAGE_SUFFIX: string = "000000"

Private _color

_color: string

Accessors

brightness

  • get brightness(): number
  • set brightness(brightness: number): void

color

  • get color(): string | RGB | RGBA | HSL | HSLA | HSV | HSVA | TinyColor
  • set color(color: ColorInput): void
  • Gets the color of the lightning

    Returns string | RGB | RGBA | HSL | HSLA | HSV | HSVA | TinyColor

  • Sets the color of the Lightning

    Parameters

    • color: ColorInput

    Returns void

messages

power

  • get power(): boolean
  • set power(bool: boolean): void

type

Methods

Private _updateMessage

  • _updateMessage(): void

clear

  • clear(): void

push

  • push(msg: string): number
  • This queues a message in the message queue

    Parameters

    • msg: string

      the message to append in the message queue

    Returns number

    the length of the message queue

Object literals

Private _opts

_opts: object

brightness

brightness: number = 100

power

power: true = true

type

type: PlainColor = LightningType.PlainColor

Generated using TypeDoc