Function extrudeTilesetToBuffer

  • Accepts an image path and returns a Promise that resolves to a Buffer containing the extruded tileset image.

    Parameters

    • tileWidth: number

      tile width in pixels.

    • tileHeight: number

      tile height in pixels.

    • inputPath: string

      the path to the tileset you want to extrude.

    • Optionaloptions: ImageOptions = {}

      optional settings.

      • Optionalcolor?: string | number
      • Optionalextrusion?: number
      • Optionalmargin?: number
      • Optionalmime?: JimpMime
      • Optionalspacing?: number

    Returns Promise<Buffer>

    • A promise that resolves to an image buffer, or rejects with an error.