| Crates.io | greek-meander |
| lib.rs | greek-meander |
| version | 0.1.3 |
| created_at | 2025-08-31 16:41:25.842604+00 |
| updated_at | 2025-09-05 21:37:44.816588+00 |
| description | A Rust crate for creating rectangle border design of Greek Key (Meander). |
| homepage | |
| repository | https://github.com/bingqiao/meander |
| max_upload_size | |
| id | 1818686 |
| size | 509,693 |
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 14
This 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 24
This will generate a my_circle_design_circle.svg file.
To build this project, navigate to the project root directory and run:
cargo build
To 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 14
This project is licensed under the MIT License. See the LICENSE file for details.