Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DivoomJimpStatic

Hierarchy

Index

Properties

Static Jimp

Jimp: Jimp

Methods

asBinaryBuffer

  • asBinaryBuffer(): Buffer[]

asDivoomMessage

getColorsAndPixels

  • getColorsAndPixels(): object

getPixelString

  • getPixelString(pixelArray: number[], nbColors: number): string
  • This builds the pixel string to use in a message

    Parameters

    • pixelArray: number[]

      the pixel array, each item being a reference to the color in the color array

    • nbColors: number

      the number of colors in the colors array

    Returns string

    the pixel sting to use in a message

Generated using TypeDoc