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

Uploaded Python 3

File details

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

File metadata

  • Download URL: greek_key_meander-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 c8cdc67efcd1a4652b6630c92d87d334451eb47984a92a85b1e3f3ed00416d4f
MD5 80d5147f364932a08b8e9b67cd17a4aa
BLAKE2b-256 e2a9eb53cb8c2389b215964260b3003649eb581952e88b4b30b93608db8438c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for greek_key_meander-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9068b696ec04d12f47fd740417e04a9a1b5b59ea992b1fad57ef375d2f2fcd0d
MD5 f177413ff874461baf77f19e138726b6
BLAKE2b-256 d3602503863a034b2770e6b36e0aec10105cb81b333e40eb56629b8881f50d46

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