pixelfx
by Patch (Hugo Duprez)
244 pixel art effects and animations written as code, playable in browser games or exportable as sprite sheets.
2D game art and sprites Open source

1. Price: patch-gg.github.io/pixelfx
Free and open source under the MIT license.
patch-gg.github.io/pixelfxNo quote yet: price is read from the official pages.
2. Commercial use: LICENSE on GitHub
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software”
MIT for code and effects, commercial use included.
LICENSE on GitHub3. Credit the author: LICENSE on GitHub
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.”
No credit on screen. Keep the license notice inside the code you ship.
LICENSE on GitHub4. Agent access: github.com/patch-gg/pixelfx
There is no package or API. Files are downloaded by hand from the official site.
github.com/patch-gg/pixelfxLicense checked Nov 4, 2026 against 1 official page. Tap a verdict to see its source. How we checked Report an error
pixelfx: pixel art effects drawn by code for games
pixelfx is a free library of 244 pixel art effects, such as fire, explosions, magic, weather and coin pickups. Each one is a small piece of code instead of an image. You can play them live in a browser game, change their colors, or export them as sprite sheets for engines like Godot or Unity.
Where you can use it
Spell and hit effects in a browser game
Add a frost nova, a sword slash or an explosion to a canvas, Phaser, PixiJS or three.js game without drawing frames by hand.
Sprite sheets for Godot, Unity or GameMaker
Turn any effect into a transparent PNG sheet with frame data that engine importers read, for games not written in JavaScript.
One effect in many colors
Make a blue fire, a pink heal or team-colored sparks from the same effect by passing your own color ramp.
Full attacks with a character
Play a whole move, with a wind-up, a short freeze on the hit and a target that rocks back, to make fights feel heavier.
Game UI moments
Use the confetti, achievement, countdown and coin-collect effects for wins, rewards and level starts.
Pixel effects on a retro website Idea
Put a looping campfire, fireflies or falling leaves on a pixel-style landing page or game trailer page.
As reported by Patch (Hugo Duprez): 244 effects in 21 categories; Twelve whole moves chain the effects into attacks.
pixelfx popularity
How to start
Tell your AI assistant
“Install pixelfx from github:patch-gg/pixelfx pinned to commit 044e12a, add the campfire and coin-spin effects to my canvas game with createFx, draw them each frame with composite, and scale the canvas with image-rendering pixelated.”
Or install it yourself. There is no package on the npm registry.
npm i github:patch-gg/pixelfx
Show code
Create it with createFx, then update and draw it in your game loop; for other engines, render a sprite sheet with the render tool.
node tools/render.mjs ice/frost-nova --sheet
Mistakes to avoid
npm install pixelfxnpm i github:patch-gg/pixelfx (pin a commit), or copy src/core and the effect filesThere is no pixelfx package on the npm registry (registry.npmjs.org/pixelfx answered Not found on 2026-11-12); the README installs from GitHub.
Effects import their helpers from ../../core/index.js and ./_lib.js; our demo needed 27 files for six effects.
The effects are drawn at pixel size, so smoothing blurs them.
The frame holds color and light in two buffers; composite adds the glow on top.
License
MIT License. For the code and the effects: free in any game or app, paid ones included. Keep the copyright notices; the pixel font in the gallery folder is not covered.
“to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software” LICENSE on GitHub
“The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.” LICENSE on GitHub
“Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files” LICENSE on GitHub
Code, effects and exported sheets may be shared with the MIT notice; the Patch Pixel font in gallery/fonts is not covered.
“The font in gallery/fonts is Patch's own and is not covered by this repository's MIT license.” github.com/patch-gg/pixelfx/blob/HEAD/NOTICE.md
AllowedWith conditionsNot allowedNot stated or not checked yet
Is pixelfx free for commercial use? The full answer Not legal advice. Check the license page before you ship.
For your agent
License rules tell your agent what it may do with pixelfx. Paste them into your prompt or AGENTS.md.
- pixelfx (2D game art and sprites). 244 pixel art effects and animations written as code, playable in browser games or exportable as sprite sheets. Price: free; commercial use OK; no credit needed.
Connect: download from https://patch-gg.github.io/pixelfx/ (no API).
Rule: Keep the MIT license file and copyright notice with the code and assets you ship.
Rule: Install with npm i github:patch-gg/pixelfx or copy src/core and the effects you need.
Rule: Export sprite sheets with node tools/render.mjs <id> --sheet for non-browser engines.
Rule: Some effects adapt Hugo Duprez's code; keep the notices at the top of those files.
License: https://github.com/patch-gg/pixelfx/blob/HEAD/LICENSE (checked 2026-11-04; details: https://agentgid.com/assets/pixelfx/)
Effects: pixelfx by Patch (MIT)Alternatives
pixelfx This page
Pick Kenney for ready CC0 sprite and pixel art packs (characters, tiles, UI) as image files rather than effects in code.
Pick OpenGameArt for community-made sprites and effect sheets, checking each file's own license.
Pick Game-icons.net for flat game icons for items and abilities, with credit under CC BY 3.0.
Database of box and inventory sprites from the Pokémon core series games, with an overview site and CSS/JS files.
CC0 game asset packs (2D sprites, 3D models, backgrounds, sound effects, music) made for the Superpowers game maker.
Questions
Can I use the effects in a paid game?
Yes. Code and effects are MIT licensed and may be used in anything, commercial included.
My game is in Godot or Unity. Can I still use them?
Yes. Export each effect as a transparent PNG sprite sheet with an Aseprite-style JSON that their importers read.
Can I change the colors?
Yes. Pass a palette, a dark-to-bright list of colors, and the effect uses it without code changes.
Does it need other libraries?
No. In a browser game you use the code directly with no other libraries.