diff --git a/lib/createRenderer.js b/lib/createRenderer.js index 2f8996b..5be8760 100644 --- a/lib/createRenderer.js +++ b/lib/createRenderer.js @@ -104,6 +104,10 @@ module.exports = function createRenderer (opt) { p.time = random(0, p.duration); p.velocity = [ random(-1, 1), random(-1, 1) ]; p.speed = random(0.5, 2) * dpr; + + // Note: We actually include the background color here. + // This means some strokes may seem to "erase" the other + // colours, which can add a nice effect. p.color = palette[Math.floor(random(palette.length))]; return p; }