UNPKG

@tsparticles/configs

Version:

tsParticles demo configurations

177 lines (176 loc) 5.21 kB
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "@tsparticles/engine"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const engine_1 = require("@tsparticles/engine"); const emitterRate = { delay: 0.1, quantity: 2, }, options = { key: "emitterSpawnColor", name: "Emitter Spawn Color", particles: { opacity: { value: 1, }, size: { value: 3, }, life: { count: 1, duration: { value: 5, }, }, move: { enable: true, speed: 3, outModes: { default: "destroy", }, }, }, background: { color: "#000000", }, emitters: [ { position: { x: 33, y: 0, }, rate: emitterRate, particles: { move: { direction: engine_1.MoveDirection.bottomRight, }, }, spawnColor: { value: "#ff0000", animation: { h: { enable: true, speed: 10, }, }, }, }, { position: { x: 33, y: 100, }, rate: emitterRate, particles: { move: { direction: engine_1.MoveDirection.topRight, }, }, spawnColor: { value: "#ff0000", animation: { s: { enable: true, speed: 10, offset: { min: -10, max: 10, }, }, }, }, }, { position: { x: 100, y: 0, }, rate: emitterRate, particles: { move: { direction: engine_1.MoveDirection.bottomLeft, }, }, spawnColor: { value: "#ff0000", animation: { l: { enable: true, speed: 10, offset: { min: -10, max: 10, }, }, }, }, }, { position: { x: 100, y: 100, }, rate: emitterRate, particles: { move: { direction: engine_1.MoveDirection.topLeft, }, }, spawnColor: { value: "#ff0000", animation: { h: { enable: true, speed: 10, }, s: { enable: true, speed: 10, offset: { min: -10, max: 10, }, }, }, }, }, { position: { x: 66, y: 50, }, rate: emitterRate, particles: { move: { direction: engine_1.MoveDirection.none, }, }, spawnColor: { value: "#ff0000", animation: { h: { enable: true, speed: 10, }, l: { enable: true, speed: 10, offset: { min: -10, max: 10, }, }, }, }, }, ], }; exports.default = options; });