tile-extruder
    Preparing search index...

    Type Alias ExtrusionOptions

    type ExtrusionOptions = {
        color?: number | string;
        extrusion?: number;
        margin?: number;
        spacing?: number;
        tileHeight: number;
        tileWidth: number;
    }
    Index
    color?: number | string

    The color to use for the background color, which only matters if there is margin or spacing. This is passed directly to jimp which takes RGBA hex or a CSS color string, e.g. '#FF0000'. This defaults to transparent white, 0xffffff00.

    extrusion?: number

    The number of pixels to extrude the tiles. Defaults to 1.

    margin?: number

    The number of pixels between the tiles and the edge of the tileset image. Defaults to 0.

    spacing?: number

    The number of pixels between neighboring tiles. Defaults to 0.

    tileHeight: number

    The height of a tile in pixels.

    tileWidth: number

    The width of a tile in pixels.