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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page