tile-extruder
    Preparing search index...

    Function extrudeTilesetToBuffer

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

      Parameters

      • __namedParameters: ExtrusionOptions & { inputPath: string; mime?: JimpMime }
        • inputPath: string

          The path to the tileset image to extrude.

        • Optionalmime?: JimpMime

          The mime type that should be used for the buffer. Defaults to using the image's original mime type, and if not available, uses png. Supported mime options, see JimpMime.

      Returns Promise<Buffer<ArrayBufferLike>>