Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Module

The Class representing a square in QR code

Hierarchy

Constructors

Properties

Methods

Constructors

constructor

  • new Module(color?: boolean): Module
  • Create a new Module instance

    Parameters

    • Optional color: boolean

      The binary data represented by boolean

    Returns Module

Properties

Protected color

color: boolean = false

TRUE for dark, FALSE for light

Methods

copy

  • Deep copy itself

    Returns Module

getColor

  • getColor(): boolean
  • Return the color

    Returns boolean

setColor

  • setColor(value: boolean): void
  • Set the color to a new value

    Parameters

    • value: boolean

      The new color

    Returns void

Generated using TypeDoc