Skip to content

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: a sprite drawn with theme tokens, revealed row by row and waving in two frames, then a leaf in fixed colours.

Lorem spritesOpen fullscreen
Lorem spritesOpen fullscreen
examples/motion-pixel/sprites.story.md
--- title: Lorem sprites description: Hand-drawn pixel sprites in a vertical film, with no image file format: motion aspectRatio: 9:16 theme: warm-editorial --- --- id=open Lorem ipsum # Pixel sprites. --- id=hand-drawn type=pixel ```pixel id=sprout alt="Lorem sprout, waving" fps=4 reveal=scan . = transparent k = text g = accent m = data.mint ...kk... ..kggk.. .kggggk. ..kmmk.. ...kk... ...mm... ...kk... ..kggk.k .kggggkk ..kmmk.. ...kk... ...mm... ``` Dolor sit amet. --- id=fixed type=pixel ```pixel id=leaf alt="Lorem leaf in fixed colours" scale=auto . = transparent d = #1f3a24 l = #5aa84f y = #e8d27a ....dd.... ...dlld... ..dllyld.. .dllyylld. ..dllyld.. ...dlld... ....dd.... .....d.... ``` Consectetur adipiscing elit. --- id=generated type=pixel ::pixel{gen=sprite seed=lorem variants=2 body=accent id=figure alt="Lorem figure, generated from a seed" fps=2} Ipsum, from a seed. --- id=close One grid, every **rendering**. :::notes Lorem ipsum dolor sit amet, consectetur adipiscing elit. :::

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.

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: 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.

Dolor sit amet

consectetur adipiscing

Card 1 of 5

Lorem CardsOpen fullscreen
examples/webstory-textcards/textcards.story.md
--- title: Lorem Cards description: The five text cards of Récit in a vertical story, in English and French, with no image file format: webstory lang: en aspectRatio: 9:16 dur: 6 --- --- id=headline :::textcard{variant=title background=gradient} # Dolor sit amet consectetur adipiscing ::: --- id=quote :::textcard{variant=quote background=theme} Lorem ipsum dolor sit amet, consectetur adipiscing elit. — Lorem Ipsum ::: --- id=figure :::textcard{variant=stat source="Lorem Ipsum report, 2026"} # 5,400 dolor sit amet this quarter ::: --- id=steps :::textcard{variant=list background=theme} ## Sed do - Lorem ipsum - Dolor sit - Amet consectetur ::: --- id=note :::textcard{variant=caption background=gradient} Ut enim ad minim veniam, quis nostrud. :::

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.