Generative art library
Project description
generativepy
Generative art and graphing library for creating images and animations.
Version 3.0 notes
Version 3 introduces a few breaking changes compared to 2.x, mainly to improve the graph module.
- The
Axes
class has changed. The main breaking change is that it now uses the current user coordinates to control line thickness and text size, just like most other classes. Previously it used a crazy system of guesswork and magic scaling factors. On the plus side, it now also allows much more control over the axes appearance. - The previous graph plotting functions have gone. Plotting is now done by a
Plot
class, that works in a similar way to other shape classes. - A minor change is that the
color
parameter has been renamed topattern
in most places, to reflect the fact that it can now be a gradient (and hopefully soon image, vector pattern and mesh fills will be supported). This will only affect code that uses a named parameter forcolor
. The parameter itself can still acceptColor
objects, as well as the newLinearGradient
objects.
Usage
generativepy is a library rather an application. It provides useful functions and example code that allow you to create images and videos by writing simple Python scripts.
The library requires:
- pycairo.
- NumPy.
- Pillow.
- easy_vector.
- moderngl (only required for 3D imaging).
- Command line application gifsicle (only needed for GIF creation).
Main functionality:
- A simple framework for creating images, image sequences, and gifs, using pycairo.
- Support for bitmap processing using PIL and NumPy.
- Colour module that supports RGB, HSL and CSS colours, transparency, lerping, colormaps.
- A simple tweening module to help with animation.
- Geometry module for drawing shapes.
- A graphing library for plotting 2D functions.
- 3D geometry module using moderngl.
Website
Visit pythoninformer.com for details:
There are also some art examples in the Generative Art section of my blog.
For detailed information of pycairo see the Computer graphics in Python ebook.
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
generativepy-3.1.tar.gz
(31.6 kB
view hashes)
Built Distribution
generativepy-3.1-py3-none-any.whl
(30.7 kB
view hashes)
Close
Hashes for generativepy-3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef10224f0962942b1c313cd6570cee975e651f68f51896ce7f1487ea51d241fa |
|
MD5 | 6c38f734e341d6024e51c0f5937f7941 |
|
BLAKE2b-256 | c441f480c06dd0c6255f44dcee3f290318a248352d8399eae8b370228db62f09 |