Skip to main content

Drawing utilities for generating geometric patterns and grids using Pillow and aggdraw

Project description

lambda-draw-tools

Drawing utilities for generating geometric patterns, grids, and wave-based line art using Pillow and aggdraw.

Install

pip install lambda-draw-tools

Quick start

Hexagon grid

from lambdawaker.draw.grid.hexagon_grid import create_hexagon_grid

img = create_hexagon_grid(
    width=600,
    height=600,
    hexagon_size=40,
    thickness=2,
    angle=0,
    color="#4B0082",
    bg_color=(255, 255, 255, 0),
)
img.show()

Angled parallel lines

from lambdawaker.draw.waves.parallel_lines import create_parallel_lines

img = create_parallel_lines(
    width=800,
    height=600,
    spacing=24,
    thickness=2,
    angle=35,
    color="midnightblue",
    bg_color=(255, 255, 255, 0),
)
img.show()

Requirements

  • Python 3.8+
  • Pillow >= 9.0
  • aggdraw >= 1.3.16.post1

Notes

  • On some platforms, aggdraw may require build tools if a prebuilt wheel isn’t available.
  • The library exposes convenience creators like create_hexagon_grid and create_parallel_lines, as well as lower-level draw_* functions that render into an existing aggdraw.Draw context.

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

lambdawaker_draw_pattern-0.1.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

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

lambdawaker_draw_pattern-0.1.2-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file lambdawaker_draw_pattern-0.1.2.tar.gz.

File metadata

  • Download URL: lambdawaker_draw_pattern-0.1.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for lambdawaker_draw_pattern-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e69a939235889c9c678ccfe5b6822a939d936754e91e7634d75e2ac21ad4f076
MD5 e9b7b189ad5b9d85450ee978815605f1
BLAKE2b-256 52fffb6f5d9109371ff89589e6f51fda217baaaed28b10adbab31b7624115a87

See more details on using hashes here.

File details

Details for the file lambdawaker_draw_pattern-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lambdawaker_draw_pattern-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 06ebec72a04445fefa1c70a1d8f90d42e9516271b301fc1f1d2bb8acd68f37d4
MD5 4bfed33df196ff595193249a9c29d27e
BLAKE2b-256 f50577479f9cb26ae0bd9f15059afbd50353bf89b0d62c01c3fb24c68014c6c0

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