rug

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: Unlicense Imports: 7 Imported by: 0

README

Rug Maker

rug creates an image of a square weave rug colored using tricoloration or p-coloration rules from knot theory.

To install: go install git.sr.ht/~satchlj/rug

To run: rug <fringeFunction> <num>

Where fringeFunction is the function which determines the fringe of the rug and thus the entire coloration, and num is an integer which determines the size of the rug.

Currently the only options for fringeFunction are alternate and random.

You can also generate a difference diagram between two fringe functions using rug diff:

rug diff <fringeFunction1> <fringeFunction2> <num>

You can generate a rug or difference diagram which is p-colored instead of 3-colored by calling

rug <fringeFunction> <num> <p>

rug diff <fringeFunction1> <fringeFunction2> <num> <p>

rug will save a file to the working directory called <fringeFunction><num>.png. Colors are RGB.

Idea from Bary Cipral and Paul Zorn at the Bridges 2023 Conference Proceedings; see original paper here.

See example images generated by rug.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL