Light · Act I

Card foil is a fascinating topic. To make a nice pixel-art version of a card foil: Lean a card toward the pointer in true perspective, from two angles. Slide a band of light across it as it leans. In pixel art the band is palette steps and dither, never a gradient.
Make my cards tilt toward the pointer in perspective, with a dithered foil band that slides as they lean.
Read the whole briefFold the brief
Make [my item cards] lean toward the pointer and shine like foil. - While the pointer is over a card, read two angles from it: [1] degree per pixel from the card's middle, [20] at most. - The edge nearest the pointer goes away from the viewer, as if pressed. Ease back to flat when the pointer leaves. - Draw the card in true perspective, solved backward: each screen pixel takes exactly one pixel of the sprite. No blending. - Draw a hovered card [7]% larger, so no row of its pixels is skipped. - Foil: a slanted band of light whose place depends only on the two angles. If the pointer stops, it stops. - Lay the band in palette steps with a 4x4 ordered dither: white, yellow, then [pink and cyan] at its edges. - A mask says where foil goes: [the picture's background and the frame, never the character or the text].
Change what stands in [brackets] to fit your game.
- Well, for TCG games obviously, but also for some buffs, or collector things in any game!
Not forToo-small sprites or icons/figures (under 48px).
The look became widely known with Balatro in 2024, whose own method was not read. The lean follows open shaders and projects that rebuild it.[1][2][3] Laying the foil in palette steps and dither is this atlas's addition.
- Hei, 2D perspective, Godot Shaders, 2022
- Mix and Jam, balatro-feel, GitHub
- AquaBaby, 2D holographic card shader, Godot Shaders, 2025