phaser - v3.90.0
    Preparing search index...

    Type Alias GenerateTextureConfig

    type GenerateTextureConfig = {
        canvas?: HTMLCanvasElement;
        clearCanvas?: boolean;
        data?: any[];
        palette?: Palette;
        pixelHeight?: number;
        pixelWidth?: number;
        postRender?: GenerateTextureCallback;
        preRender?: GenerateTextureCallback;
        resizeCanvas?: boolean;
    }
    Index

    Properties

    canvas?: HTMLCanvasElement

    The HTML Canvas to draw the texture to.

    clearCanvas?: boolean

    Should the canvas be cleared before the texture is drawn?

    data?: any[]

    An array of data, where each row is a string of single values 0-9A-F, or the period character.

    palette?: Palette

    The indexed palette that the data cell values map to.

    pixelHeight?: number

    The height of each 'pixel' in the generated texture.

    pixelWidth?: number

    The width of each 'pixel' in the generated texture.

    A callback to send the canvas to after the texture has been drawn.

    A callback to send the canvas to prior to the texture being drawn.

    resizeCanvas?: boolean

    Should the canvas be resized before the texture is drawn?