Archive | Uncategorized RSS feed for this section

Fun with Sine

22 Dec

This sketch provides a useful subroutine

void sineTo(PVector p1, PVector p2, float freq, float amp, float phase)

That can be used to draw a sine wave from one point to another. The end segments of the wave are lerped so that the wave meets at the point.