Coderefercoderefer
CoursesWebinarsBlogAbout
Coderefercoderefer

Discover. Learn. Automate. Grow.

Learn

  • Courses
  • Webinars
  • Blog
  • Search

Company

  • About
  • Contact
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
© 2026 Coderefer. All rights reserved.
HomeBlogHow to Use pixelfx with Claude Code: 244 Pixel Art Effects for Your Browser Game
ai-toolsNovember 26, 20266 min read

How to Use pixelfx with Claude Code: 244 Pixel Art Effects for Your Browser Game

pixelfx packs 244 code-only pixel art effects plus a Claude Code skill that builds new ones. Here's how to install and use it in a browser game.

V

Vamsi Tallapudi

Manager, Architect Technology at Cognizant

How to Use pixelfx with Claude Code: 244 Pixel Art Effects for Your Browser Game

pixelfx is a free, MIT-licensed library of 244 pixel art effects (fire, explosions, lightning, magic, weather, and more) where every effect is a short JavaScript function instead of a sprite sheet. It ships with a Claude Code skill that lets you search the catalog, drop effects into a browser game, export them as sprite sheets for Unity or Godot, and ask Claude to draft brand-new effects in the same style. Built by a developer going by Patch (@patch_gg), it went up on GitHub on October 30, 2026, and was sitting at roughly 5,900 stars by November 8: the kind of growth curve that usually means either a genuinely useful tool or a very good tweet. Having read through the code and the skill, I think it's the former.

What exactly is pixelfx?

Most pixel art effect libraries hand you a folder of PNGs. pixelfx hands you code. Each effect is a function that draws frames directly onto a canvas, frame by frame, the same way a pixel artist would draw them by hand, just automated.

That matters for three reasons. You can recolor an effect through a palette option without touching a single line of its logic. You ship a few kilobytes of JavaScript instead of a pile of sprite sheets. And when you want a variant (bigger fireball, blue instead of orange, slower burn), you tweak a parameter instead of opening Aseprite.

The 244 effects sit in 21 categories: fire, explosions, water, ice, lightning, sci-fi, melee, impacts, projectiles, spawn-and-death, arcane, holy, shadow, status conditions, nature, weather, UI, pickups, transitions, critters, and a "moves" category of 12 full character animations (wind-up, strike, recovery). Around 61 of the other effects are built to pair with those moves, so a sword swing actually lines up with the spark it throws off.

How does the Claude Code skill actually work?

This is the part that's new, not just the effect library itself. Claude Code skills are reusable instruction sets that teach the model a specific workflow (I covered the broader skill ecosystem in the T3 Stack skills post), and pixelfx's skill teaches Claude to act like what the docs call "a picky pixel artist": draft an effect, render it to frames, look at the actual pixels, and refine until it reads correctly at a glance.

That loop (code, render, look, fix) is lifted from a methodology Hugo Duprez wrote about for making pixel art with Claude, and pixelfx credits him directly. It's also why the skill is more interesting than a typical asset pack: Claude isn't just inserting a pre-made effect, it's judging whether a new one actually looks like fire instead of an orange blob.

You install the skill one of two ways:

/plugin marketplace add patch-gg/pixelfx
/plugin install pixelfx@pixelfx

Or copy skills/pixelfx straight into ~/.claude/skills/ if you'd rather not touch the plugin marketplace. Once it's installed, you can ask Claude Code things like "find me a frost effect" or "make a poison cloud that pulses purple" and it will search the catalog or scaffold a new effect using node tools/new.mjs, then render and critique its own output before handing it back.

How do you use an effect in your actual game?

For browser games running on Canvas, Phaser, PixiJS, Kaplay, or Three.js, installation is one line:

npm i github:patch-gg/pixelfx

There's no npm registry package, so that GitHub-install syntax is intentional, not a typo. You can also skip the dependency entirely and copy src/core plus whichever effect files you need. The library has zero runtime dependencies, which is a nice break from the usual node_modules bloat for something this small.

