Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vaneenige/phenomenon/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Phenomenon is available as an npm package and can also be loaded directly from a CDN. Choose the installation method that works best for your project.Package manager
Install Phenomenon using your preferred package manager:CDN
You can also load Phenomenon directly from unpkg without any build step:When using the CDN version, Phenomenon is exposed as a global variable and can be accessed directly.
TypeScript support
Phenomenon includes TypeScript type definitions out of the box. No additional@types package is needed.
Canvas setup
Before using Phenomenon, make sure you have a<canvas> element in your HTML:
Browser support
Phenomenon requires WebGL support. It works in all modern browsers:- Chrome/Edge (latest)
- Firefox (latest)
- Safari (latest)
- Mobile browsers with WebGL support
contextType: 'webgl2' option when creating your Phenomenon instance.
Next steps
Now that you have Phenomenon installed, you’re ready to create your first particle system:Quickstart Tutorial
Follow the quickstart guide to render your first particles