pixi.js
    Preparing search index...

    Interface BackgroundSystemOptionsAdvanced

    Options for the background system.

    interface BackgroundSystemOptions {
        background?: ColorSource;
        backgroundAlpha?: number;
        backgroundColor: ColorSource;
        clearBeforeRender?: boolean;
    }
    Index

    Properties

    background?: ColorSource

    Alias for backgroundColor

    backgroundAlpha?: number

    Transparency of the background color, value from 0 (fully transparent) to 1 (fully opaque). This value determines whether the canvas is initialized with alpha transparency support. Note: This cannot be changed after initialization. If set to 1, the canvas will remain opaque, even if a transparent background color is set later.

    1
    
    backgroundColor: ColorSource

    The background color used to clear the canvas. See ColorSource for accepted color values.

    'black'
    
    clearBeforeRender?: boolean

    Whether to clear the canvas before new render passes.

    true