If your engine isn't JavaScript-based, you export sprite sheets instead:

node tools/render.mjs ice/frost-nova --sheet

That spits out transparent PNG frames and Aseprite-style JSON metadata, which Unity, Godot, GameMaker, Defold, LÖVE, and Bevy all know how to import. So the "it's code" pitch doesn't lock you into JavaScript engines: it just means the source of truth is code, and sprite sheets are a build artifact.

Should you actually build on a two-week-old project?

Here's where I'll push back a little. pixelfx is fast-moving and thin on history. It's two weeks old as of this post, and a project that went from 291 stars to nearly 6,000 in under ten days hasn't had much time to accumulate bug reports or settle its API. The GitHub issue tracker is still short. That's not a knock on the code, which reads clean, but it is a real risk if you're building a commercial game and plan to pull updates for the next year.

My honest take: if you're prototyping, jamming, or building a solo project where you fully control the dependency, pixelfx is a genuinely good deal: free, MIT-licensed (the one carve-out is the bundled Patch Pixel font, which isn't covered by the MIT grant), and it saves you from either learning pixel art or paying someone who already can. If you're shipping a funded commercial title on a multi-year timeline, vendor it: copy the specific effect files you use into your own repo rather than depending on github:patch-gg/pixelfx directly, so a breaking change upstream doesn't break your build at 2 a.m.

pixelfx vs. hand-drawn sprite sheets

pixelfxHand-drawn sprites
CostFree, MITArtist time or asset-pack fees
File sizeA few KB of JS per effectPNG sheets, often MBs
Variants (color, size, speed)Change a parameterRedraw or re-export
Engine supportNative JS, or export to any engineAny engine, no extra step
Visual ceilingGood, not hand-paintedAs good as your artist
Maturity2 weeks old, API may shiftN/A, it's just images

If you need a specific, highly stylized look that matches an existing hand-drawn character set, this won't get you all the way there on its own. If you need "a believable fireball by Tuesday," it will.

The bigger pattern here

pixelfx is one more example of a trend worth naming: AI coding tools generating visual assets procedurally instead of via image models. I wrote about a similar idea with isometric SVGs drawn by Claude Code, and it shows up again in AI-assisted game building more broadly. The common thread is that code-as-asset is cheap to tweak, cheap to ship, and (when the model doing the drawing can actually look at its own output and judge it) surprisingly good.

Watch and see it in action

244 Pixel Art Animations Made with Claude Code
ai-tools claude-code pixel-art game-dev 2026

Comments

    Get AI tricks that save you hours every week

    New AI tools, automation workflows, and course drops — straight to your inbox. Join 2,400+ builders.

    Read Next

    How to Use fast-anything with Claude Code to Port Only the Slow 5% to Rust
    ai-tools

    How to Use fast-anything with Claude Code to Port Only the Slow 5% to Rust

    fast-anything profiles your Python or Node app, has Claude Code port the slowest function to Rust, and verifies it against 500 real calls before swapping it in.

    November 26, 20267 min read
    How to Run Ternary Bonsai 2.5 27B Locally: A 5.9 GB Agentic Coding Model
    ai-tools

    How to Run Ternary Bonsai 2.5 27B Locally: A 5.9 GB Agentic Coding Model

    Ternary Bonsai 2.5 27B packs a 27B coding model into a 5.9 GB download. Here's how to run it locally, what hardware you need, and where the benchmarks don't hold up.

    November 26, 20267 min read
    Ladybird Alpha Is Out: How to Install It on macOS or Linux
    ai-tools

    Ladybird Alpha Is Out: How to Install It on macOS or Linux

    Ladybird's first public alpha (build 2026.47.7) is live for macOS and Linux. Here's how to install it and test your site in its from-scratch engine.

    November 26, 20267 min read
    View all posts →