Real fix for maxAge puzzle was to correct the length of the points array. You need n+1 points to create n segments.
Removed unused background color method. Added comments.
Removed bucketSize variable to simplify. Tweaked hi-lo lerp. Added comments.
Added comments
Added comments
Added comments
Added comments
A few simple demos to illustrate perlin noise