PDA

Click to See Complete Forum and Search --> : Drawing wavey line?


AirScape17
Dec 12th, 2002, 07:12 AM
Given something like:

Randomize Timer
Dim wave(1 To 30) As Integer
For a = 1 To 30
wave(a) = Rnd * 100 - 50
Next


What would be the math for drawing a curve between each 'wave(n)' point at, say, 15 pixel intervals? (ie, like a sound wave)

Spooner
Dec 12th, 2002, 07:34 AM
I'm sure you'll find something at Mathworld, perhaps in the geometry (http://mathworld.wolfram.com/topics/Geometry.html) area?