A package for generating Greek key meanders
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greek_key_meander-0.0.6.tar.gz.
File metadata
- Download URL: greek_key_meander-0.0.6.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
864b91c4202bf3e704ce994c5bc13bddfc9c88c1036345716452777c37981ff4
|
|
| MD5 |
f5e8a09f1c154db780523c6debe3e4b4
|
|
| BLAKE2b-256 |
9c6224521e00395ef4a616d5b21781e427d281fc0e8548c86fb0e2549faca8f3
|
File details
Details for the file greek_key_meander-0.0.6-py3-none-any.whl.
File metadata
- Download URL: greek_key_meander-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1807c35b0ea490fa6648911ee7affb3a51285f89271a785db1bb367690dc273
|
|
| MD5 |
ab51d51b3c51cadc5d085f8fda7d05d9
|
|
| BLAKE2b-256 |
8c90ed6abf8a45d5476cfd7c8382920c4979a8b4e8d1b3d4a4897eb21b6b48cc
|