phaser - v4.0.0-rc.4
    Preparing search index...

    Configuration object for the DynamicTexture.stamp method.

    type StampConfig = {
        alpha?: number;
        angle?: number;
        blendMode?: string | BlendModes | number;
        originX?: number;
        originY?: number;
        rotation?: number;
        scale?: number;
        scaleX?: number;
        scaleY?: number;
        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. If angle is non-zero, rotation is ignored.

    blendMode?: string | BlendModes | number

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

    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.

    tint?: number

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