Function colorImage

  • Internal

    Colors an image buffer with the given HSLA values.

    Parameters

    • buf: Buffer

      The image buffer to color.

    • hsla: [number, number, number, number?]

      The HSL or HSLA values to use.

    • Optionalbody: boolean

      Should only be set to true for coloring a 0.6 tee body part.

    Returns Promise<Buffer>