diff options
author | alecdwm | 2017-01-06 07:18:22 +0100 |
---|---|---|
committer | alecdwm | 2017-01-06 07:18:22 +0100 |
commit | e4fe93249f2af24b113573825aa66350b25e405e (patch) | |
tree | 93811e00ae3cfa7be9e68814d6dac69d6b54ed5d | |
parent | b044c2ae19e1cacf81524dad15739ea61f4479cb (diff) |
dark avatar backgrounds only
Diffstat (limited to '')
-rw-r--r-- | lib/letter-avatars.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/letter-avatars.js b/lib/letter-avatars.js index 437e3e76..767a2efd 100644 --- a/lib/letter-avatars.js +++ b/lib/letter-avatars.js @@ -5,7 +5,10 @@ var randomcolor = require('randomcolor'); // core module.exports = function(name) { - var color = randomcolor({seed: name}); + var color = randomcolor({ + seed: name, + luminosity: 'dark', + }); var letter = name.substring(0, 1).toUpperCase(); var svg = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'; |