phaser - v3.90.0
    Preparing search index...

    An object containing the position and color data for a single pixel in a CanvasTexture.

    type StampConfig = {
        alpha?: number;
        angle?: number;
        blendMode?: string | BlendModes | number;
        erase?: boolean;
        originX?: number;
        originY?: number;
        rotation?: number;
        scale?: number;
        scaleX?: number;
        scaleY?: number;
        skipBatch?: boolean;
        tint?: number;
    }
    Index

    Properties

    alpha?: number

    The alpha value used by the stamp.

    angle?: number

    The angle of the stamp in degrees. Rotation takes place around its origin.

    blendMode?: string | BlendModes | number

    The blend mode used when drawing the stamp. Defaults to 0 (normal).

    erase?: boolean

    Erase this stamp from the texture?

    originX?: number

    The horizontal origin of the stamp. 0 is the left, 0.5 is the center and 1 is the right.

    originY?: number

    The vertical origin of the stamp. 0 is the top, 0.5 is the center and 1 is the bottom.

    rotation?: number

    The rotation of the stamp in radians. Rotation takes place around its origin.

    scale?: number

    Sets both the horizontal and vertical scale of the stamp with a single value.

    scaleX?: number

    Set the horizontal scale of the stamp. Overrides the scale property, if provided.

    scaleY?: number

    Set the vertical scale of the stamp. Overrides the scale property, if provided.

    skipBatch?: boolean

    Skip beginning and ending a batch with this call. Use if this is part of a bigger batched draw.

    tint?: number

    The tint color value used by the stamp. WebGL only.