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

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 -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.3.tar.gz (4.3 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.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greek_key_meander-0.0.3.tar.gz
  • Upload date:
  • Size: 4.3 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.3.tar.gz
Algorithm Hash digest
SHA256 576daafc674e0fc134825926c6bf93c4065167772ba75dd5fcafb967dc5d0647
MD5 1b42a23f9514758206f4ef7898011a31
BLAKE2b-256 e92728a517b0245b5b3e84a12881ca5c6c3188ccb5298e0d11f3132a62a37438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for greek_key_meander-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 21cd9cf1933eb82cde47ccec2af0c191de8bf2cb409b27e762ac8e552c00ba1d
MD5 d5c8c990aedf0d41f333647b7e923ed3
BLAKE2b-256 68d824e3792f85df200a13aee3114991add8c71decc73a7224977377c87fe7c1

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