ThreeSource

Interactive object

Foil Deck

Fifty-two playing cards drawn in code, with holographic gold-foil backs

A full 52-card deck where every face — corner indices, pip layouts, aces and double-ended court cards — is drawn on a canvas atlas at load, and the burgundy backs carry a gold guilloche rosette rendered as metallic, iridescent foil that shifts colour as cards turn under the spotlight. Click the deck to deal cards that spin through the air and land face up, drag them across the velvet with momentum and tilt, click to flip, fan the whole deck, riffle-shuffle it, or gather it back. Card snaps are synthesised with Web Audio. No models, no images.
  • Built withthree.js, InstancedMesh, MeshPhysicalMaterial iridescence, Canvas atlas, Web Audio
  • Page weight518 KB
  • Source download36 KB
  • AssetsGenerated in code
3dcardsphysicsfoiliridescentcanvasgameinteraction
Unlock everything — from $149/yr

3 files · commercial license · lifetime updates for this effect