ANTLII
CONTACT
RASTRINFO
  1. Overview

RASTR Tool

RASTR is a web-based tool that transforms written text into geometric and kinetic compositions through a custom rasterization algorithm. The canvas containing the text is divided into a grid of virtual cells whose size determines the rasterization detail. The tool samples the text at each grid point and renders a geometric shape wherever it detects part of a letter. These shapes can be styled and animated through the control panel.

Built with p5.js, RASTR supports both Google Fonts and custom fonts, allowing you to experiment with different typefaces and ways of reconstructing text through geometry. You can export scalable SVG artwork for print or further editing, save individual frames as raster images, or export animations as video or image sequences for later assembly.

The tool also lets you save and load presets as JSON files, keeping the text and graphical settings together so you can return to a composition and continue working on it.

Basics of use

For a quick start, I suggest exploring Preset List in MAIN. The ready-made compositions give you an idea of the tool’s features and provide starting points for your own experiments.

When you enter text in Prompt Text, it automatically wraps within the canvas. To insert a line break manually, use the /n combination inside the string.

Rasterization Quality controls the density of the shapes used to reproduce the text. Higher values produce more shapes and finer detail, but increase the amount of drawing the tool has to do. This can reduce performance, especially during live animation.

To avoid unnecessary rendering, RASTR switches between a static preview and live animation according to Export Type in EXPORT:

  • In Frame mode, the canvas stays static and updates when you change a setting. This reduces unnecessary processing while you work on a still composition. You can also use Select Frame to choose which moment of the animation to export.
  • When you select Video or Frame Sequence, the program switches to real-time rendering, allowing you to preview the animation live on screen.

Performance and compatibility

Some technical tips for working with the tool:

  • Fonts: RASTR supports OTF, TTF and WOFF fonts. Fonts loaded from Google Fonts may take some time to become available, and certain fonts may not display correctly. Features such as kerning or ligatures may not be fully supported.
  • Video Export: MP4 export requires a browser and device with a compatible WebCodecs AVC encoder. Availability varies with the output dimensions. High-resolution or long videos may also run out of memory. If export fails, try reducing Export Scale or the duration. For large or high-resolution projects, you can export a PNG sequence and convert it to video separately using FFmpeg.
  • Frame Sequences: Frame sequences are saved in ZIP archives. ZIP Part Size sets the maximum size of each archive, allowing a long sequence to be split into smaller downloads.
  • WebP Export: WebP requires native browser support. If it is unavailable, use PNG instead.
  • Transparency: The canvas background is included in the export. PNG and supported WebP exports preserve transparency. JPG and MP4 render transparent areas in black.
  • SVG Export: A valid license is required for SVG export. When using Text String as Shape Type, some characters, particularly special characters or emoji, may not convert correctly into vector paths.
  • Mobile Support: The program is not designed to run on mobile devices. Use a desktop browser.

Please let me know if you run into an issue or discover a bug while using the tool.

Credits

I would like to acknowledge the third-party libraries used in RASTR and thank their creators for making them available:

  • The p5.js ↗ Creative Coding Library and the team behind it.
  • OpenType.js ↗ for access to font letterforms and vector paths.
  • Tweakpane ↗, the interface library developed by Hiroki Kokubun.
  • The Simplex Noise ↗ algorithm by Jonas Wagner.
  • The Mediabunny ↗ library, used by CanvasExport to encode MP4 video.
  • fflate ↗ by Arjun Barrett for bundling exported frames into ZIP archives.
  • spectral.js ↗ for realistic color mixing, by Ronald van Wijnen.

Technical details

Version
0.34
Exports
PNG / JPG / WebP · SVG · MP4 · PNG / JPG / WebP sequence (ZIP)
Presets
JSON
Built with
p5.js · JavaScript