Skip to content

Creates an SVG image based on the Recamán sequence.

License

Notifications You must be signed in to change notification settings

jorenvo/recaman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recamán sequence SVG generator

Creates an SVG image based on the Recamán sequence.

Inspiration

The rendered image is inspired by the Visions of the Universe book by Alex Bellos and Edmund Harriss.

Example

./example.svg Animated example.

Building

$ cargo build --release

The resulting binary will be at target/release/recaman-svg.

Usage

USAGE:
    recaman-svg [OPTIONS] <OUTPUT>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -n, --amount <amount>                Amount of Recamán points to generate. [default: 20]
    -w, --stroke_width <stroke width>    Stroke width of the line in the image. [default: 1.0]

ARGS:
    <OUTPUT>    Write SVG to OUTPUT.

About

Creates an SVG image based on the Recamán sequence.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages