Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load a tsParticles Preset #15

Open
JoniLieh opened this issue Mar 1, 2024 · 1 comment
Open

Load a tsParticles Preset #15

JoniLieh opened this issue Mar 1, 2024 · 1 comment

Comments

@JoniLieh
Copy link

JoniLieh commented Mar 1, 2024

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
Copy link
Author

JoniLieh commented Mar 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant