Pixel art VFX in Phaser 3 and HTML5 Canvas
Load pixelfx sprite sheets in Phaser 3 or render zero-dependency procedural pixel art effects directly on HTML5 Canvas.
Option A: Load PNG + JSON sprite sheets in Phaser 3
Download any effect’s PNG and JSON pair into your web project’s static assets folder. In Phaser 3, load the sheet with this.load.spritesheet() using the frame dimensions listed on the effect page, and ensure your game config sets pixelArt: true so WebGL uses nearest-neighbor sampling.
this.load.spritesheet('fireball', '/vfx/fireball.png', {
frameWidth: 64,
frameHeight: 64,
});
this.anims.create({
key: 'fireball-loop',
frames: this.anims.generateFrameNumbers('fireball'),
frameRate: 30,
repeat: -1,
});
Option B: Run zero-dependency JavaScript effects directly
Because the upstream pixelfx library is pure JavaScript, browser games can import effects directly and composite them into a <canvas> frame with dynamic palettes and seeds at runtime. See the JavaScript Developer Docs for the complete rendering loop.
Need layered glow or custom art for web games?
Browse 315 ready-made VfxSmith Vault packs (each shipped with editable JavaScript source plus separated Color + Emission sheets for WebGL additive blending), or create custom pixel VFX with VfxSmith AI.
Try these free MIT effects
VfxSmith Vault · 315 Packs
Separated glow layers & engine-ready packs
Browse 315 packs with separated Color + Additive Emission sheets for Godot 4 & Unity 2D, or generate custom effects in VfxSmith AI Studio.

Soul siphon beam
Looping drain tether & core pulse · Color + Emission · Godot 4 & Unity 2D

Multi-node circuit connect
Sci-fi data pulse & node lock · Color + Glow · Godot 4 & Unity 2D

Checkpoint activate
Save shrine ignition & beacon · Color + Additive Glow · Godot & Unity



