tsParticles - v4.0.0-beta.12
    Preparing search index...

    Background Mask

    Configures masking between particles and the background/cover layer.

    Key Type Example Notes
    enable boolean true / false Enables background mask mode
    composite string "destination-out" Canvas composite operation
    cover string / object "#000000" Cover color config, supports IBackgroundMaskCover
    Key Type Example Notes
    color string / object "#bada55" / { "value": "#bada55" } Cover color, supports IColor
    opacity number 1 / 0.5 Cover alpha, from 0 to 1
    {
    "backgroundMask": {
    "enable": true
    }
    }
    {
    "backgroundMask": {
    "enable": true,
    "composite": "destination-out",
    "cover": {
    "color": {
    "value": "#111827"
    },
    "opacity": 0.9
    }
    }
    }