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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for probart-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ac8cbe412106f251e6c27c517a640875cb06b49d299ea919a04293789936a27 |
|
MD5 | f78d4313171c4377f5ef455ab645e8bc |
|
BLAKE2b-256 | a7f07e1aea7950e25ab3f034f4d2e25fd8e422060647d293ed24ea6510d651fc |