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 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.2.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.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: greek_key_meander-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 e2d555f655ff04082455b62a7b0f39895d9064433bb1d96a815e8b80d9702e30
MD5 aef24afda1b0c6abe440bd92230d857c
BLAKE2b-256 fcd5d2baecb3b8dac0a17d25ac9b7a7a8a6cb3b643060f6bbc9585c34c4fafcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for greek_key_meander-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 911de26ee8695a6e0fffe62535251b775ce6e3455c4b0e7afac122c61e3b3f15
MD5 ce46c47978c143c49b4f814d11cbf7dc
BLAKE2b-256 232474cc8db2d50206b0f7a8093b9b6a9e7eb3bcc3ebbc50d2ca24d26587c817

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