Pydra (inspired by Hydra) is a visual synthesizer that is able to generate beautiful visual patterns. You have a wide range of functions available that interact with each other and will allow for endless posibilities. Below, a few examples are given to get you started.
First, install the package using pip
:
pip install pydrasynth
Import the package and initialize the display
from pydrasynth import init, osc
init(width=200,height=200)
A simple oscillator can be created and displayed like this
osc().out()
Also the period, speed and offset of the oscillator can be changed
osc(speed=0.2, period=50, offset=0).out()
Oscillators can be rotated
osc().rotate(degrees=45).out()
And added to other oscillators
osc().rotate().add(osc()).out()
Also subtraction and multiplication is possible
osc().rotate().diff(osc()).out()
osc().rotate().mult(osc()).out()
Furthermore, the position of certain pixels can be shifted based on the color of another oscillator using modulation
osc().modulate(osc().rotate()).out()
All functions can be found in Pydra.py