UNPKG

@tsparticles/basic

Version:

Easily create highly customizable particle animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Riot.js, Inferno.

40 lines (35 loc) 6.23 kB
(function(g){g.__tsParticlesInternals=g.__tsParticlesInternals||{};g.__tsParticlesInternals.bundles=g.__tsParticlesInternals.bundles||{};g.__tsParticlesInternals.effects=g.__tsParticlesInternals.effects||{};g.__tsParticlesInternals.engine=g.__tsParticlesInternals.engine||{};g.__tsParticlesInternals.interactions=g.__tsParticlesInternals.interactions||{};g.__tsParticlesInternals.palettes=g.__tsParticlesInternals.palettes||{};g.__tsParticlesInternals.paths=g.__tsParticlesInternals.paths||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins=g.__tsParticlesInternals.plugins||{};g.__tsParticlesInternals.plugins.emittersShapes=g.__tsParticlesInternals.plugins.emittersShapes||{};g.__tsParticlesInternals.presets=g.__tsParticlesInternals.presets||{};g.__tsParticlesInternals.shapes=g.__tsParticlesInternals.shapes||{};g.__tsParticlesInternals.updaters=g.__tsParticlesInternals.updaters||{};g.__tsParticlesInternals.utils=g.__tsParticlesInternals.utils||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas=g.__tsParticlesInternals.canvas||{};g.__tsParticlesInternals.canvas.utils=g.__tsParticlesInternals.canvas.utils||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path=g.__tsParticlesInternals.path||{};g.__tsParticlesInternals.path.utils=g.__tsParticlesInternals.path.utils||{};var __tsProxyFactory=typeof Proxy!=="undefined"?function(obj){return new Proxy(obj,{get:function(target,key){if(!(key in target)){target[key]={};}return target[key];}});}:function(obj){return obj;};g.__tsParticlesInternals.bundles=__tsProxyFactory(g.__tsParticlesInternals.bundles);g.__tsParticlesInternals.effects=__tsProxyFactory(g.__tsParticlesInternals.effects);g.__tsParticlesInternals.interactions=__tsProxyFactory(g.__tsParticlesInternals.interactions);g.__tsParticlesInternals.palettes=__tsProxyFactory(g.__tsParticlesInternals.palettes);g.__tsParticlesInternals.paths=__tsProxyFactory(g.__tsParticlesInternals.paths);g.__tsParticlesInternals.plugins=__tsProxyFactory(g.__tsParticlesInternals.plugins);g.__tsParticlesInternals.plugins.emittersShapes=__tsProxyFactory(g.__tsParticlesInternals.plugins.emittersShapes);g.__tsParticlesInternals.presets=__tsProxyFactory(g.__tsParticlesInternals.presets);g.__tsParticlesInternals.shapes=__tsProxyFactory(g.__tsParticlesInternals.shapes);g.__tsParticlesInternals.updaters=__tsProxyFactory(g.__tsParticlesInternals.updaters);g.__tsParticlesInternals.utils=__tsProxyFactory(g.__tsParticlesInternals.utils);g.__tsParticlesInternals.canvas=__tsProxyFactory(g.__tsParticlesInternals.canvas);g.__tsParticlesInternals.path=__tsProxyFactory(g.__tsParticlesInternals.path);g.tsparticlesInternalExports=g.tsparticlesInternalExports||{};})(typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:this); /* tsParticles v4.1.0 */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@tsparticles/plugin-blend'), require('@tsparticles/shape-circle'), require('@tsparticles/plugin-hex-color'), require('@tsparticles/plugin-hsl-color'), require('@tsparticles/plugin-move'), require('@tsparticles/updater-opacity'), require('@tsparticles/updater-out-modes'), require('@tsparticles/updater-paint'), require('@tsparticles/plugin-rgb-color'), require('@tsparticles/updater-size')) : typeof define === 'function' && define.amd ? define(['exports', '@tsparticles/plugin-blend', '@tsparticles/shape-circle', '@tsparticles/plugin-hex-color', '@tsparticles/plugin-hsl-color', '@tsparticles/plugin-move', '@tsparticles/updater-opacity', '@tsparticles/updater-out-modes', '@tsparticles/updater-paint', '@tsparticles/plugin-rgb-color', '@tsparticles/updater-size'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.__tsParticlesInternals = global.__tsParticlesInternals || {}, global.__tsParticlesInternals.bundles = global.__tsParticlesInternals.bundles || {}, global.__tsParticlesInternals.bundles.basic = global.__tsParticlesInternals.bundles.basic || {}), global.__tsParticlesInternals.plugins.blend, global.__tsParticlesInternals.shapes.circle, global.__tsParticlesInternals.plugins.hexColor, global.__tsParticlesInternals.plugins.hslColor, global.__tsParticlesInternals.plugins.move, global.__tsParticlesInternals.updaters.opacity, global.__tsParticlesInternals.updaters.outModes, global.__tsParticlesInternals.updaters.paint, global.__tsParticlesInternals.plugins.rgbColor, global.__tsParticlesInternals.updaters.size)); })(this, (function (exports, pluginBlend, shapeCircle, pluginHexColor, pluginHslColor, pluginMove, updaterOpacity, updaterOutModes, updaterPaint, pluginRgbColor, updaterSize) { 'use strict'; async function loadBasic(engine) { engine.checkVersion("4.1.0"); await engine.pluginManager.register(async (e) => { await Promise.all([ pluginBlend.loadBlendPlugin(e), pluginHexColor.loadHexColorPlugin(e), pluginHslColor.loadHslColorPlugin(e), pluginRgbColor.loadRgbColorPlugin(e), pluginMove.loadMovePlugin(e), shapeCircle.loadCircleShape(e), updaterPaint.loadPaintUpdater(e), updaterOpacity.loadOpacityUpdater(e), updaterOutModes.loadOutModesUpdater(e), updaterSize.loadSizeUpdater(e), ]); }); } const globalObject = globalThis; globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {}; globalObject.loadBasic = loadBasic; exports.loadBasic = loadBasic; })); Object.assign(globalThis.window || globalThis, { loadBasic: (globalThis.__tsParticlesInternals.bundles.basic || {}).loadBasic }); globalThis.__tsParticlesInternals = globalThis.__tsParticlesInternals || {}; if (!globalThis.__tsParticlesInternals.engine || !globalThis.__tsParticlesInternals.engine.tsParticles) { globalThis.__tsParticlesInternals.engine = globalThis.__tsParticlesInternals.bundles.basic || {}; } delete (globalThis.window || globalThis).tsparticlesInternalExports;