Is this right?
- Establish a buncha particles
- Gridded? Random?
- Pass the start XY through a
noise = random.noise2D(sx, sy)
to get a value
- What to do with Frequency?
- What to do with Amplitude?
- Returns range
(-1, 1)
?
- Calculate next XY via:
var x = r * Math.cos(noise);
var y = r * Math.sin(noise);
- Line-to between the points:
context.moveTo(sx,sy)
context.lineTo(x,y)
- Profit?