Skip to main content

Tiny library for probabilistic line drawing

Project description

# Probart Probart is a helper library I use in my generative art experiments.

It sits on top of PyCairo and NumPy. Nothing beneficial, only a draft. Right now, you could draw just multi-line paths with it:

from probart.canvas import EntropyCanvas

width = 1920
height = 1080
background_color = (0, 0, 0, 0)
canvas = EntropyCanvas(width, height, background_color)

path = [(0, 0), (1, 1)]
start_color = (0.7, 0, 1, 0.1)
end_color = (1, 1, 1, 0.1)
num_clones = 100
line_width = 1 / width
main_deviation = 0.01
sub_deviation = 0.005
canvas.multiline(path, start_color, end_color, num_clones, line_width, main_deviation, sub_deviation)

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

probart-0.1.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

probart-0.1.0-py2.py3-none-any.whl (3.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file probart-0.1.0.tar.gz.

File metadata

  • Download URL: probart-0.1.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for probart-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9d072f0f888707197ccceff38f1546cf106332142b6941f57eb61f581c7dd04c
MD5 2ec2082abfeb39ff9469ca4dc00b5a8f
BLAKE2b-256 26a1a1e71ff45d0312499f531d48d5e5d53cf762b1f5b50e13154689765e9260

See more details on using hashes here.

File details

Details for the file probart-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: probart-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for probart-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3ac8cbe412106f251e6c27c517a640875cb06b49d299ea919a04293789936a27
MD5 f78d4313171c4377f5ef455ab645e8bc
BLAKE2b-256 a7f07e1aea7950e25ab3f034f4d2e25fd8e422060647d293ed24ea6510d651fc

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