Greek Key Meander Generator
This Python script generates Greek key meander patterns as SVG and PNG images.
Warning This package has been deprecated and is no longer maintained. Please use the new package greek_meander instead.
Demo
Description
The script uses the drawsvg library to create the pattern and cairosvg to convert it to a PNG image. The pattern's dimensions, colors, and other properties can be customized through command-line arguments.
Installation
You can install the package from PyPI:
pip install greek_key_meander
This will also install the required dependencies: drawsvg and cairosvg.
Usage
You can run the script from the command line and specify various arguments to customize the output.
python -m meander [options]
Options
| Argument | Type | Default | Description |
|---|---|---|---|
--stroke-width |
float | 6.0 | Line thickness in pixels. |
--stroke-color |
str | '#AB8E0E' | Line color (name, hex, or RGB). |
--stroke-opacity |
float | 0.7 | Line transparency (0.0 to 1.0). |
--size |
int | 25 | Size of the pattern unit. |
--width |
int | 16 | Number of patterns horizontally. |
--height |
int | 9 | Number of patterns vertically. |
--file |
str | 'meander' | Output filename for SVG and PNG. |
Example
To generate a pattern with a red color and a different size:
python -m meander --stroke-color red --width 10 --height 5
Or just the following if the module is installed:
meander --width 24 --height 13 --size 10 --stroke-color "#AB8E0E" --stroke-opacity 0.7
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for greek-key-meander 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| greek_key_meander-0.0.6.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| greek_key_meander-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / greek_key_meander-0.0.6.tar.gz
| Download URL | greek_key_meander-0.0.6.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
864b91c4202bf3e704ce994c5bc13bddfc9c88c1036345716452777c37981ff4
|
|
BLAKE2b-256 checksum How to use checksums |
9c6224521e00395ef4a616d5b21781e427d281fc0e8548c86fb0e2549faca8f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|
Release files / greek_key_meander-0.0.6-py3-none-any.whl
| Download URL | greek_key_meander-0.0.6-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1807c35b0ea490fa6648911ee7affb3a51285f89271a785db1bb367690dc273
|
|
BLAKE2b-256 checksum How to use checksums |
8c90ed6abf8a45d5476cfd7c8382920c4979a8b4e8d1b3d4a4897eb21b6b48cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.13
|