The detailed behavior of FOIL, one area at a time. The short tour is in README.md.
- Bring an image by choosing a file, dropping it anywhere, or pasting (Ctrl+V). PNG, JPEG, WebP and GIF are read; animated GIF, APNG and animated WebP keep moving on the card. It never leaves your browser.
- Use as the whole card (a switch under the pick button): for a picture that already is a card, its frame and words drawn in (like a game's joker), the whole picture becomes the card face. FOIL's frame, nameplate, message and lettering are not drawn and their controls step aside; their settings stay, for when the switch is turned off. Turning it on gives the card the picture's own proportions (the shape Picture); any other shape crops the picture to it. The rounded corner, the card's edge and shadow, its back, tilt, every finish, the layers (whole card, brightness and the brush), motion and every export work as before. A picture of your own shaped like a card gets a quiet note beside the switch.
- Pixel art (a small picture of few colours, or one made of square blocks of the same colour) is enlarged with hard pixels, on the card, in the crop and in every export, never blurred.
- Three samples are there to start with. Zoom and drag the window to choose what the card shows (arrow keys and + − work too).
- Your picture, and Flip Lenticular's other picture, are kept in this browser (IndexedDB) across reloads.
- The side panel is a game's side table, in the same grammar as the rest of FOIL (and of the game it is modelled on): a slate board with a light rim, a black outline and a deep drop, and on it three dark, sunken boxes for the main flow, each under a small colored label with its number: 1 Choose a picture (samples, open a file, crop and zoom), 2 Choose a finish (a live proof of the card, its finish, and a way to the hand), 3 Export — the format (GIF, APNG or MP4, each saying what it makes) and Save, in a box pinned to the bottom, with Keep (into the binder) and Share as two small slabs beside its label.
- Each step owns one color (blue for the picture, orange for the finish and Fine-tune, red for Save), and buttons are thick slabs in those colors with a dark underside: they swell and wobble a little under the pointer and sink when pressed (still under reduced motion). The bright slab marks the one next step: while a sample is showing, opening your own picture is blue and Save rests in slate; once the picture is yours, Save is red, and when the file is saved it turns green for a moment with a gold "done" tag and the file's name. Values sit large in dark pockets and pop whenever they change (a drag, a choice or a reset).
- Everything finer sits behind Fine-tune, a slate slab that stays closed until you open it (and remembers that). Open, steps 1 and 2 fold into one line each (the picture or a proof of the card, its name, and Change to go back to the step) and Fine-tune holds four tabs: Card (finish strength, frame, shape, layout, pixelation, pixel art, backdrop), Shine, Lettering (the message, the nameplate, how all the card's text is printed, and placement) and Layers (which finishes the card wears and where each goes). The open tab is orange and stands up off the row, and a green gem on a tab means something in it differs from the defaults. On phones, a live view of the card rides in the Save box while you tune Shine.
- Pick a finish from the fanned hand at the bottom; each card in the hand is a live preview. The hand starts with seven finishes: the five editions of the game FOIL is modelled on (Base, Foil, Holographic, Polychrome and Negative), plus Prism and Glitch. Number keys pick the cards in the hand in order, ← → step through them. Press the logo to shuffle the finish.
- Every other finish comes in a theme pack: Metal (Platinum, Gold, Relief, Chameleon, Cosmo Holo), Jewel (Crystal, Opal, Raden, Kintsugi), Light (Galaxy, Aurora, Glow, Blacklight, Shallows), Nature (Sakura, Frost, Stardust, Rainy Window, Marble, Magma) and Studio (Halftone, Warmth, Stained Glass, Flip Lenticular, 3D Lenticular, Shadowbox). The small pack beside the deck at the right end of the hand (it glows while one is sealed) opens the pack shop, where every pack sits on a tray.
- A pack is opened once and holds its whole theme, with no random draws: trace the line across its top to tear it, swipe through the cards, and the rarest one waits until last for its own entrance. Skip jumps straight to the result, and the cards are shown on your own picture so you can try them at once. An opening can be watched again from the shop.
- Open all in the shop opens every sealed pack on the tray at once (a second tap confirms), without their openings: one list shows what came in, pack by pack, and leads to the deck builder. Each opening can still be watched from the shop afterwards.
- The hand holds up to seven cards; every other finish you own waits in the deck, a small stack of card backs at the end of the hand with its count. Press it to edit your hand like a card game's deck screen; it opens on everything you own in one list, your hand first, with a tab per pack to narrow it. One tap moves a finish between the deck and the hand (or drag it onto a slot), with undo and a reset to the starting seven; Base always stays.
- Opening one of the support links in the header (GitHub Sponsors or Buy Me a Coffee) once adds the Supporter pack of celebrations (Confetti, Snow Globe, Fireworks) to the shop in this browser and its other open tabs; until then it leaves no trace. It opens like the others, with a richer wrapper and opening. It is an honor system with no payment check.
- Packs, their shaders and the shop itself only load when the shop is opened (an opened pack's finishes load with the hand). The finishes you own are kept in this browser, finish by finish, so one that moves to another pack stays yours; a pack that gains a finish is sealed again so you can open it for the new one. A saved card on a finish you no longer own (site data cleared) goes back to Holographic. Packs opened up to v0.13, and finishes unlocked under the earlier support-link secrets (v0.9), carry over as the finishes those packs held. The design is in
packs.md.
36 finishes in all: seven in the starting hand and 29 in six packs.
| Finish | Where | Look |
|---|---|---|
| Base | Starter | As it is. No finish |
| Foil | Starter | Brushed metal that slides as you tilt |
| Holographic | Starter | A rainbow bleeding through a fine lattice |
| Polychrome | Starter | Every color rewritten as rainbow |
| Negative | Starter | Lights and darks swapped, a night print |
| Prism | Starter | Rainbow shards like cracked ice |
| Glitch | Starter | Scanlines and slipping color |
| Platinum | Metal | Hairline-brushed platinum; a streak of light runs as you tilt |
| Gold | Metal | Gold leaf with a scatter of sparks |
| Relief | Metal | Struck like a medal; light runs across as you tilt |
| Chameleon | Metal | Color-shift car paint: violet, green and gold flow over it as it tilts |
| Cosmo Holo | Metal | Rows of foil circles and stars that flash rainbow as it tilts |
| Crystal | Jewel | Light bent through cut facets |
| Opal | Jewel | Patches of color welling up in the stone, flashing as you tilt |
| Raden | Jewel | Shell mosaic on black lacquer, turning blue, green, pink and gold |
| Kintsugi | Jewel | Cracks mended in gold, one of a kind |
| Galaxy | Light | Nebulae rising out of the shadows |
| Aurora | Light | Curtains of light that sway |
| Glow | Light | Shine a light on it and it glows on in the dark |
| Blacklight | Light | A UV lamp reveals hidden ink and a seal |
| Shallows | Light | Sunlight netting a pool floor, fraying into spectrum |
| Sakura | Nature | Petals drifting down |
| Frost | Nature | Frost blooming in from the edges |
| Stardust | Nature | Rainbow star dust that twinkles, with a big starburst now and then |
| Rainy Window | Nature | Seen through a fogged, rainy window; wipe the glass with a finger |
| Marble | Nature | Ink rings float and drift over the picture; trace them and they follow your finger |
| Magma | Nature | Lava pulsing through the cracks |
| Halftone | Studio | Printed in dots, like a comic panel |
| Warmth | Studio | Stroke it and your warmth brings the color back |
| Stained Glass | Studio | The picture set in leaded glass, lit from behind |
| Flip Lenticular | Studio | Tilt it left and the picture swaps, stripe by stripe, under fine lenses |
| 3D Lenticular | Studio | The picture floats in 3D behind fine ridged lenses |
| Shadowbox | Studio | The picture as paper-cut layers, set deep in a box |
| Confetti | Supporter | Gold, silver and rainbow foil confetti that glints piece by piece |
| Snow Globe | Supporter | Shake it and gold glitter swirls up |
| Fireworks | Supporter | Willows, chrysanthemums, hearts and stars burst in gold, silver, crimson and jade |
- Relief strikes the picture in metal like a proof coin: the subject stands up as a matte relief in a few flat levels with crisp steps, the background becomes a flat mirror field that flashes as the card tilts, and line work sinks into grooves. Dark pictures are lifted rather than crushed. The frame gets a stamped dot texture and the name a mirror foil on a matte plate. Gold by default; silver is a choice under Shine.
- Platinum prints the art on cold white metal brushed with fine hairlines: the light is a hard streak across the lines, and tilting slides it along them, glinting on single lines as it passes. It moves only with the tilt and the light, so it holds still when motion is reduced.
- Cosmo Holo is the cosmos foil of trading cards laid over the art: a regular print of circles, stars and fine dots, each one a tiny diffraction grating. Rainbow bands run across the rows of motifs and slide over the card as it tilts, the star facets flash one after another and the dots twinkle; off the bands the foil all but disappears and the art shows through. It moves only with the tilt, so it loops in exports and holds still under reduced motion.
- Chameleon paints the card in color-shift (chameleon) car paint under a deep clear coat. The color depends on the angle you see it from: the whole card flows smoothly from violet through blue and green to gold as it tilts, with neighboring colors meeting softly across it, and no grains or glitter. The frame is painted solid in a deep lacquer (keeping its light and dark, so the name stays readable), dipping into a shaded bevel at the art and catching a thin line of gloss at its edge. Over the art the paint is a thin color-shift film: the picture keeps its own colors, and where the film reflects light (a soft highlight and a softbox strip that slide faster than the color) it gives that light back in the paint's color. It moves only with the tilt and the light, so it loops in exports and holds still under reduced motion.
- Glow turns the card into glow-in-the-dark ink in a dim room: the picture sits darker and cooler, and the pointer (or a finger) is a small violet lamp. Wherever it shines, the ink stores the light and, once the lamp moves on, glows pale yellow-green, brightest where the picture is light. It fades the way real glow-in-the-dark ink does: quickly at first, then a faint glow that lingers for twenty seconds or so, drawing back into its crystals so an old afterglow glimmers grain by grain. Holding still charges a spot brighter. Like Warmth it arrives with one sweep of light as a hint, and a drag strokes the card instead of tossing it. Exports sweep the light through the busiest part of the picture; a still (the binder's thumbnail) catches the trail still glowing, and a loop shows the light pass and the afterglow it leaves.
- Blacklight hides fluorescent ink in the print. The card looks ordinary until the pointer (a finger on a phone) shines an ultraviolet lamp on it: inside the lamp's circle the print is washed in violet, white paper glows blue, and the hidden ink lights up neon pink, yellow and cyan — the outlines of the picture over a fine engraving of it, fibres in the paper, FOIL microtext round the frame and, somewhere on the art, a seal to find. Left alone, the lamp drifts slowly over the card by itself, glowing dimmer, and turns up to full when you point at the card (it holds still with reduced motion). On this finish a drag moves the lamp instead of tossing the card. Exports show it as the stage does left alone: drifting round the art, dimmer, once per loop (6 seconds at speed 1).
- Shallows sinks the art like a pool floor under a net of sunlight; tilting refocuses it and splits its brightest knots into spectrum, and its ripples loop seamlessly in exports.
- Stardust scatters rainbow star dust over the art, which sits a little deeper so the grains of light lead: each fine grain is a tiny facet that catches the light at its own angle, square chips of confetti foil flash a color as they face you, and a few big starbursts blaze when the angle is right and pop on a steady beat (so its loops close without a seam). A wide band of light rolls across as the card tilts, and every grain inside it fires harder.
- Snow Globe sets the art behind a curved pane of clear liquid full of gold glitter; shake or toss the card and the glitter swirls up, then settles.
- Marble floats ink on water over the picture, between Japanese suminagashi and European marbled paper: rings of sumi and indigo, with a thread of red ochre here and there, spread from a few drops and wander slowly in the current, laid thinly enough that the picture shows through. Tilting slides the floating ink a little over the picture and catches a wet sheen on it. Trace it with a finger (or hover with a mouse, more gently) and the ink is dragged along behind the stroke, combing the rings into the feathered veins of marbled paper; press and hold and the ink winds into a spiral round the finger. Then the water slowly draws them back, mostly within ten seconds. Like Warmth it arrives with one unseen stroke as a hint, a drag strokes the card instead of tossing it, and exports draw that stroke through the busiest part of the picture once per loop. Under reduced motion the current stands still, there is no hint stroke, and a stroke stays where it was drawn.
- Warmth reacts to touch: untouched, the art is printed as a blue cyanotype in thermochromic ink. Hover with a mouse or drag a finger across it and the ink flushes rose, coral and peach, then turns clear to show the picture in its own colors, and slowly cools back. Press and hold to leave a fingerprint. The card arrives with an unseen finger swiping it once, as a hint. On this finish a drag strokes the card instead of tossing it (and on a phone it does not switch finishes). Exports play the whole story (cold, a swipe, a press, cooling) and aim the swipe at the busiest part of the picture.
- Rainy Window shows the picture through a window on a rainy day. The glass is fogged, so the picture behind it is soft and milky, with a fine mist of condensation over it; water beads sit on the glass and now and then one runs down in short jerks, wiping a clear trail of small beads behind it. Inside every drop the picture is sharp, bent and magnified as through a lens, and each drop catches the light in a small highlight that moves as the card tilts, a little apart from the picture as glass in front of it would be. Wipe the glass with the pointer or a finger and the fog and the beads clear where you wiped (drops still run down through it); a press leaves a fingerprint in the fog, and the fog slowly creeps back. Like Warmth it arrives with one wipe as a hint, and a drag wipes the card instead of tossing it. The drops run on cycles the loop holds a whole number of times, so every loop closes on itself, and an unseen finger wipes the busiest part of the picture once per loop; a still (the binder's thumbnail) catches the wipe still clear. Reduced motion holds the drops still.
- Stained Glass sets the picture in leaded glass lit from behind: black lead came cuts it into panes and runs along the picture's big outlines, each pane takes its color from the picture under it, and small details stay on the glass like painted line. The frame becomes a border of pale glass strips mitred at the corners, with the name painted on. Tilting moves the light behind the window across the panes and shifts the uneven thickness of the glass, so each pane glows and mottles in its own way. It has no clock of its own, so it holds still under reduced motion and loops cleanly in every export.
- 3D Lenticular puts the picture under a sheet of fine vertical lenses, like a 3D lenticular print: it reads the picture's depth with the same on-device model as Shadowbox (and guesses it from color until then), so the subject floats in front of the card and the background sinks behind it. Tilting sideways steps through the views, so near and far slide against each other; tilted too far, the views flip back with a faint double image, as on a real print. The ridges show as fine lines that catch the light, and bands of light and shade sweep across them with the angle. It moves only with the tilt, so it loops in exports and holds still under reduced motion.
- Flip Lenticular is a two-picture flip card under a sheet of fine vertical lenses. Seen from the front (or tilted right) it shows your picture; tilt it left and the other picture takes over, as on a real two-picture flip card, the two mixing in thin stripes on the way that sweep across the card. Tilting up or down never flips it, and the ridges catch the light as a band of fine glints. The other picture is picked in the panel while Flip Lenticular is on the card (Choose / Remove, kept for next time); without one, it flips to a pencil drawing of the same picture. It moves only with the tilt, so it loops in exports and holds still under reduced motion; a still (the binder's thumbnail) shows the front picture.
- Shadowbox cuts the picture into paper layers along its depth and stands them up inside a lit box, so the layers slide apart and cast shadows as the card tilts. It reads the picture's depth with a small depth model that runs on your device (WebGPU when available, otherwise WebAssembly). The first time it (or 3D Lenticular) is chosen it downloads the model once (about 19–27 MB, then cached by the browser); a chip on the card shows the progress. Until then, or if the model can't run, the layers are guessed from color. With the browser's data saver on, it waits until you ask. A cached model is checked again before use, and the model is let go about half a minute after you leave Shadowbox (or 3D Lenticular). With an animated picture the layers are cut from one frame, so the back of the box keeps showing the moving picture instead of a painted-out background.
- Raden inlays the picture in mother-of-pearl on black lacquer: its bright parts become a mosaic of cracked shell with fine growth lines, tinted from beneath by the picture's own colors, its shadows sink into the lacquer, and as the card tilts each piece turns through blue, green, pink and gold at its own moment.
- Opal sets the picture in precious opal, dark under its shadows and milky under its lights: soft patches of color well up around the subject from two depths that slide apart as the card tilts, and each one flashes on, changes hue and goes out at its own angle.
- Confetti and Fireworks are made for birthday and celebration cards; the picture, any message in it and the name stay readable. Confetti scatters gold, silver and rainbow foil confetti (squares, dots and thin curled ribbons) over the art: some pieces are stuck to the card and each catches the light at its own angle as the card tilts, some drift slowly down, and now and then a popper bursts from a corner. Fireworks leaves the art as it is and sets off fireworks over it that carry their own light (a thin tinted rim keeps them visible over bright pictures, and they pass faintly behind lettering and outlines in the picture so a message stays clear): rockets climb on a glowing trail and open with a flash into a willow, chrysanthemum, peony, heart, star or a string of small pops, in gold, silver, crimson or jade, never the same twice in a row; tilting makes the foil sparks (and a few stars printed on dark parts of the picture) glint, and a sparkler with a long glowing fuse runs around the frame. Held still (reduced motion, speed zero or a still) both stop at a festive moment: confetti in the air, fireworks in full bloom. Their loops close on themselves.
- The card is a trading card (63 × 88, 5 : 7) unless you choose another shape under Fine-tune → Card: Wide (7 : 5, a greeting card on its side), Square, Postcard upright or on its side (100 × 148) Business card (91 × 55, on its side) and Picture, the picture's own proportions (kept between 1 : 2.2 and 2.2 : 1, following the picture as it changes); each choice shows its outline, and its size on hover.
- Every shape is still a card: the short side, the frame's line and margins, the corner and the nameplate keep their size and only the art window stretches, so a frame never squeezes or bends. The crop, every finish, the layers, the lettering, the hand, the deck builder, the pack opening, the card back and every export follow the shape.
- Frames: Paper, Ink, Brass, By rarity, and two for celebration cards: Gold rim (ivory with a thin gold rule round the edge and the art) and Ribbon (a satin ribbon tied across the top-left corner). With a finish like Confetti or Fireworks and a Wide or Square shape they make a birthday card without any special mode. The gold rule and the ribbon belong to the classic card; on a trading card these two frames give their colors only.
- Add your own frame colors with the color picker; they stay as swatches for next time (hover or press Delete to remove).
- Pick the card's layout in the Card tab: the classic FOIL card (the default) or a trading card, built the way real trading cards are (see
tcg.md) in FOIL's pixel style: the frame is the card's own color as dithered printed stock, and the name (with the rarity diamonds), the type line (any short words, such as "Rare Card — Foil", ending in FOIL's set emblem, a pixel star in the rarity's color) and the card text sit on parchment plates set into it with stepped pixel corners and hard bevels; the picture sits a step below the frame, and the fine print at the foot reads FOIL, the year and "No. 1/1" (every FOIL card is a one-off). - On a trading card the message is the card text: centred, wrapped evenly and as large as its box allows. The card holds only the parts it has: the box is as tall as the message's lines, and without a type line or a message their plate goes and the picture grows into its room (with neither, it is a full-art card). On a wide card (Wide, the postcard on its side, the business card) the picture takes the left and the type line and the card text stand beside it on the right, with the plates as tall as on an upright card. Every finish follows the picture to its window, and exports and mini cards show the same card.
The Card tab has two separate choices, side by side, each with one line under its name saying what it touches:
-
Pixelate (a slider: Off, Subtle, Light, Medium, Strong, Heavy, Max) coarsens only the picture: the art window is drawn in square blocks (96 down to 26 across the card's short side) and its light comes in a few levels, while the frame, the nameplate and the words stay sharp. Small cards (the hand, the mini card) use coarser blocks so it still shows.
-
Pixel art (below) redraws the card as pixel art: the whole card, or only the frame around the picture. The words stay readable either way: they are printed afterwards in the pixel typeface, on the pixel art's grid.
-
With both on and pixel art on the whole card, Pixelate runs first on the picture and pixel art then draws the whole face: each Pixelate block is a whole number of pixel art pixels (at least one, so a Pixelate finer than the pixel art adds nothing), its colors are averaged before the palette is picked, and the outline follows the blocks. With pixel art on the frame only, the picture is Pixelate's alone: its own blocks and light, inside a pixel art frame.
-
Pixel art in the Card tab (off by default) draws the whole card as pixel art, the way the cards of the game FOIL is modelled on are drawn: the face as it is painted (frame, nameplate and its plates, and picture) is shrunk to a small pixel grid, its colors are cut down to a small palette, a one-pixel dark line may follow its strong edges and the card's rim, and the pixels are drawn back up as hard squares with stepped corners. The finish's light steps on the same grid, one pixel at a time and in a few levels, and the card back is stepped on it too, so the card reads as one piece of pixel art as it tilts.
-
Three presets: Chunky (72 pixels across the card, 16 colors and the dark outline: big flat shapes with hard edges), Retro (56 pixels, FOIL's own 16-color palette and a light dither: an old game's screen) and Fine (128 pixels, 32 colors and a light dither: the finest). Adjust opens the four choices underneath: coarseness (56, 72, 96 or 128 pixels across the card's short side, on every shape), colors (8, 16 or 32 picked from the card, or the FOIL palette), outline (none or a thin dark line) and dither (none or light).
-
Area (under the presets, while pixel art is on): Whole card (the default) or Frame only. Frame only draws the frame, the nameplate and the card back as pixel art and leaves the picture in the art window as it is (sharp, or Pixelate's blocks when that is on too). The palette is picked from the frame alone, the outline runs round the art window, and the finish's light steps on the pixel grid only on the frame: over the picture it moves smoothly, as it does on a card without pixel art, so the sharp picture never shows a stepped light over it. The grid is judged one pixel art pixel at a time, so the art window's edge steps with the frame. A card used as the whole card has no frame, so there the choice steps aside and pixel art covers the whole card (the choice is kept for when the switch is turned off). The area is saved with the card, in the binder too.
-
The words stay readable. The card's words (the name, the type line, the message, a freely placed piece and the trading card's fine print) are left out when the face is shrunk, and printed afterwards in the pixel typeface (DotGothic16, whatever the message's own typeface), crisp, at about the size they were laid out at and never wider. Their dots line up with the pixel art's grid: each of its pixels is split evenly into the letters' dots (or the letters are a whole number of its pixels tall, when that comes closer to their size), and the letters' corner sits on a grid line. Each keeps its colour and its lettering (ink, deboss, emboss, hot foil or spot UV, which press and shine on the letters as printed), the message keeps its edge and hard drop as a one-dot edge and a dot of drop, and the trading card's bold name is a dot bolder. Under them the plates, the frame and the picture stay pixel art, and the finish's light over them still steps on the grid. This is the same on the whole card and on the frame only.
-
It changes only how the face is drawn, so it works with every layout, shape, frame and finish, and the hand, the mini cards, the binder and every exported file show the same pixel art. A moving picture keeps one palette while it plays, so its colors don't flicker. The conversion (
dot/dot.ts) loads the first time pixel art is turned on, and the face is drawn plain until it is there.
- Edit the name, the message and the rarity right in the tag beside the card (on a trading-card layout, the type line too).
- Put a message on the card: up to four short lines, none by default. Type it in the tag beside the card or in the Lettering tab, where a tap puts in a ready phrase in the panel's language (Happy Birthday, Thank you, おめでとう, ありがとう…). It sits at the top, the middle or the bottom of the picture, in one of four typefaces (pixel by default, a handwritten marker, Mincho serif or a round pop face), and is sized to fit the picture's width; a dark outline and a hard drop keep it readable on any picture.
- The message is printed with the card's lettering, so a hot-foil gold or rainbow message glints with the same light and tilt as the name. The nameplate (name and rarity) can be turned off for a card that carries only the message. The message is part of the card face, so exports, the hand and the deck's mini cards all show it. Its typefaces load only once a message is used.
- Print the card's text (the name, the type line and the message) in ink, deboss, emboss, hot-foil (gold, silver, rose gold, copper, rainbow or any color) or spot UV. The name tag beside the card shows the current lettering and opens the Lettering tab. The relief and shine follow the card's tilt and light, in exports too.
- Every piece of text is printed in the card's lettering unless you give it its own: tap the words on the card, or the chip beside their field in the Lettering tab (which lists the card's words: name, type line and message), and pick a print (and a foil color) for that piece alone. Depth and gloss stay shared; a piece with its own print carries a green gem on its chip, and "Match the card", the first choice, returns it to the card's lettering. Saved cards keep only these own prints.
- Placement: Auto / Free in the Lettering tab. Auto (the default) keeps the preset places. Free lets you drag the message (and, on the classic card, the name) anywhere on the card, size it with the corner handle and turn it (±15°) with the handle above it, or both with two fingers, with guides that snap to the centre, the picture's edges and the frame (shown only while the words are held), and a bar under the card (Print · Straighten · Back to Auto · Done). A press elsewhere, Esc, Done, a scroll or a finish switch lets go and closes the print menu, so nothing is left on screen.
- A short tap still opens the print menu, and while words are selected the card holds still and a flick does not switch finishes. A trading card's plates stay put: there only the message is free, and it leaves its box. Places are saved as shares of the card, so exports, mini cards and other card shapes match. See
arrange.md.
- Every card wears one back, drawn in big pixels like the packs: FOIL's four letter tiles on a dark plate in a gold cartouche, over a red engraved lattice inside the same paper border as the face. It takes the card's shape. Its gold catches a stepped glint as the card tilts or turns. The pack's face-down showpiece, the deck's pile and a card still being dealt in the deck screen wear the same back.
- Fine-tune → Card → Backdrop sets what is behind the card, on the stage and in every moving file: Swirl (the default, in the finish's colors), Felt (a green card table under a lamp), Studio (a paper sweep with a spotlight behind the card), Velvet (a jeweller's showcase), Bokeh (soft lights in the finish's colors), Stars (a twinkling night sky with a shooting star), Confetti, Plain (one color you pick) and Transparent (no backdrop in a file; a checkerboard on the stage).
- The backdrop moves with the card's loop, the same on the stage and in the file, and goes round whole in one loop so the file closes without a seam. Reduced motion holds it still on the stage. Each one, what it is for and how it is drawn:
backdrops.md.
- Layer two finishes, like layers in a photo app (Fine-tune → Layers): each layer has its own finish and its own place on the card, and a little pixel card in the list lights up exactly where each one lands. Sakura on the art and Kintsugi on the frame, or Holographic on the whole card with Gold's shine over the highlights.
- Where the two overlap, layer 2 either adds only its light (the default, so both stay visible) or is laid over layer 1, with a strength slider.
- Layer 2 can be any finish you own except Base and the ones that need the card to themselves (Warmth, Glow, Rainy Window, Marble, Blacklight, Shadowbox, the two lenticulars, Snow Globe). Off by default; the card, the live previews and every export show both. How it is drawn, and the options weighed, are in
layering.md.
- In the Layers tab, the chosen layer's place is set by the area controls: the whole card, the art, the frame, the name or nowhere, a band of brightness (highlights only, shadows only…), inverted, and painted in or out with a soft brush while the card holds still. An overlay shows what is left out, and exports follow it. A card used as a whole (no frame) has no art, frame or name of its own: there the place is the whole card or the brush, with the brightness band and invert.
- The card tilts with your pointer, can be tossed around, and bounces when clicked.
- Shine fine-tunes every finish: pattern size and angle, hue, saturation, glare and its focus, light color, glitter, a light that follows the pointer (or the phone's tilt) / orbits / stays fixed, speed, max tilt, the motion and its size, and the metal of Relief (gold or silver; shown while Relief is on the card). Defaults keep the original look; exports follow the same settings.
- Twenty motions in four groups, plus None: Gentle (Sway, Float, Pendulum, Breathe), Tilt (Gyre, Lean, Jelly, Figure 8, Jiggle, Spin), Light (Sweep, Light bar, Spotlight, Flare) and Showpiece (Reveal, Push in, Heartbeat, Glint, Turn once, Bounce). Each has its own loop (2, 3 or 6 seconds at speed 1); the list, the lengths and what was merged are in
motion.md. Speed and size work on every motion, and reduced motion stops it. - The stage is the preview: the card left alone moves exactly as its GIF or APNG will. Only your hand changes it, while it touches the card (pointer, finger, drag, device tilt); let go and it goes back to the preview.
- The motion button above the deck (on a phone held upright, at the left end of the hand) names the motion and changes it in one tap: it opens a tray of the motions in their four groups (each tile acts out its motion when pointed at, and the line under them says what it does and how long its loop is), with two sliders for the speed and the size of the motion and a reset. A pick applies at once and the tray stays open while you tune; the close button, a press elsewhere or Escape closes it, and arrow keys work. These are the Shine tab's own settings, where the same groups show. On phones the tray opens as a sheet along the bottom, so the card stays in view.
- Save a looping GIF (the default), a full-color APNG loop or an MP4 video. All three show the card on its backdrop (Fine-tune → Card), moving as on the stage; with the Transparent backdrop the GIF and the APNG are transparent. All three are upright for upright shapes, on their side for wide ones and square for the square card: the GIF is 480×600 for the trading card, the APNG 320×400 and the MP4 1080×1350 (Instagram's 4 : 5 portrait).
- There is no still PNG: a file is always the moving card. The binder (Keep) holds a still of the card on the device.
- The MP4 is for Instagram and other apps that take neither GIF nor APNG. It is H.264 video at 30 fps with no sound track, its index at the front of the file (as Instagram asks), and the card's backdrop (video has no transparency, so the Transparent backdrop comes out black); its backdrop is as coarse next to the card as the GIF's. The loop plays as many whole times as it takes to last at least 6 seconds (Instagram takes nothing under 3): a 2.4-second loop plays three times (7.2 s), a 6-second one once; the frames are spread so the last loop closes on the first frame, so it loops in a player too. About 4 Mbit/s, so a 7-second video is around 3–4 MB. Each frame is drawn and handed to the browser's own video encoder (WebCodecs) one by one, never recorded in real time. Only browsers that can encode H.264 at that size offer it (checked once when the page loads: recent Chrome, Edge, Safari and Firefox on desktop, Chrome and Safari on phones); elsewhere the MP4 button is not shown, and a saved MP4 choice falls back to GIF.
- A loop is the card exactly as it moves on the stage when nobody touches it — the motion, the speed and size, the light and its sheen as set — one loop of the motion long (see
motion.md; 6 seconds while the light orbits or Blacklight's lamp drifts), so it closes without a seam. With an animated picture, its own loop plays a whole number of times inside (slightly retimed to fit); at speed zero the card holds still and the loop follows the picture's timing. - The loop options say so in one line, and how touch finishes are exported: a file has no hand in it, so an unseen finger strokes the busiest part of the picture once per loop.
- Relief, Platinum, Chameleon, Glow, Blacklight, Rainy Window and Marble GIFs are dithered so their smooth gradients don't band in 256 colors (with layers, the GIF is dithered if either finish asks for it).
- The loop options under the formats (closed by default) name the motion and the backdrop, each with a link to change it. With the Transparent backdrop a GIF is transparent: GIF transparency is one bit, so a transparent GIF has no shadow and a hard edge; the edge pixels keep the card's border color (Auto) or blend into a matte you pick (white, black or any color) to suit where it will sit. For a soft shadow and edges, save an APNG.
- Binder: Keep (in the Save box) puts the card in this browser's binder, and the binder chip in the header opens it. It is kept in IndexedDB on this device only: the picture (shrunk to 1280 px on its long side; an animated picture keeps its own file up to 8 MB, a bigger one its first frame; a sample is kept as its number), the card's settings and the brush strokes of its finish area, with a small still thumbnail drawn once when the card is kept (in the card's own shape: a card that isn't trading-card shaped sits in the middle of its pocket, keeping its shape).
- The binder works like a real one: six pages of nine pockets, two lying open side by side on wide screens (one on phones), pages that turn over at the rings, and each card in the pocket you put it in. Drag a card onto any pocket (on a touch screen, hold it a moment first): an empty one takes it, a full one swaps. Hold it at the edge of the pages to turn to another page. Empty pockets stay where they are, the arrangement is kept, and Undo takes a move back. Each pocket is a plain image, so nothing in it is drawn with WebGL, and only the thumbnails of the open pages are read.
- Tap cards to pick them (they lift like cards in a hand, and the line under the head names the picked card and when it was kept): To stage puts the picked card back on the stage, the one card drawn live, ready to tilt, tune, save or share (its picture and settings are read only now), and Discard throws the picked cards away. A single card goes from the red × on its corner (shown under the pointer, always there on touch screens). Either way it goes at once, and a bar with Undo brings it back for a few seconds.
- It holds up to 54 cards and 60 MB; its head shows the cards (11 / 54) and the space used (a bar, 203 KB / 60 MB), and a full binder says which ran out and asks for a discard before it takes another card. A thumbnail that can't be read shows as a card back with the card's name and finish, saying it can still go on the stage. Its code loads the first time it is used. The design is in
binder.md. - Share: on browsers whose share sheet takes files (most phones; most desktop browsers don't, and there the button isn't shown), Share (in the Save box) makes the card into a moving file on the spot, counting up on Share and on the Save button, and opens the share sheet with it. With MP4 chosen as the format (and a share sheet that takes video) it sends the MP4, the same file Save makes, for Instagram; otherwise a moving GIF, to send to X (where it plays), LINE and the like. The GIF for sharing is smaller than a saved one (360×450 for the trading card, at most 50 frames) so it stays well under X's 15 MB; it follows the shape and the motion.
- A short line and the site's address go with it; a share sheet that can't take text along with a file gets the file alone, and so does a Mac, whose share sheet's Copy would otherwise paste the GIF twice. Nothing is uploaded anywhere and the card is never put in a link: the file goes from the page straight to the share sheet. If making the file took so long that the browser no longer counts the tap, the button turns into Send and opens the sheet on the next tap.
- On a phone held upright the card is the screen: it runs nearly edge to edge (about 62% of the screen's height) under a thin header of icons. Under it sit the finish's name with ‹ › to either side, then the hand with the motion button at its left end and the deck and the pack button at its right end; Save folds into one slim bar along the bottom (choose image, the format, Save), and everything else is a scroll away in the panel. Only a short screen shrinks the card a little, so the hand and the deck stay whole above the bar.
- Flicking the card left or right with a finger, or tapping ‹ ›, steps to the next or previous card in the hand, whichever cards the hand holds at the moment, wrapping around at the ends (on Warmth, Glow, Rainy Window and Marble a finger strokes the card instead of flicking it); until the first flick, a note over the foot of the card says so. Phones on their side and tablets keep the hand right under the card and the full Save box, with the card shrinking on short screens.
- On phones and tablets the card also tilts as you tilt the device, and its shine moves with it; the rest pose slowly follows how you hold it, so any grip feels level. Android starts right away. iOS asks for motion access, and only when you tap the card or the hand (once per visit); if it is refused, the card simply keeps to touch. Browsers only give the sensor to secure (https) pages. Reduced motion turns this off.
- FOIL can be installed from the browser (Chrome's install button, Android's menu, Safari's Add to Home Screen) and then opens in its own window like an app, with its own icon. The page itself shows no install banner.
- Once it has been opened online, it opens and works offline: the page, every finish and pack, Fine-tune, the binder, every export and both languages are kept by a service worker, with the typefaces the page has used. Shadowbox and 3D Lenticular still need the network the first time, for their depth model.
- When a new version is out, a small green Update chip appears in the header (on narrower screens just its icon, in the GitHub link's place); pressing it switches to the new version at once. Left alone, the new version starts the next time FOIL is opened after every FOIL window was closed.
- On Android and in desktop Chrome, an installed FOIL appears in the share menu of photo apps; a picture sent to it opens on the card, as if it had been picked. iOS has no such menu for web apps.
- When a card is first kept in the binder, FOIL asks the browser to keep its storage from being cleared (Firefox asks you once; Chrome decides by itself). The design is in
pwa.md.
- Slow devices keep moving smoothly: the stage measures how long its frames take, and when it keeps missing frames (under 40 fps over a second) it lowers the drawing resolution step by step, then the backdrop's resolution and the number of sparks; far too slow (under 20 fps) it skips a step. It starts judging a second and a half after the page opens. A step that doesn't help (the device is capped, say by a battery saver, rather than busy drawing) is undone and not tried again.
- Phones and tablets that report little memory (4 GB or less, as low-priced Android phones do) start a step down (2 GB or less, two), so their first seconds are smooth too, and climb back a step at a time while their frames keep a 60 Hz pace; a climb that misses frames is undone and not tried again.
- Below full quality the backdrop holds still and the page's endless animations (the logo's tiles and sparkles, the sealed packs' glow and the like) play once; loading indicators keep moving. The two lowest levels also go without the CRT filter, and level 1 without its glow. This applies to the whole page, finishes, backdrops and the pack opening alike. Fast devices never leave full quality, and exports are always made at full quality.
- Add
?quality=0…3to the address to pin a level (0 is full), and?fps=1for a small meter over the logo: frames per second, the slowest frame of the last second and a bar for each of its frames, the drawing level, when the first card was drawn, and the GPU and memory the browser reports, to check a device by hand.
- English / 日本語, sound effects and a CRT filter can be toggled in the header.
- The CRT filter is off by default (it used to be on; the setting is saved under a new name, so everyone starts with it off once, whatever they had saved). Turned on, the whole page looks like an old CRT screen, as in Balatro: the corners are dark and rounded, the edges shade off and a faint reflection sits on the glass as if the screen bulged a little; scanlines make each line brighter at its center and darker between lines rather than only darkening; an RGB aperture grille (red, green and blue stripes) shows up close; bright areas glow softly; a faint red and blue fringe toward the left and right edges, as a CRT's beams converge less well there; and a faint grain, flicker and a slow rolling band, none of which play under
prefers-reduced-motion. Small text stays readable. It is a screen filter only: exported GIF, APNG and MP4 files never have it. Below full quality the glow is left out, and the two lowest levels go without the whole filter (see Performance). - FOIL respects
prefers-reduced-motion: the card's motion, the device tilt, the backdrop and moving finishes hold still on screen (exports still move).