Skip to content

Playground

Write a karyon command, edit the files it reads and watch the figure it draws, with nothing to install. This page runs the same program as the command line, compiled to WebAssembly.


How to use it

  1. Start from an example, or write a command. Examples opens thirty-three figures that between them use every track flag the command line has. The command box takes everything you would type after karyon in a terminal.
  2. Edit the files. Each tab under the command is one input file, and the command names it by the tab's name. + adds a file, a double click or F2 renames one, and Del or the cross on the tab removes it.
  3. Draw. The figure redraws a moment after you stop typing, and Draw or Ctrl+Enter draws it at once.
  4. Explore. Tick Interactive, then drag the figure along the sequence, or give it focus and scroll, press the arrow keys, or press + and -. Every frame is a fresh run of the command, and the region in the command follows you. Reset view puts back the command the example started with.
  5. Use the controls under the figure. They depend on the example. The window slider and the flag controls rewrite the command, so it always says what you see; the others regenerate the example's input files.
  6. Export SVG saves the figure exactly as drawn. Layout puts the command beside the figure or above it, and Full screen gives it the whole screen.

Nothing leaves your browser

The program runs inside this page, and nothing you type or paste is uploaded anywhere.

A few things differ from a terminal:

  • The page picks the width and the theme. The figure is drawn as wide as its pane and follows the site's dark setting. Put --width or --theme in the command to override either.
  • Files are the tabs. A file name in the command names a tab, not a file on your disk.
  • There is no standard input and no help text. - has nothing to read here, and --help answers with a note. The Command line guide is the help text written out.