Categories
Uncategorized

Waves

I have a new program to illustrate a concept I have been using to make periodic, highly variable and continuous variations in programming entities called classes.

[processing width=”600″ height=”200″ file=”https://benvancitters.com/wp-content/uploads/2011/03/waves.jar” method=”onclick”][/processing]

This program takes input from the mouse, the farther to the right the cursor is, the more waves are added together in each band of color and the farther towards the bottom the mouse is the more line segments are used to draw the wave.

The waves across the screen are a compilation of sine and cosine waves with varying amplitudes, offsets, and frequencies. I’m working on building a class that allows simple control of the result of such a complicated series and composition of functions to be used in further programs.

Leave a Reply

Your email address will not be published. Required fields are marked *