Skip to content

Commit

Permalink
code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdesl committed May 11, 2016
1 parent c672395 commit addb11c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/createRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit addb11c

Please sign in to comment.