uspiral
is command line utility that outputs a visualization of the Ulam
spiral in the form of a grayscale image. uspiral
can generate spiral
images with dimensions in the range [128, 4096]
. Many image formats are
supported including PNG, JPEG, and Webp. See below for the program usage.
Visualize the Ulam spiral.
Usage: uspiral [OPTIONS] <OUTPUT_FILE>
Arguments:
<OUTPUT_FILE> output image path (e.g., /foo/bar/ulam.png)
Options:
-d, --dimension <DIMENSION> image dimension [default: 256]
-h, --help Print help
-V, --version Print version