mix raxol.render (Raxol v2.6.0)

View Source

Render a TEA module (or .exs file path) to a video file or a single image.

$ mix raxol.render examples/getting_started/counter.exs --output demo.gif
$ mix raxol.render examples/getting_started/counter.exs --output frame.png

The output extension selects the format: .mp4/.webm/.gif produce a clip; .png captures a single frame.

Options

  • --output FILE output path (required); extension selects the format
  • --duration MS clip length in ms (default: 2000; ignored for .png)
  • --fps N frames per second (default: 10; ignored for .png)
  • --theme NAME terminal theme (default: default)
  • --size COLSxROWS grid size (default: 120x40)
  • --rasterizer NAME chromic (default, warm Chrome pool) or chrome (per-frame)
  • --settle MS wait before the first capture (default: 80)