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.

Requirements

  • Python 3
  • drawsvg
  • cairosvg

You can install the required libraries using pip:

pip install drawsvg cairosvg

Usage

You can run the script from the command line and specify various arguments to customize the output.

python meander.py [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 meander.py --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.1.tar.gz (4.2 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.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greek_key_meander-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 cd3c0ae16e3d985ab9d56d3c1b2b68469f39954e19aa7bbb612565a17b489acc
MD5 611aa58b235dfb3a5b4b627338f9e6ea
BLAKE2b-256 c45866ce40b5c1dca9fc7bd4003e9254b4bc7d3beb505bc32b72768602e713b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for greek_key_meander-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a2c69e281c8e1da901dbbd0320b3307b66087a1047600d28a36a8240cf605a92
MD5 a0633cf768afc99354cd2db959f4fb98
BLAKE2b-256 ea70d5abac4e551897eea14bab0824c32b44e99bf339316682c9bbce430a39c0

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