# Images

An image of a film can be written like the rest of the story: as text. A ` ```pixel ` fence is a
legend and a grid of characters, drawn as SVG and animated by the film. No image file, no model, no
third-party asset: the same grid gives the same frames on the web, in the MP4 and in a capture.

## Sprites

The film below is
[`examples/motion-pixel`](https://github.com/vguerand/recit/tree/main/examples/motion-pixel): a
sprite drawn with theme tokens, revealed row by row and waving in two frames, then a leaf in fixed
colours.

<div className="motion-grid">
  <StoryEmbed slug="motion/sprites" aspect="9:16" />
  <StoryEmbed slug="motion/sprites" aspect="1:1" />
</div>

<SourceFile deck="motion/sprites" title="examples/motion-pixel/sprites.story.md" />

## One grid, every language

The French companion `sprites.story.fr.md` keeps the same grids and translates only the `alt` text
and the captions: grids, legends and colours are never localised.

## Writing a sprite

The syntax, the colours, the attributes and the errors are on the
[pixel page of components.recit.dev](https://components.recit.dev/pixel).

## Text cards

A `:::textcard` turns a quote, a title, a number, a caption or a short list into a vertical card:
safe margins, the theme background or a gradient, the text fitted to the card. The story below is
[`examples/webstory-textcards`](https://github.com/vguerand/recit/tree/main/examples/webstory-textcards):
the same source is a `webstory` story, tapped card by card, and a 9:16 film, where each card enters
like the block it dresses.

<StoryEmbed slug="webstory/textcards" format="webstory" />

<SourceFile deck="webstory/textcards" title="examples/webstory-textcards/textcards.story.md" />

The French companion `textcards.story.fr.md` translates the texts; the variant, the background and
the `source` of a number are never localised. A text too long for its card in one language is an
error with the file of that language. The syntax is on the
[text card page of components.recit.dev](https://components.recit.dev/textcard).
