Skip to content

Latest commit

 

History

History
88 lines (53 loc) · 2.44 KB

README.md

File metadata and controls

88 lines (53 loc) · 2.44 KB

Pydra, a visual synthesizer written in Python

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.

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

The oscillator and its functions

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