Metadata-Version: 2.1
Name: probart
Version: 0.1.0
Summary: Tiny library for probabilistic line drawing
Home-page: https://github.com/a5kin/probart
Author: Andrey Zamaraev
Author-email: a5kin@github.com
License: MIT
Keywords: probabilistic drawing tools utils utility
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Topic :: Artistic Software
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Dist: numpy
Requires-Dist: pycairo
Provides-Extra: dev
Requires-Dist: check-manifest ; extra == 'dev'
Provides-Extra: test
Requires-Dist: coverage ; extra == 'test'

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


