Skip to main content

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.

Demo

Meander

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

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

greek_key_meander-0.0.5.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

greek_key_meander-0.0.5-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file greek_key_meander-0.0.5.tar.gz.

File metadata

  • Download URL: greek_key_meander-0.0.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for greek_key_meander-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3b79a696f34e112ff2fdf09be0f216e54956ccc0544740315384f69526c0fae0
MD5 6f64f13f832f972011738e24e3f0c325
BLAKE2b-256 130d843c3c742bad2559a314e17e36648581f7b369148ab1e02d5331686243d5

See more details on using hashes here.

File details

Details for the file greek_key_meander-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for greek_key_meander-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 52bb475ea26a33dc8aa3db63c68e92097e63bfa6224c296fb2cc09584c35063f
MD5 9bb39cd7f4669b9d61a2e074353d97b1
BLAKE2b-256 c4e246c0a79154233782055fb0642576a019168b3096d160dfbc160779eda503

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page