From addb11cec82c4d77bb80abab8ed43750e98f616a Mon Sep 17 00:00:00 2001 From: mattdesl Date: Wed, 11 May 2016 10:07:01 -0400 Subject: [PATCH] code comment --- lib/createRenderer.js | 4 ++++ 1 file changed, 4 insertions(+) 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; }