Create a frame of Greek Key (Meander) design in SVG format.
This is a Rust crate for creating both rectangle and circle border designs of the Greek Key (Meander).
Here are some examples of the images that can be generated:
Rectangle
Circle
cargo install greek-meander| Option | Description | Default |
|---|---|---|
stroke-width |
The width of the stroke | 6.0 |
stroke-color |
The color of the stroke | "#AB8E0E" |
stroke-opacity |
The opacity of the stroke | 0.7 |
border-margin |
The margin of the border | 1 |
file |
The base name of the output file | "meander" |
To generate a rectangle meander design, use the rect command:
meander rect --size <SIZE> --width <WIDTH> --height <HEIGHT>Options
| Option | Description | Default |
|---|---|---|
size |
The size of the greek key cells | 25 |
width |
The number of cells for the top and bottom borders | 16 |
height |
The number of cells for the left and right borders | 9 |
Example
meander --stroke-color "blue" --file "my_design" rect --size 12 --width 22 --height 14This will generate a my_design_rect.svg file.
To generate a circle meander design, use the circle command:
meander circle --radius <RADIUS> --pattern-count <PATTERN_COUNT>Options
| Option | Description | Default |
|---|---|---|
radius |
The radius of the circle | 300.0 |
pattern-count |
The number of patterns in the circle | 30 |
Example
meander --stroke-color "red" --file "my_circle_design" circle --radius 120 --pattern-count 24This will generate a my_circle_design_circle.svg file.
To build this project, navigate to the project root directory and run:
cargo buildTo run the project, use:
cargo run -- <GENERAL_OPTIONS> <COMMAND> <OPTIONS>For example:
cargo run -- --stroke-color "blue" --file "my_design" rect --size 12 --width 22 --height 14This project is licensed under the MIT License. See the LICENSE file for details.

