Skip to main content

A minimalist, art-focused Python drawing library with object-oriented design

Project description

PyFreeform logo

PyFreeform

Turn images into art with Python.

Mona Lisa rendered as dot art

Install

pip install pyfreeform

Requires Python 3.10+.

Quick Start

from pyfreeform import Scene

scene = Scene.from_image("photo.jpg", grid_size=40)
for cell in scene.grid:
    cell.add_dot(radius=cell.brightness * 0.4, color=cell.color)
scene.save("artwork.svg")

That's it — four lines from photo to SVG.

What Can You Make?


Color dots

Filled Lissajous curves

Flowing curves

ASCII art

Connected networks

Multi-layer compositions

Dots, lines, curves, polygons, text, ellipses, custom paths — all positioned relative to a grid of cells. Sizes are fractions of the cell, so your art scales to any resolution.

Learn More

Everything you need is in the docs:

  • Getting Started — install and create your first artwork
  • Guide — every feature, explained visually
  • Recipes — portraits, patterns, typography, networks
  • API Surface — complete reference

License

GPL-3.0 — see LICENSE for details.

Acknowledgments

Built on NumPy (BSD-3-Clause) and Pillow (MIT-CMU). See LICENSES/third_party/ for full texts.

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

pyfreeform-0.4.0.tar.gz (3.3 MB view details)

Uploaded Source

Built Distribution

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

pyfreeform-0.4.0-py3-none-any.whl (120.1 kB view details)

Uploaded Python 3

File details

Details for the file pyfreeform-0.4.0.tar.gz.

File metadata

  • Download URL: pyfreeform-0.4.0.tar.gz
  • Upload date:
  • Size: 3.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfreeform-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fe6b5d84fa5669ff50b9316b6db629e31ab58563dd932a2eeeffedf11f34afbe
MD5 8b3a607aa07320a3e30976406ce610e1
BLAKE2b-256 0cdb269d97ad75c480477a69f8708e4624e8cbe2c6afbbbb046da2d4280b4bdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfreeform-0.4.0.tar.gz:

Publisher: publish.yml on MatheweB/pyfreeform

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pyfreeform-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pyfreeform-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 120.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pyfreeform-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea1dabf12c7c20bb44b7de2ce5c6cc988fdfd751def9bf7d0ab6e167278f365c
MD5 059110525a76c9e398b6c61b87f2cdde
BLAKE2b-256 04895bc677a81e1de3309f4674c4d7f3d47521811649c2899edb40d94811bcac

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyfreeform-0.4.0-py3-none-any.whl:

Publisher: publish.yml on MatheweB/pyfreeform

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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