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

    Configuration object for the DynamicTexture.capture method.

    type CaptureConfig = {
        alpha?: number;
        angle?: number;
        blendMode?: string | BlendModes | number;
        camera?: Cameras.Scene2D.Camera;
        originX?: number;
        originY?: number;
        rotation?: number;
        scale?: number;
        scaleX?: number;
        scaleY?: number;
        tint?: number;
        transform?: "local" | "world" | TransformMatrix;
        x?: number;
        y?: number;
    }
    Index

    Properties

    alpha?: number

    The alpha value.

    angle?: number

    The angle 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 Camera to use when rendering the GameObject to the DynamicTexture. If not specified, uses the DynamicTexture's own camera.

    originX?: number

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

    originY?: number

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

    rotation?: number

    The rotation in radians. Rotation takes place around its origin.

    scale?: number

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

    scaleX?: number

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

    scaleY?: number

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

    tint?: number

    The tint color value. WebGL only.

    transform?: "local" | "world" | TransformMatrix

    The transform to use, after applying other config settings. 'local' uses the GameObject's own properties. 'world' uses the GameObject's parentContainer value to compute a world position. A TransformMatrix can also be provided, which will be used directly.

    x?: number

    The x position.

    y?: number

    The y position.