UNPKG

@tsparticles/configs

Version:

tsParticles demo configurations

67 lines (66 loc) 1.55 kB
const minFilterValue = 30, minFilterAlpha = 0, options = { key: "imageMask", name: "Image Mask", smooth: true, interactivity: { events: { onHover: { enable: true, mode: "bubble", parallax: { enable: false, force: 2, smooth: 10, }, }, }, modes: { bubble: { distance: 40, duration: 2, opacity: 8, size: 15, }, }, }, particles: { move: { direction: "none", distance: 10, enable: true, speed: 1, }, number: { value: 600, }, shape: { type: ["circle", "square", "triangle"], }, size: { value: { min: 3, max: 5, }, }, }, canvasMask: { enable: true, scale: 5, pixels: { filter: (pixel) => pixel.r < minFilterValue && pixel.g < minFilterValue && pixel.b < minFilterValue ? false : pixel.a > minFilterAlpha, }, image: { src: "https://particles.js.org/images/amongus_cyan.png", }, }, background: { color: "#000000", image: "", position: "50% 50%", repeat: "no-repeat", size: "cover", }, }; export default options;