tsParticles - v0.0.0
    Preparing search index...

    Module tsParticles Light Interaction - v4.0.0-alpha.8

    banner

    tsParticles Light Interaction

    jsDelivr npmjs npmjs GitHub Sponsors

    tsParticles interaction plugin for light effect.

    The CDN/Vanilla version JS has one required file in vanilla configuration:

    Including the tsparticles.interaction.light.min.js file will export the function to load the interaction plugin:

    loadLightInteraction
    

    Once the scripts are loaded you can set up tsParticles and the interaction plugin like this:

    (async () => {
    await loadLightInteraction(tsParticles);

    await tsParticles.load({
    id: "tsparticles",
    options: {
    /* options */
    },
    });
    })();

    This package is compatible also with ES or CommonJS modules, firstly this needs to be installed, like this:

    $ npm install @tsparticles/interaction-light
    

    or

    $ yarn add @tsparticles/interaction-light
    

    Then you need to import it in the app, like this:

    const { tsParticles } = require("@tsparticles/engine");
    const { loadLightInteraction } = require("@tsparticles/interaction-light");

    (async () => {
    await loadLightInteraction(tsParticles);
    })();

    or

    import { tsParticles } from "@tsparticles/engine";
    import { loadLightInteraction } from "@tsparticles/interaction-light";

    (async () => {
    await loadLightInteraction(tsParticles);
    })();

    Modules

    ExternalLighter
    index
    Options/Classes/Light
    Options/Classes/LightArea
    Options/Classes/LightGradient
    Options/Classes/LightOptions
    Options/Classes/LightShadow
    Options/Interfaces/ILight
    Options/Interfaces/ILightArea
    Options/Interfaces/ILightGradient
    Options/Interfaces/ILightShadow
    ParticlesLighter
    Types
    Utils