Joepocalyptic / nuxt-particles

Run lightweight, heavily customizable particle simulations in your Nuxt project with tsParticles.
https://nuxt-particles.joeypereira.dev
MIT License
29 stars 3 forks source link

Load a tsParticles Preset #15

Open JoniLieh opened 3 months ago

JoniLieh commented 3 months ago

Hey there, thanks for your package! How would I load a preset like: @tsparticles/preset-hyperspace

Maybe like this idk:

import { loadFireflyPreset } from "@tsparticles/preset-hyperspace"
import type { Container, Engine } from 'tsparticles-engine'

const onLoad = async (container: Container, engine: Engine) => {
  await loadHyperSpacePreset(engine);
}
JoniLieh commented 3 months ago

Just adding the options from the presets is temporary workaround :)