Skip to content

Commit

Permalink
Poorly document command line mode
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Palethorpe <richiejp@f-m.fm>
  • Loading branch information
richiejp committed May 25, 2021
1 parent 181b0f7 commit 65bc49e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file added 210r-256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,16 @@ Presently it implements a nearest neighbor one dimensional cellular
automata and the reversible variants of each rule. The implementation
is described on
[richiejp.com/1d-reversible-automata](https://richiejp.com/1d-reversible-automata).

## Command Line

If the command line switch `-f <file path>` is specified then
`automata` will save an image to `<file path>` and exit. For example:

```sh
$ ./automata -w 4 -h 256 -i "Shell Example" -f ./210r-256x256.png -r 210 -e
```

Produces

![Rule 210r](210r-256x256.png)

0 comments on commit 65bc49e

Please sign in to comment.