siteIcon

Tech Novice Tools

Python-Processing Demos

burgerIcon

Breathing Circles Democircles

"Sinusoids in Action"

Take a breath: The 'Breathing Circles' Demo

We wanted to create software 'engines' that would create circles that could 'breathe:' change their sizes in an oscilating fashion as they moved, apparently randomly, in the canvas.

What resulted was creating several classes that formed the blueprint for the breathing behaviors as well as the changes of velocity, position, color and opacity (alpha).

The star of the show is our Sinusoid class that allowed us to model periodic changes in nearly all of our variables.

If you like this movie, look at the sequel, Crazy Quilt where we placed a breathing circle in a grid system.

How'd we do it?

Take a peek at our source code.

See a demo of a breathing circle in orbit!

Last update: 09/19/19