The map .svg (default: <project>_subway.svg). The spec is written next to it with a .yaml suffix.
-o, --output
draft
The spec .yaml (default: <project>_subway.yaml).
-o, --output
render
The map .svg (default: next to the spec).
--overwrite-spec
auto
Replace an existing spec. By default auto keeps it, so your edits are safe.
--palette NAME
auto, draft, render
Line colours: okabe-ito (default), tol-bright, tol-vibrant, tol-muted, ibm or tab10. A new draft gets palette: NAME; on render (and auto with a kept spec) it overrides the spec's palette: without changing the file. See Colour palettes.
--theme THEME
auto, render, preview
light (default), dark, or auto to follow the viewer's light/dark setting (SVG only: PNG and PDF come out light). Overrides the spec's theme: without changing the file. See Dark mode.
--png
auto, render
Also write a PNG at 3× resolution. Needs rsvg-convert.
--pdf
auto, render
Also write a vector PDF. Needs rsvg-convert.
--strict
auto, render
Exit with an error if the overlap check finds anything. Useful in CI.
slitherflow preview SPEC serves a page on your own computer (at http://127.0.0.1:8000/) and opens it in your browser. Every time you save the spec, the map is redrawn. The page shows:
the map, with any overlaps listed under it;
the error that stopped it drawing, if the spec has a mistake (the last good map stays on screen, faded);
the x and row under the mouse. Click the map to copy x: <number>.
Option
Meaning
--palette NAME, --theme THEME
As for render
--port N
The port to use (default: 8000, or any free port if 8000 is taken)
--no-browser
Don't open a browser; just print the address
Press Ctrl-C to stop it. The preview never writes any files: run render when you're happy with the map.