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.

Tags: , , , ,

No comments yet

Leave a Reply

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