2.1.0 • Published 6 months ago
@newkrok/three-particles v2.1.0
THREE Particles
Particle system for ThreeJS.
Features
- Easy integration with Three.js.
- Visual editor for creating and fine-tuning effects: THREE Particles Editor
- Highly customizable particle properties (position, velocity, size, color, alpha, rotation, etc.).
- Support for various emitter shapes and parameters.
- TypeDoc API documentation available.
Live Demo & Examples
- Editor & Live Demo: https://newkrok.com/three-particles-editor/index.html
- CodePen Basic Example: https://codepen.io/NewKrok/pen/GgRzEmP
- CodePen Fire Animation: https://codepen.io/NewKrok/pen/ByabNRJ
- CodePen Projectile Simulation: https://codepen.io/NewKrok/pen/jEEErZy
- Video - Projectiles: https://youtu.be/Q352JuxON04
- Video - First Preview: https://youtu.be/dtN_bndvoGU
Installation
NPM
npm install @newkrok/three-particlesCDN (Browser)
Include the script directly in your HTML:
<script src="https://cdn.jsdelivr.net/npm/@newkrok/three-particles@latest/dist/three-particles.min.js"></script>
<!-- or -->
<script src="https://unpkg.com/@newkrok/three-particles@latest/dist/three-particles.min.js"></script>Usage
Here's a basic example of how to load and use a particle system:
// Create a particle system
const effect = {
// Your effect configuration here
// It can be empty to use default settings
};
const { instance } = createParticleSystem(effect);
scene.add(instance);
// Update the particle system in your animation loop
// Pass the current time, delta time, and elapsed time
updateParticleSystems({now, delta, elapsed});Documentation
Automatically generated TypeDoc: https://newkrok.github.io/three-particles/
2.0.3
7 months ago
2.0.2
8 months ago
2.1.0
6 months ago
2.0.1
8 months ago
2.0.0
8 months ago
1.0.2
2 years ago
1.0.3
2 years ago
1.0.1
3 years ago
1.0.0
3 years ago
0.8.4
3 years ago
0.8.1
4 years ago
0.8.0
4 years ago
0.8.3
3 years ago
0.8.2
4 years ago
0.7.1
4 years ago
0.6.2
4 years ago
0.5.0
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.7.0
4 years ago
0.6.1
4 years ago
0.6.0
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago
0.0.1
4 years ago