Rainbows
Posted on February 26, 2015
by Andrew Michael
tags: sketch, processing
This is a Processing sketch embedded in an HTML canvas via Processing.js. The program below displays two oscillating sine waves with different frequencies and amplitudes, with their color determined by interpolating \(sin(\theta)\) and a color wheel. Motion blur is created by wiping the drawing area with a low-opacity rectangle every frame.